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
 

AliGW

.
Joined
Mar 9, 2014
Messages
3,628
What do you mean exactly by "the formula needs to be case sensitive"? Please list some expected outcomes and how the formula is failing.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,138
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>
 

etemkin56

New Member
Joined
May 12, 2015
Messages
7
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...
 

AliGW

.
Joined
Mar 9, 2014
Messages
3,628
@Aladin - your formula returns 0 here.

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

Forum statistics

Threads
1,082,106
Messages
5,363,185
Members
400,721
Latest member
eileen123

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top