Lookup On Portion Of Search Value

masouder

Board Regular
Joined
Jul 5, 2013
Messages
111
Office Version
  1. 2013
Platform
  1. Windows
I am trying to perform a lookup where the set of numbers being searched contain a portion of the value that I am looking for. Please see the example below where I am trying to find 701 in B3:B6. I want to return 70. My first thought was to try the VLOOKUP function, but perhaps a different function (MACTH?) would work. I recognize that I could use the LEFT function to isolate 70 within 701, but the 701 value that I am looking for could be 7011, 70111, et cetera. Any help appreciated.

Book1
ABCDEF
1
2
360Value701
470Lookup
580
690
7
8
9
Sheet1
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Does this do what you want?
(In your version you may need to confirm the formula with Ctrl+Shift+Enter, not just Enter)

23 01 15.xlsm
ABCDE
1
2
360Value701
470Lookup70
580
690
Lookup
Cell Formulas
RangeFormula
E4E4=INDEX(B3:B6,MATCH(1,FIND(B3:B6,E3),0))
 
Upvote 0
(In your version you may need to confirm the formula with Ctrl+Shift+Enter, not just Enter)
If that is the case and you would prefer not to have to do that, you could test this one instead.

23 01 15.xlsm
ABCDE
1
2
360Value701
470Lookup70
580
690
Lookup
Cell Formulas
RangeFormula
E4E4=AGGREGATE(15,6,B3:B6/(FIND(B3:B6,E3)=1),1)
 
Upvote 0
Solution
You're welcome. Thanks for the confirmation. :)
 
Upvote 0

Forum statistics

Threads
1,215,671
Messages
6,126,131
Members
449,293
Latest member
yallaire64

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