Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

IF AND Statement Question

yzhang316
8 - Asteroid

Hi, 

 

How to translate the following excel formula into Alteryx?

 

=IF(AND(A1<=0.001,A1>=-0.001),0,FALSE)

 

Thanks!

5 REPLIES 5
patrick_digan
17 - Castor
17 - Castor

@yzhang316 try this in a formula tool:

IIF(A1<=0.001 and A1>=-0.001,"0","FALSE")

where A1 refers to the Field you're looking at. 

MarqueeCrew
20 - Arcturus
20 - Arcturus

@yzhang316,

 

IF 
[A1]<=0.001 AND [A1] >= -0.001   THEN "0"
ELSE
"FALSE"
ENDIF

I'm puzzled by why they would want 0 and "False" as the results.  I turned everything to a string.

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
yzhang316
8 - Asteroid

The formula worked!

yzhang316
8 - Asteroid

I had to make sure 0 is the True, while else is false.  You're correct that I had to change the string in order to proceed into the next part. 

wachiragichuru
6 - Meteoroid

   

Labels
Top Solution Authors