How to make a lookup Case Sensitive

etemkin56

New Member
Joined
May 12, 2015
Messages
7
Hi,

I am working on combining a list based on an unique Account ID's. But the formula needs to be case sensitive. I have tried the following formula but continue to get an error no matter what I do. I have never used an index formula before so this might be an easy fix that I am just not seeing. Below is an example of the account IDs that I need to differentiate between.

=INDEX(AccountID,MATCH(TRUE,EXACT(D3,A1:A3008),2))

Account ID is the named range containing two columns:
Account IDAccount Name
0013600000LeWaJCaroline
0013600000LeWajMike
0013600000LeWaKPat
0013600000LeWakDavid
0013600000LeWaLEmily
0013600000LeWalJeff
0013600000LeWaMKevin
0013600000LeWamGreg
0013600000LeWaNJennifer
0013600000LeWanStephanie
0013600000LeWaOBrad
0013600000LeWaoTony

<tbody>
</tbody>


Any help would be very appreciated it!!
Thanks in advance!
Emily
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
What do you mean exactly by "the formula needs to be case sensitive"? Please list some expected outcomes and how the formula is failing.
 
Upvote 0
Let A1:B13 house the table of interest, the headers included.

In E2 enter and copy down:

=LOOKUP(9.99999999999999E+307,FIND(D2,$A$2:$A$13),$B$2:$B$13)

where D2 houses a value like:
<strike></strike>
0013600000LeWaL<strike></strike>
 
Upvote 0
What do you mean exactly by "the formula needs to be case sensitive"? Please list some expected outcomes and how the formula is failing.

In the example ID's I showed some of them are exactly the same except for the upper/lower case letters. So I need some way to distinguish that 0013600000LeWaJ does not equal 0013600000LeWaj and so on. In the below example, when I am looking for 0013600000LeWaj I want the returned value to equal Mike and not Caroline. When I use a standard vlookup, it will return Caroline because the vlookup doesn't recognize the difference in upper/lower case.


Account IDAccount Name
0013600000LeWaJCaroline
0013600000LeWajMike
0013600000LeWaKPat
0013600000LeWakDavid
0013600000LeWaLEmily
0013600000LeWalJeff
0013600000LeWaMKevin
0013600000LeWamGreg
0013600000LeWaNJennifer
0013600000LeWanStephanie
0013600000LeWaOBrad
0013600000LeWaoTony

<tbody>
</tbody>


I hope that better explains what I am trying to do...
 
Upvote 0
@Aladin - your formula returns 0 here.

EDIT: no, it DOES work as long as I have the headers! :LOL:
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,542
Messages
6,120,116
Members
448,945
Latest member
Vmanchoppy

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