Search cell for partial string, return string in other cell

brandog484

New Member
Joined
Oct 17, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Good afternoon, I'm new to excel and am working on a home budget. I'm looking for a formula to search the "Description" column for a list of recognized names and return that name in the "Friendly Description" column. For example, because A2 contains "RUSSOS PIZZA" I'd like B2 to contain "Russo's Pizza". A4 contains "ARBYS" so I want B4 to contain "Arby's". A3 doesn't have a restaurant name so I'd like the function to return "Uncategorized" in B3.

I've been working with the xlookup and search functions but am not having any luck. Any ideas on how I could accomplish this?




DescriptionFriendly Description
DEBIT CARD PURCHASE XXXXX3513 RUSSOS PIZZA CITY, STATE
DEBIT CARD PURCHASE XXXXX7116 KEYSTONE PHARMACY CITY, STATE
DEBIT CARD PURCHASE XXXXX7116 ARBYS #1205 CITY, STATE
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome to the board!

If your list of recognized names is in F2:F100, you could use:

B2 = INDEX($F$2:$F$100,MATCH(TRUE,ISNUMBER(MATCH("*"&$F$2:$F$100&"*",A1,0)),0))

or

B2 =LOOKUP(2,1/((ISNUMBER(MATCH("*"&$F$2:$F$100&"*",A1,0)))),$F$2:$F$100)
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,897
Members
449,097
Latest member
dbomb1414

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