Hi,
I need to run a very basic If Then statement on multiple fields in my data. At first I was thinking I could use the Multi-Formula tool, but since it has multiple field inputs not sure that it would work.
Essentially, I have a dataset where I unioned two datasets of the same fields but with different as of dates and I need to compare each of those fields to each other. For Ex my dataset looks like:
| Day 0_Code | Day 1_Code | Day 0_Rate | Day 1_Rate |
| A | A | 1 | 1.5 |
| B | C | 2 | 2 |
And I need to run this formula: IF Day 0_"Field" = Day 1_"Field" THEN 'Y' ELSE 'N" ENDIF that will turn it into this:
| Day 0_Code | Day 1_Code | Match? | Day 0_Rate | Day 1_Rate | Match? |
| A | A | Y | 1 | 1.5 | N |
| B | C | N | 2 | 2 | Y |
My problem is that I have around 400 fields total that this needs to be ran on so doing it manually would take a long time.
I don't think the Multi-formula tool will work since from what I understand it only runs on one field at a time rather than two. Would a macro possibly work for this?
Thank you!