Forum Discussion
Per-Olav_Sandbakk
May 04, 2022Copper Contributor
IFS and SEARCH with three different return values
Hi! A newbie on this forum and would never consider my self as an Excel expert 🙂 Plus I'm not very used to the IFSand SEARCH formulas, so I hope you guys out there might help me. Got a list ...
- May 04, 2022
For example:
=IFS(ISNUMBER(SEARCH("Advantage";A16));"Advantage";ISNUMBER(SEARCH("Essential";A16));"Essential";ISNUMBER(SEARCH("Premier";A16));"Premier";TRUE;"")
HansVogelaar
Nov 16, 2022MVP
Using the same example:
=IFS(ISNUMBER(SEARCH("Advantage"; A16)); "Advantage"; ISNUMBER(SEARCH("Essential"; A16)); "Essential"; TRUE; "Other")
Please note that Per-Olav_Sandbakk uses semi-colon as list separator. If you use comma as list separator, change the formula to
=IFS(ISNUMBER(SEARCH("Advantage", A16)), "Advantage", ISNUMBER(SEARCH("Essential", A16)), "Essential", TRUE, "Other")
Holly_Michaelson
Nov 16, 2022Copper Contributor
Yes! Thank you!! And I appreciate you mentioning about the commas. My excel would not accept the semi colons.
With gratitude!
Holly
With gratitude!
Holly