I've tried to make this formula more concise using the OR function, but it doesnt need to like it.
Have I done something wrong?
Any ideas how to make it work?
Before OR Function (Works):
With OR Function (Don't Work):
Have I done something wrong?
Any ideas how to make it work?
Before OR Function (Works):
Excel Formula:
=IF(ISNUMBER(SEARCH("M&E",D$41)),"Electrical & Mechanical",IF(ISNUMBER(SEARCH("Electrical",D$41)),"Electrical",IF(ISNUMBER(SEARCH("Fire Alarm",D$41)),"Electrical",IF(ISNUMBER(SEARCH("Mechanical",D$41)),"Mechanical",IF(ISNUMBER(SEARCH("Plumbing",D$41)),"Mechanical",IF(ISNUMBER(SEARCH("AC",D$41)),"Mechanical",IF(ISNUMBER(SEARCH("Ventilation",D$41)),"Mechanical",IF(ISNUMBER(SEARCH("Ductwork",D$41)),"Mechanical",IF(ISNUMBER(SEARCH("Temps",D$41)),"Electrical & Mechanical",IF(ISNUMBER(SEARCH("Pull Testing",D$41)),"Electrical & Mechanical",IF(ISNUMBER(SEARCH("Pipework",D$41)),"Mechanical",IF(ISNUMBER(SEARCH("Pump",D$41)),"Mechanical",IF(ISNUMBER(SEARCH("AHU",D$41)),"Mechanical",IF(ISNUMBER(SEARCH("Chiller",D$41)),"Mechanical",IF(ISNUMBER(SEARCH("BMS",D$41)),"Mechanical",IF(ISNUMBER(SEARCH("SPARE",D$41)),"TBC-GIVE MS A NAME","NAME RA CORRECTLY"))))))))))))))))
With OR Function (Don't Work):
Excel Formula:
=IF(ISNUMBER(SEARCH(OR("M&E","Temps","Pull Testing"),D$41)),"Electrical & Mechanical",IF(ISNUMBER(SEARCH(OR("Electrical","Fire Alarm"),D$41)),"Electrical",IF(ISNUMBER(SEARCH(OR("Mechanical","Plumbing","AC","Ventilation","Ductwork","Pump","AHU","Chiller","BMS"),D$41)),IF(ISNUMBER(SEARCH("SPARE",D$41)),"TBC-GIVE MS A NAME","NAME RA CORRECTLY"))))