View Single Post
  #2   Report Post  
Ken
 
Posts: n/a
Default

If you haven't already done this, highlight column C. Then go to Data Text
to Columns... Next Next and select Text
as the data format and then Finish. Sometimes that forces Excel to "see" the
entry as text.

"Gilbert De Ceulaer" wrote:

Sorry Ken,
I made some stupid mistake in my initial question.
I'll rephrase it :

The lookup-value sits in c39, and is "10" formatted as text.
The VLOOKUP-formula itself sits in k39, and reads
=VLOOKUP($C39;someplace;somecolumn;FALSE).
In the lookup-table "10" is present and formatted as text.
Nonetheless, I get #N/A as a result.

If I use
=VLOOKUP("10";someplace;somecolumn;FALSE).
I also get #N/A

But, if I use
=VLOOKUP(VALUE(+$C39);someplace;somecolumn;FALSE)
or
=VLOOKUP(10;someplace;somecolumn;FALSE)
the thing works.

I repeat : In the lookup-table "10" is present and formatted as text.

For the uniformity of the formula's in column K, I can not use this
VALUE-form, because the other values in column C are not numbers.

What is wrong ?
Gilbert