Longer Text Lookup within Shorter Text String

acool

Board Regular
Joined
Feb 10, 2023
Messages
121
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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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

Forum statistics

Threads
1,223,707
Messages
6,174,000
Members
452,542
Latest member
Bricklin

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