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.
SOLVED

Get names from 3 columns using IF loop

Desaisid
7 - Meteor

Please give me formula for my Answer Column in Formula tool

 

Class 1Class 2Class 3Answer Column
A EE
 B B
F CC
D  D
GH H

 

I have added this formula for Answer Column which is not working, Could you please let me know the correct formula so I get the Answer column data from fir 3 columns.

 

IF IsEmpty([Class 3]) Then [Class 2]
Elseif IsEmpty([Class 2]) Then [Class 1]
Else [Class 1]
Endif

 

2 REPLIES 2
binu_acs
21 - Polaris

@Desaisid Try the below formula

 

IF !IsEmpty(trim([Class 3])) Then [Class 3]
Elseif !IsEmpty(Trim([Class 2])) Then [Class 2]
Else [Class 1]
Endif
Desaisid
7 - Meteor

Thanks

Labels
Top Solution Authors