VLOOKUP issue with wildcard parameter for partial matches in number/letter combinations

BrooksProctor

New Member
Joined
Jun 27, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hello, so I'm using Microsoft Excel on Office 365 and I'm using the VLOOKUP function and having some issues.

Here is the current state of my formula I'm trying to troubleshoot:
=VLOOKUP(C3&"*",A:B,2,FALSE)

Column A is filled with identification keys composed of letters and numbers while column B contains the corresponding measurement numbers. Now while this function does technically work, it is exclusively working for cells that match the exact value of the identification keys in column A. My desired output was for me to be able to write in a new cell (in this case C3) an ID key, excel would see that the front part of the key matched an existing one, and then in the next cell it would output the corresponding measurement. As I mentioned, it's not working even though I used the &"*" wildcard adjustment. If I write a single space, letter, or number after the ID that already matches then the output will be #N/A.

I've looked through so many tutorials, asked AI assistants, and tried a bunch of workarounds like combining MATCH and INDEX but nothing is working. I swear this seems so simple, yet the wildcard just seems to malfunction. Any help would be much appreciated.
 
Amazing, that worked perfectly. I'll have to look that LEN function up so I can understand it better, but this did exactly what I needed.
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,223,884
Messages
6,175,177
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