ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I set up vlookup so that it is case sensitive? (https://www.excelbanter.com/excel-discussion-misc-queries/233968-how-do-i-set-up-vlookup-so-case-sensitive.html)

Oliver Madden

How do I set up vlookup so that it is case sensitive?
 
Hello.

I am using the vlookup function and have a table which uses currency codes -
some are in main currency others are in the small denomination - for example
GBP and GBp. The problem is when I use vlookup to reference the table it
doesn't differentiate between the two.

Can anyone help me so that I can set it up so it reads different values?

Kind regards
Oliver

Bernard Liengme[_3_]

How do I set up vlookup so that it is case sensitive?
 
A1:A12 has text including GBP and GBp
B1:B12 has numbers
E1 has the text to look up (say, GBP)
Formal to do exact lookup
=SUMPRODUCT(--(EXACT(E1,A1:A12)),B1:B12)
This assumes that each text item is unique in A1:A12
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Oliver Madden" <Oliver wrote in message
...
Hello.

I am using the vlookup function and have a table which uses currency
codes -
some are in main currency others are in the small denomination - for
example
GBP and GBp. The problem is when I use vlookup to reference the table it
doesn't differentiate between the two.

Can anyone help me so that I can set it up so it reads different values?

Kind regards
Oliver





All times are GMT +1. The time now is 04:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com