Lookup using Find in lookup value

zfeld75

New Member
Joined
May 30, 2017
Messages
7
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
Platform
  1. Windows
As an example see the 2 sample sheets below.
They are silly examples but this is similar to what I need to accomplish.
I have a value that is text in an activities column and if there is any match in the text to a lookup value, in the lookup table, then it should return it's corresponding value
There will be no duplicate lookup values in the activities column (and if there is I am fine if it finds the first lookup value).
Thank you.

Here is the lookup sheet - see below for the other table
Lookup valueReturn value
milk95
meat60
poultry20
fish50
candy10
bread30
fruit45

Here is the sheet where the lookup value is embedded in the Activities column
ActivitiesThis column needs a value based on lookup below
grow, coat, bread, laugh
fruit, run, wake,
think, sneeze, meat, wink
walk, talk, fruit
sleep, candy, read, walk
thing, neat, milk, dry
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Fluff.xlsm
ABCDE
1Lookup valueReturn valueActivities
2milk95grow, coat, bread, laugh30
3meat60fruit, run, wake,45
4poultry20think, sneeze, meat, wink60
5fish50walk, talk, fruit45
6candy10sleep, candy, read, walk10
7bread30thing, neat, milk, dry95
8fruit45
Sheet6
Cell Formulas
RangeFormula
E2:E7E2=LOOKUP(2,1/FIND($A$2:$A$8,D2),$B$2:$B$8)
 
Upvote 1
Solution
Wow, that works....
My version is Microsoft® Excel® for Microsoft 365 MSO (Version 2401 Build 16.0.17231.20236) 64-bit
How does it work, I would love to understand it
Find - usually takes text not a range
Lookup, having number 2 as the first argument, what's up with that?
Also, 1 divided by the Find
 
Upvote 0
Thanks I am so grateful.
I even improved on it using modern XLOOKUP.
=XLOOKUP(TRUE,ISNUMBER(FIND($A$2:$A$8,D2)),$B$2:$B$8)
Teach a man how to fish.....
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,879
Messages
6,175,148
Members
452,615
Latest member
bogeys2birdies

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