IF and SEARCH function

midcoastchris04

New Member
Joined
Jul 7, 2020
Messages
10
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi Everyone!

I am trying to use this formula to search for multiple words in a column. I looked it up online and can't quite get it to work. Here is the formula I'm trying to use:

=IF(ISNUMBER(SEARCH("*warranty*",f2)), "warranty")), IF(ISNUMBER(SEARCH("*service*",f2)), "service", "")

I need to add multiple IF searches before my false statement.

Thanks in advance!

Chris
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Can there be more than one word matching in a cell, and, if so, what should happen? Also, do you have the list of words to look for in a range somewhere (would make maintaining the formula simpler) and should the return value for each match just be the word itself?
 
Upvote 0
Hey Rory! No, there shouldn't be more than one word matching in a cell. These are system notations with specific reasons listed within non-unique text. The unique values (list of words/phrases) are:

warranty
service
purchase order
estimated delivery date
null
 
Upvote 0
You could use something like this:

=IFERROR(LOOKUP(2,1/SEARCH({"warranty","service","purchase order","estimated delivery date","null"},F2),{"warranty","service","purchase order","estimated delivery date","null"}),"")

or put those values into a range of cells and replace the two arrays with the cell references.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top