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. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Issue with 0 in Nested IF Statement

IsmaelMontesJr
5 - Atom

I'm trying to convert an Excel function using the Formula Tool in Alteryx and I'm running into an issue.

Value A = 1st Value

Value B = 2nd Value

Value C = Column where we are performing operation

 

Essentially:

 

IF Value A (Sheet1) = Value B (Sheet2), then Return Value B (Sheet2) OR

IF Value B does note equal Value A, then 0.

 

I keep getting a Malformed IF Statement message from Alteryx, due to to the 0.  Here's the formula I have:

 

IF [Value A] = [Value B] THEN

[Value B] ELSEIF

[Value A] != [Value B] THEN 0

ENDIF

 

Thanks in advance for the help.

Ish

 

2 REPLIES 2
DanM
Alteryx Community Team
Alteryx Community Team

IF [Value A] = [Value B] THEN

[Value B] ELSE

0

ENDIF

IsmaelMontesJr
5 - Atom

Thank you!!! (Fist Bump)

Labels
Top Solution Authors