When you vlookup("1"... things get interesting. I devised a very very easy to follow example which shows my question/dilemma. 30 seconds tops for you to reproduce it
In A1 Type the 3 characters "1" and hit enter
In B1 Type the number 1 and hit enter
Copy A1 to A3.
B3=vlookup(a3,$a$1:$b$1,2,false)
B4=vlookup("1",$a$1:$b$1,2,false)
For fun, guess which ones succeed on the lookup, and which ones don't. Then read further.
B4 fails. No, it's not coercing a number from the argument, because if you copy B1 to A1, it still fails. B3 works.
Can anyone explain how things are being parsed/interpreted?
Now how about this: if you change A1 to
'1
would B4 work?
Here's another test for you: what happens when you type
="1"
in A1. Will B4 work then? I'll bet not everyone guessed those right. Pretty funky, huh?
Thanks if you can explain how things are being parsed/interpreted?
P.S. And I just have to say this: almost without fail (on OTHER boards, not THIS one ), whenever I post a confusing problem like this, that ought to be simple but apparently isn't, and someone is unable to actually answer, they get frustrated and feel compelled to explain that what I'm trying to do is ludicrous, or chastise that vlookup is supposed to be used for numeric lookups, etc. However I know that YOU are going to really explain what is happening here, and we'll all sing Kumbaya Or maybe it's just the simplest question in the world and I'm the only one who doesn't see it!
Bookmarks