Looking up an ID number of letters and numbers - exact match

KirstyFrance

New Member
Joined
Aug 29, 2011
Messages
3
Hi,

I'm having difficulty doing Vlookups on ID numbers from an external system because they contain letters and numbers of lower and upper case. As this system distinguishes between lower and upper case there are numbers that are have the same combination of letters and numbers but are a different ID because one is lower and one is upper.

Neither the MATCH or VLOOKUP formulas seem to handle this.

Any ideas?

Many thanks
Kirsty
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Welcome to the board!

You could do it with an array formula on the principle of

=MATCH(TRUE,IF(ISNUMBER(FIND(lookup value,lookup range)),LEN(lookup value)=LEN(lookup range)),0)

Note that after you edit your ranges into the formula you will need to confirm it with Shift Ctrl Enter.
 
Upvote 0
Hi Kristy
Welcome to the board

You don't give enough information.

It's important to always describe the problem and post a working example with inputs, logic and expected results. This helps everyone to understand the problem and makes sure the answers really solve the problem.

In this case, please post some IDs and examples of the patterns you use to look them up.

Please check Posting rule 13:

Provide background information for your question. Include sample data and formulas in your post. The more you tell us up front, the easier it is for us to answer your questions. If your formulas aren't giving the results you want, include the results you want as well as the results you are currently getting. Your post should include at least:
some sample data
your current formula
your current results
an explanation of why your current results are not what you want
the result you want

http://www.mrexcel.com/forum/showthread.php?t=127080
 
Upvote 0
Hi Sportman1975

Please don't ask for information to be sent away from the board.

The purpose of the board is to share information. A clear post, with all the information necessary available, ensures that everyone can contribute, detect errors, improve solutions, use the information for similar problems, etc., and this is what this board is about.

This is similar to the cases of posting rules 18 and 19:

18 - Do not e-mail or private message your questions directly to board members. Many people here could have the answer to your question and by posting you may also be helping others who are having the same problem. If you post to the board you'll likely have an answer within a few hours (sometimes even within a few minutes!).


19 - Do not post your question and request that you be e-mailed directly. It defeats the purpose of the board entirely (see above point). Openly posted e-mail addresses are regularly reported and removed by a moderator or administrator. Also, SPAMMERS routinely search and harvest e-mail addresses posted on public forums such as this one. So posting an openly unedited e-mail address on this forum can lead to an increase in the amount of SPAM sent to that e-mail address.

http://www.mrexcel.com/forum/showthread.php?t=127080
 
Last edited:
Upvote 0
Thanks for all the replies and sorry for not giving enough information.

The ID's look have this format:

00Q20000006CfyC
00Q20000006CfYC

These are two different IDs although the only difference is lower case y on the first versus upper case on the second.

If I use an normal vlookup, it will always return one of the two, but not always the correct one.

Using MATCH also does not distinguish between upper and lower case.

So I end up with something like this:

00Q20000006CfyC 00Q20000006CfYC
00Q20000006CfYC 00Q20000006CfYC

Regards
 
Upvote 0
since they are all the same length then what i posted should work just fine

Excel Workbook
ABCDEF
1200Q20000006CfYC00Q20000006CfyC1
200Q20000006CfYC2
3
Sheet1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,909
Members
452,949
Latest member
beartooth91

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