Hi There,
I have an excel file input in my workflow which has a column called Description. I would need to create a new column and categorize (flag) each row based on what the description field contains.
What would need to be looked for within the description comes from another input, like:
| Number | search | flag |
| 1 | LC1 | REVAL |
| 2 | AFC | ACCRUAL |
| 3 | PROJ ACR | ACCRUAL |
| 4 | ACR | ACCRUAL |
| 5 | ACCR | ACCRUAL |
| 6 | WEWORK | ACCRUAL |
| 7 | 52_LACACC | ACCRUAL |
| 8 | LACACCFAMRTAMOR0920009850 | ACCRUAL |
| 9 | SCRAP | RETIREMENT |
| 10 | SOLD | RETIREMENT |
| 11 | WASTE | RETIREMENT |
So I would need Alteryx to iterate through this file, first search for 'LC1' in the description field, if it contains it then in the new column mark it as 'REVAL', otherwise check for 'AFC' and so on until it either it finds a flag or until all keywords were searched for.
I'm kinda new to Alteryx, this would be an easy loop in VBA, could someone please suggest a way of doing this in Alteryx?
Many thanks in advance,
Henrik