IF statement Concatenate
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I am new to Alteryx and trying to do something that seems so simple from an excel perspective. I am trying to replicate the formula below in Alteryx. I attempted this with the formula tool but I am clearly missing something. Any help would be appreciated.
Excel formula:
Color 1 Color 2 Color 3 Color 4 Output
Red Blue Orange Pink RedBluePink
Red Blue Green Pink Green
Color 1 Color 2 Color 3 Color 4 Output
Red Blue Orange Pink =IF(C2="Green",C2,A2&B2&D2)
Red Blue Green Pink =IF(C3="Green",C3,A3&B3&D3)
Solved! Go to Solution.
- Labels:
- Expression
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @mpotstada
Add a Formula Tool.
Create a new column - Color 4
IF [Color 3] != "Green" THEN
[Color 1] + [Color 2] + [Color 3]
ELSE [Color 3] ENDIF
Cheers,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you, very helpful.
