Learn more about the Alteryx Maveryx Universe recently announced at Inspire 2023!

Alteryx Designer Desktop Discussions

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

IF CONTAINS THAN REPLACE ENTIRE CELL, IF NOT DONT CHANGE ANYTHING

mric3
5 - Atom

Hello everyone,

Drawing a blank on this one - I have a column of survey data with one of the options is "Other" with free text attached to it. There are few "Other" options so we are going to group all of them in one big "Other" group to scope them out. My goal is to find cells in that column that contain the word "Other" and replace the entire cell with "Other" (obviously a simple IF CONTAINS) but then if the cell does not contain "Other", how do I tell alteryx to not make any changes to that cell?

My formula:

IF Contains([Where did you hear about us)], "Other") THEN "Other" ELSE __________ ENDIF

Looking to fill in the blank above 🙂

Thanks!

2 REPLIES 2
Thableaus
17 - Castor
17 - Castor
IF Contains([Where did you hear about us)], "Other") THEN "Other" ELSE [Where did you hear about us)] ENDIF

Just repeat your field and It Will stay the same.

Cheers
mric
6 - Meteoroid

Wow.... can you tell i'm a beginner? 🙂 


Thank you very much!!

Labels