Combining Fields
- 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
I need to combine multiple fields in the following way. I have attached a sample input file.
There are 4 fields that I will call field1, field2, field3, field4. Each field has multiple records that can contain 1 of 3 values: "Exempt", "Taxable" or blank.
I would like to create a resultant field called "Result" that contains the following:
(I created a field called desired result that contains what I would like the "Result" field to contain)
"Exempt" if all 4 fields contain either "Exempt" or are blank
"Taxable" if all 4 fields contain either "Taxable" or are blank
"Mixed" if at least 1 of the 4 fields contains "Exempt" and at least 1 of the 4 fields contains "Taxable"
I know that I could do this with nested if then statements or filters, but I am sure there is an easier way.
Thank You
Solved! Go to Solution.
- Labels:
- Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Robert31395,
I think the simplest method is a IF/ELSEIF formula. Attached is a workflow using your data. If your data is limited to just the four columns, a single formula tool will work. If it is considerably more or a dynamic/unknown number of columns, then the second option will do the job.
If this solves your question, please mark this as an accepted solution to inform the community it has been solved.
