In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

If statement for this excel formula

HafeezA
7 - Meteor

If statement for the below in formula tool ? 

=IF(L8="","No Trade ID",IF(OR(D8="BOND (INFLATION)",D8="CDS",D8="BondFuture"),L8,IF(OR(J8="1379-EUBND",J8="1380-EUBND",J8="4039-FWDCB",J8="4039-FWDSL"),L8&J8,IF(AND(D8="Bond",OR(E8="Local",E8="Supranational")),L8,B8))))

 

2 REPLIES 2
clmc9601
13 - Pulsar
13 - Pulsar

Hi @HafeezA,

 

Try this:

IF IsEmpty([col_L])

THEN "No Trade ID"

ELSEIF [col_D] IN ('BOND (INFLATION)', 'CDS', 'BondFuture')

THEN [col_L]

ELSEIF [col_J] IN ("1379-EUBND","1380-EUBND","4039-FWDCB","4039-FWDSL")

THEN [col_L]+[col_J]

ELSEIF [col_D] = 'Bond' and ([col_E] IN ('Local', 'Supranational')

THEN [col_L]

ELSE [col_B]

ENDIF

 

If this helps, please consider marking it a solution so others may find it.

apathetichell
20 - Arcturus

Kind of impossible without more data - but basically an exact reformat would be:

 

if [L] ="" then "No Trade" elseif [D] in ("Bond (Inflation)","CDS","BondFuture") then [L] elseif [J] in ("1379-EUBND","1380-EUBND","4039-FWDCB","4039-FWDSL) then [I]+[J] elseif [D] ="Bond" and [E] in("Local","Supranational") then [L] else [B] endif

 

That assumes that each column is a) a string and b) labeled as the old excel column name.

Labels
Top Solution Authors