Hey there!
Currently trying to automate a tracking report that my company uses. I want the "District" column to automate based on the property number entered. However, while there is only 7 districts, the list of properties could easily be in the thousands. We can determine the district of a property by the first two digits, so I started with a LEFT statement, to pull those two digits out. I then tried to create a nested IF statement that looks like this:
=IF([LEFT Function]1 = "01", "4", IF([LEFT Function]1 = "02", "2", IF([LEFT Function]1 = "03", "1", IF([LEFT Function]1 = "04", "5", IF([LEFT Function]1 = "05", "6", IF([LEFT Function]1 = "06", "1", IF([LEFT Function]1 = "07", "7", IF([LEFT Function]1 = "08", "7", IF([LEFT Function]1 = "09", "7", IF([LEFT Function]1 = "10", "4"))))))))))
On this small of a scale, it worked wonderfully. However, there are a total of sixty-two 2-digit codes that need to be in the IF statement for this automation to work across the board. I tried writing out the full 62 IF statements in a long string by copy & pasting the string that worked and just modifying the values, but it came back #UNPARSEABLE.
Is it because i have too many arguments? Has anyone else tried an IF statement on this scale, or know of any other way to work this out?