Issues with matches for Partial Text

danhenshy23

New Member
Joined
Oct 3, 2016
Messages
38
Office Version
  1. 2019
Platform
  1. Windows
Hi all,

In Column A I have a list of text strings which I am wanting to search.
In Column C I have a list of terms I want to Search for
In Column D I have the categories of each of those search terms
In Column B I want to show the category that the search term belongs to

The problem I am having is that I am getting a match for a category where the word I am searching for exists within part of another word. For example if "hot" is the word I am searching for, I will get a match for the word "hotter".

How do I overcome this? Here is the formula I am using currently (entered into column B):

{=INDEX($D$2:$D$10,MATCH(TRUE,ISNUMBER(SEARCH($C2:C10,$A1)),0))}
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Try:
Book1
ABCD
1StringcategorySearch WordsCat. List
2It's hot todayCat1hotCat1
3It's getting hotterNo MatchappleCat2
4An apple a dayCat2
5Get some applesauceNo Match
Sheet3
Cell Formulas
RangeFormula
B2:B5B2=IFNA(INDEX($D$2:$D$3,MATCH(TRUE,ISNUMBER(SEARCH(" "&$C$2:$C$3&" "," "&A2&" ")),0)),"No Match")
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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