I have an IIF statement that looks like this:
Vender_1: IIf([Transaction text] Like "*Doody*","Doody Calls",IIf([Transaction text] Like "*Home Depot*","Home Depot",IIf([Transaction text] Like "*American Asphalt*","American Asphalt",IIf([Transaction text] Like "*Brightview*","Brightview",IIf([Transaction text] Like "*Lowes*","Lowe's",IIf([Transaction text] Like "*Lowe's*","Lowe's",IIf([Transaction text] Like "*Cintas*","Cintas",IIf([Transaction text] Like "*PPG Arch*","PPG Architectural Finishes",IIf([Transaction text] Like "*bulbs.com*","Bulbs.com",IIf([Transaction text] Like "*Orkin*","Orkin",IIf([Transaction text] Like "*New Pipes*","New Pipes, Inc.",IIf([Transaction text] Like "*Sherwin Will*","Sherwin Williams",IIf([Transaction text] Like "*Sherwin-Will*","Sherwin Williams",IIf([Transaction text] Like "*Staples*","Staples",""))))))))))))))
I got only fit like 14 or 15 expressions into this statement, same with the Switch() function, it tells me that the expression is too complex to run in the query. I only have 4 more expressions I need to add to the IIF statement, but I can't because the expression builder won't let me -- stating that it's too complex.
Does anyone know of a different function other than the IIF or Switch statement that allows for more expressions to be added to the formula -- I only need to add 4 more, thank you.