Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dan in NY
 
Posts: n/a
Default any way to make vlookup case sensitive?

I'm using vlookup for translating a code into a decode value. The codes are
in both lowercase and uppercase, unfortunately with the same values (e.g.,
cnv and CNV represent 2 different things). Anyone know how to make vlookup
case sensitive? Or is there another fancy excel function that can provide
the equivalent functionality?

Thanks!
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way (albeit replacing vlookup with another formula)

Assume the vlookup would look like this

=VLOOKUP(A1,C2:D50,2,0)

to lookup a case sensitive string from A1 in column C and return the values
from D would be

=INDEX(D2:D50,MATCH(1,--ISNUMBER(FIND(A1,C2:C50)),0))

entered with ctrl + shift & enter



--

Regards,

Peo Sjoblom



"Dan in NY" wrote in message
...
I'm using vlookup for translating a code into a decode value. The codes

are
in both lowercase and uppercase, unfortunately with the same values (e.g.,
cnv and CNV represent 2 different things). Anyone know how to make

vlookup
case sensitive? Or is there another fancy excel function that can provide
the equivalent functionality?

Thanks!



  #3   Report Post  
Dan in NY
 
Posts: n/a
Default

Getting closer, but the FIND pulls in an earlier lookup decode that simply
contains the searched for item. For example, if one of my lookup values is
"F", your solution returns the column B for "CFD" - I assume since it finds
the "F" in "CFD" before it gets to the "F" entry (the lookup decode list is
in alphabetical order). hmm...tricky.

Any more suggestions?

Thanks!

"Peo Sjoblom" wrote:

One way (albeit replacing vlookup with another formula)

Assume the vlookup would look like this

=VLOOKUP(A1,C2:D50,2,0)

to lookup a case sensitive string from A1 in column C and return the values
from D would be

=INDEX(D2:D50,MATCH(1,--ISNUMBER(FIND(A1,C2:C50)),0))

entered with ctrl + shift & enter



--

Regards,

Peo Sjoblom



"Dan in NY" wrote in message
...
I'm using vlookup for translating a code into a decode value. The codes

are
in both lowercase and uppercase, unfortunately with the same values (e.g.,
cnv and CNV represent 2 different things). Anyone know how to make

vlookup
case sensitive? Or is there another fancy excel function that can provide
the equivalent functionality?

Thanks!




  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=INDEX(D2:D50,MATCH(1,--EXACT(C2:C50,A1),0))

also array entered

--

Regards,

Peo Sjoblom


"Dan in NY" wrote in message
...
Getting closer, but the FIND pulls in an earlier lookup decode that simply
contains the searched for item. For example, if one of my lookup values

is
"F", your solution returns the column B for "CFD" - I assume since it

finds
the "F" in "CFD" before it gets to the "F" entry (the lookup decode list

is
in alphabetical order). hmm...tricky.

Any more suggestions?

Thanks!

"Peo Sjoblom" wrote:

One way (albeit replacing vlookup with another formula)

Assume the vlookup would look like this

=VLOOKUP(A1,C2:D50,2,0)

to lookup a case sensitive string from A1 in column C and return the

values
from D would be

=INDEX(D2:D50,MATCH(1,--ISNUMBER(FIND(A1,C2:C50)),0))

entered with ctrl + shift & enter



--

Regards,

Peo Sjoblom



"Dan in NY" wrote in message
...
I'm using vlookup for translating a code into a decode value. The

codes
are
in both lowercase and uppercase, unfortunately with the same values

(e.g.,
cnv and CNV represent 2 different things). Anyone know how to make

vlookup
case sensitive? Or is there another fancy excel function that can

provide
the equivalent functionality?

Thanks!






  #5   Report Post  
Dan in NY
 
Posts: n/a
Default

Worked perfectly! Pretty clever - thanks again!

"Peo Sjoblom" wrote:

=INDEX(D2:D50,MATCH(1,--EXACT(C2:C50,A1),0))

also array entered

--

Regards,

Peo Sjoblom


"Dan in NY" wrote in message
...
Getting closer, but the FIND pulls in an earlier lookup decode that simply
contains the searched for item. For example, if one of my lookup values

is
"F", your solution returns the column B for "CFD" - I assume since it

finds
the "F" in "CFD" before it gets to the "F" entry (the lookup decode list

is
in alphabetical order). hmm...tricky.

Any more suggestions?

Thanks!

"Peo Sjoblom" wrote:

One way (albeit replacing vlookup with another formula)

Assume the vlookup would look like this

=VLOOKUP(A1,C2:D50,2,0)

to lookup a case sensitive string from A1 in column C and return the

values
from D would be

=INDEX(D2:D50,MATCH(1,--ISNUMBER(FIND(A1,C2:C50)),0))

entered with ctrl + shift & enter



--

Regards,

Peo Sjoblom



"Dan in NY" wrote in message
...
I'm using vlookup for translating a code into a decode value. The

codes
are
in both lowercase and uppercase, unfortunately with the same values

(e.g.,
cnv and CNV represent 2 different things). Anyone know how to make
vlookup
case sensitive? Or is there another fancy excel function that can

provide
the equivalent functionality?

Thanks!








  #6   Report Post  
Don Guillett
 
Posts: n/a
Default

try this where the lookup value is in columnc and the value you need is in
col D
This is an ARRAY formula so needs to be entered with ctrl+shift+enter

=INDEX(D21:D100,MATCH(TRUE,EXACT(C21:C100,"C"),0))

--
Don Guillett
SalesAid Software

"Dan in NY" wrote in message
...
I'm using vlookup for translating a code into a decode value. The codes

are
in both lowercase and uppercase, unfortunately with the same values (e.g.,
cnv and CNV represent 2 different things). Anyone know how to make

vlookup
case sensitive? Or is there another fancy excel function that can provide
the equivalent functionality?

Thanks!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 07:32 PM
Is there a formula to spell out a number in excel? Sha-nay-nay Excel Worksheet Functions 2 December 18th 04 09:25 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM
Spellnumber Norman Jones Excel Worksheet Functions 6 December 13th 04 07:21 AM
Identifying the Active Fill Color Steve Conary Excel Discussion (Misc queries) 3 December 9th 04 04:45 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"