Start Free Trial

Alteryx Designer Desktop Discussions

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

Converting Excel nested if/and/or statement to Alteryx Multi-row formula

r-alrahmani
6 - Meteoroid

Hello, 

 

I have an Excel function that I am having a hard time translating to the syntax used in the multi-row formula tool. The function checks the row above as well as the row below the active row and is as follows:

 

=IF(OR((AND(I2=I3, E2=E3)), AND(I2=I1, E2=E1)), TRUE, FALSE)

 

Any help is much appreciated!

2 REPLIES 2
ChrisTX
16 - Nebula
16 - Nebula

Excel:

   IF(OR((AND(I2=I3, E2=E3)), AND(I2=I1, E2=E1)), TRUE, FALSE)

 

Alteryx:

 

IF (I2 = I3 and E2 = E3) or (I1 = I2 and E1 = E2)
THEN 1
ELSE 0
ENDIF

 

If you want your data type in Alteryx to be Boolean, use 1 for True and 0 for False.

 

Chris

binu_acs
21 - Polaris

@r-alrahmani 

IF (([Row-1:I] = [I] AND [Row-1:E] = [E]) OR ([Row+1:I] = [I] AND [Row+1:E] = [E]), TRUE, FALSE)
Labels
Top Solution Authors