Wildcard selection from a list

sterling

New Member
Joined
Oct 27, 2002
Messages
1
I have a large list of similar coded parts.
I can find individual items with vlookup etc but the code has to be exactly right.

Is it possible to extract from the list all the parts that match with , say, the first 3 characters, and then to select the one you want from there.

Thank you
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
You could try an array formula:

=VALUE(VLOOKUP(A5,LEFT(A1:B3,LEN(A5)),2))

which returns the value in column B of range A1:B3 which matches the contents of cell A5. To use it press Ctrl+Shift+Enter not just Enter.

The result will depend on how your data table is sorted.
 

Forum statistics

Threads
1,144,508
Messages
5,724,767
Members
422,577
Latest member
kayth891

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
Top