Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Colin
 
Posts: n/a
Default Excel 2000 VLOOKUP returns #N/A unless press F2 return on source?

In Excel 2000 I am using the following to get data from another sheet. Also I
am using it in other cases to get data from another workbook but the issue is
the same.

=VLOOKUP(A2,'BV data'!A:B,2,FALSE)

This returns '#N/A'. Clearly it is not finding a value. If however, I go to
the source cell (key) and press F2 to edit the cell and then press return
without making ANY changes, the formula works! With a lot of data this is a
completely impractical workaround.

Changing the format to number, cutting and pasting as values... all of this
doesn't work. It's not a precision issue as turning on the 'as displayed'
function on the Calculation tab under options doesn't help.

It's as if the number is appearing in the cell but its not really
reginstered there as far as Excel is concerned.

Really causing problems. Would really appreciate any help. Thanks in advance.

Colin
  #2   Report Post  
Colin
 
Posts: n/a
Default

S
Have solved it but still confused. I used 'Format/cells' to change the keys
to text. No good. If I use 'Data/Columns to Text' then all is OK.

What's the difference? Is the former just for display and the latter for how
the data is displayed?

Colin

"Colin" wrote:

In Excel 2000 I am using the following to get data from another sheet. Also I
am using it in other cases to get data from another workbook but the issue is
the same.

=VLOOKUP(A2,'BV data'!A:B,2,FALSE)

This returns '#N/A'. Clearly it is not finding a value. If however, I go to
the source cell (key) and press F2 to edit the cell and then press return
without making ANY changes, the formula works! With a lot of data this is a
completely impractical workaround.

Changing the format to number, cutting and pasting as values... all of this
doesn't work. It's not a precision issue as turning on the 'as displayed'
function on the Calculation tab under options doesn't help.

It's as if the number is appearing in the cell but its not really
reginstered there as far as Excel is concerned.

Really causing problems. Would really appreciate any help. Thanks in advance.

Colin

  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

The general rule is that changing the formatting of an existing # to Text
does not convert it to text. A digit or series of digits entered into a cell
ALREADY formatted as text are treated as text. That is why editing a value
after you had changed the format worked - Excel saw that as a new entry.

Text to Columns worked because, basically, Excel re-entered all the values
for you.

The other approach would be to convert the left-most column of your lookup
table from text to numbers. A simple way is to copy an EMPTY cell, select
the data in the left-most column, and use Edit-Paste Special-Values-Add.
Excel will then convert all the text values to numeric

"Colin" wrote:

S
Have solved it but still confused. I used 'Format/cells' to change the keys
to text. No good. If I use 'Data/Columns to Text' then all is OK.

What's the difference? Is the former just for display and the latter for how
the data is displayed?

Colin

"Colin" wrote:

In Excel 2000 I am using the following to get data from another sheet. Also I
am using it in other cases to get data from another workbook but the issue is
the same.

=VLOOKUP(A2,'BV data'!A:B,2,FALSE)

This returns '#N/A'. Clearly it is not finding a value. If however, I go to
the source cell (key) and press F2 to edit the cell and then press return
without making ANY changes, the formula works! With a lot of data this is a
completely impractical workaround.

Changing the format to number, cutting and pasting as values... all of this
doesn't work. It's not a precision issue as turning on the 'as displayed'
function on the Calculation tab under options doesn't help.

It's as if the number is appearing in the cell but its not really
reginstered there as far as Excel is concerned.

Really causing problems. Would really appreciate any help. Thanks in advance.

Colin

  #4   Report Post  
bpeltzer
 
Posts: n/a
Default

I run into similar issues with data that gets recreated regularly, so I
change between text and numbers within my vlookup function. Instead of
vlookup(a2, ...), I might use vlookup(trim(a2),...) to force my keys to be
treated as text or vlookup(value(a2),...) if I need them treated as numbers.


"Duke Carey" wrote:

The general rule is that changing the formatting of an existing # to Text
does not convert it to text. A digit or series of digits entered into a cell
ALREADY formatted as text are treated as text. That is why editing a value
after you had changed the format worked - Excel saw that as a new entry.

Text to Columns worked because, basically, Excel re-entered all the values
for you.

The other approach would be to convert the left-most column of your lookup
table from text to numbers. A simple way is to copy an EMPTY cell, select
the data in the left-most column, and use Edit-Paste Special-Values-Add.
Excel will then convert all the text values to numeric

"Colin" wrote:

S
Have solved it but still confused. I used 'Format/cells' to change the keys
to text. No good. If I use 'Data/Columns to Text' then all is OK.

What's the difference? Is the former just for display and the latter for how
the data is displayed?

Colin

"Colin" wrote:

In Excel 2000 I am using the following to get data from another sheet. Also I
am using it in other cases to get data from another workbook but the issue is
the same.

=VLOOKUP(A2,'BV data'!A:B,2,FALSE)

This returns '#N/A'. Clearly it is not finding a value. If however, I go to
the source cell (key) and press F2 to edit the cell and then press return
without making ANY changes, the formula works! With a lot of data this is a
completely impractical workaround.

Changing the format to number, cutting and pasting as values... all of this
doesn't work. It's not a precision issue as turning on the 'as displayed'
function on the Calculation tab under options doesn't help.

It's as if the number is appearing in the cell but its not really
reginstered there as far as Excel is concerned.

Really causing problems. Would really appreciate any help. Thanks in advance.

Colin

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
Excel 2000 and Excel 2003 Silfredo Excel Discussion (Misc queries) 0 August 9th 05 06:36 PM
Help! Excel 2000 fully SP'ed will not start Dirk-Thomas Brown Excel Discussion (Misc queries) 2 June 2nd 05 01:01 AM
How can I use Excel 2003 to sit for exams which are in Excel 2000 aguyo Excel Discussion (Misc queries) 1 March 14th 05 02:01 PM
Excel 2003 V's Excel 2000? Ket Excel Worksheet Functions 2 March 9th 05 12:05 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


All times are GMT +1. The time now is 05:14 AM.

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"