ChoDuffield
New Member
- Joined
- Jul 26, 2012
- Messages
- 2
I need to do a case sensitive vlookup. I found several results here which list a formula similar to this:
=IF(EXACT(G4,VLOOKUP(G4,$C$4:$D$9,1,FALSE))=TRUE,VLOOKUP(G4,$C$4:$D$9,2,FALSE),"No exact match")
The problem is that the formula returns "No exact match" once it finds a match without the same case. I need the formula to continue looking for the match in the entire list. Here is what I'm currently getting back:
<colgroup><col span="4"><col></colgroup><tbody>
</tbody>
As you can see, 'bbb' is coming back with 'No exact match' when in fact there is one. It says that because bBb is listed first in the data. Compare this against 'aaa' which comes back with the correct match, but that value was listed first.
Does anyone know of a formula which will evaluate the entire list without stopping when incorrect casing is found?
Thank you!
=IF(EXACT(G4,VLOOKUP(G4,$C$4:$D$9,1,FALSE))=TRUE,VLOOKUP(G4,$C$4:$D$9,2,FALSE),"No exact match")
The problem is that the formula returns "No exact match" once it finds a match without the same case. I need the formula to continue looking for the match in the entire list. Here is what I'm currently getting back:
Data1 | Data2 | vlookup | result | |
aaa | a-small | bbb | No exact match | |
AAA | A-big | aaa | a-small | |
AaA | A-mixed | bBb | B-mixed | |
bBb | B-mixed | AaA | No exact match | |
bbb | b-small | BBB | No exact match | |
BBB | B-Big | AAA | No exact match |
<colgroup><col span="4"><col></colgroup><tbody>
</tbody>
As you can see, 'bbb' is coming back with 'No exact match' when in fact there is one. It says that because bBb is listed first in the data. Compare this against 'aaa' which comes back with the correct match, but that value was listed first.
Does anyone know of a formula which will evaluate the entire list without stopping when incorrect casing is found?
Thank you!