Combine 2 IF and Search function

Buddhika Rodrigo

New Member
Joined
Nov 22, 2023
Messages
4
Office Version
  1. 2016
  2. 2010
  3. 2003 or older
Platform
  1. Windows
Dear all,
Please guys help me to categories following table's description into "Thread", "Care Label" and "Others". In the descriptions, if there are any words of Thread or care labels, should be categorized under thread or care labels but in the description there is no any marching name it should be categorized as "Other" I tried following formulas but I want to combine those to categorize this table
=IF(SEARCH("THREAD",A9),"THREAD"," ")
=IF(SEARCH("CARE LABLES",A13),"CARE LABLES"," ")

1700645830620.png


I appreciate if you help me to do this.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try this

=LOOKUP(1,-SEARCH({"*","THREAD","CARE LABLES"},A9&" "),{"","THREAD","CARE LABLES"})
 
Upvote 0
Try this

=LOOKUP(1,-SEARCH({"*","THREAD","CARE LABLES"},A9&" "),{"","THREAD","CARE LABLES"})
Thanks dude for your support. It is okay for some instance but How to categorizes "Others"? I tried your formula and the result as follows

1700653033739.png
 
Upvote 0
=LOOKUP(1,-SEARCH({"*","THREAD","CARE LABLES"},A9&" "),{"Other","THREAD","CARE LABLES"})
 
Upvote 0
Solution
thank you dude. I appreciate your support. this formula that I wanted.
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,402
Messages
6,124,708
Members
449,182
Latest member
mrlanc20

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