Longer Text Lookup within Shorter Text String

acool

Board Regular
Joined
Feb 10, 2023
Messages
119
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I am currently trying to create an excel formula which uses a lookup formula to see if the longer text strings in Column D match the shorter values in Column B. If there is a text match, I would like the corresponding shorter text value to be provided in column E. For example, for Cell E1 I would like the text value "Dog" to be returned, for E2 "Horse", etc. Any help would be greatly appreciated. Thank You!


1725986343150.png
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
It turned out a little scary, but it seems to be what you need.
Book1.xlsm
DEF
17dogbig dogdog
18pigred pigpig
Sheet3
Cell Formulas
RangeFormula
F17:F18F17=IF(SUBSTITUTE(RIGHT(MID(" "&SUBSTITUTE(E17," ",REPT(" ",999)),1,999*2),999)," ","")=D17,SUBSTITUTE(RIGHT(MID(" "&SUBSTITUTE(E17," ",REPT(" ",999)),1,999*2),999)," ",""),"")
 
Upvote 0
=FILTER($B$1:$B$8,ISNUMBER(SEARCH($B$1:$B$8,D1)))

Copy down.
 
Upvote 0

Forum statistics

Threads
1,221,417
Messages
6,159,789
Members
451,589
Latest member
Harold14

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