Vlookup problems

  • Thread starter Thread starter Michael Milmoe
  • Start date Start date
M

Michael Milmoe

I have Vlookups set up for a particular Spreadsheet. Each
month I just drop the new data into the first column.
Even though the number is formatted just like the previous
month (i.e general, text, whatever) my vlookup formula
shows #N/A. If i double click in the data cell and hit
enter, the vlookup formula works. can you tell me why, or
if there is a better way than clicking and hitting enter?

Thanks!
 
do you have your automatic calculation turned on?
Under tools<options<calculation.
 
It sounds like the data you are "dropping" in was formatted as text and then reformatted as a number. The actual data isn't converted into a number until you act on it in some way, like clicking in the cell and hitting enter

If your lookup array uses numbers, a number formatted as text is not a match

Good Luck
Mark Graesse
(e-mail address removed)

----- Michael Milmoe wrote: ----

I have Vlookups set up for a particular Spreadsheet. Each
month I just drop the new data into the first column.
Even though the number is formatted just like the previous
month (i.e general, text, whatever) my vlookup formula
shows #N/A. If i double click in the data cell and hit
enter, the vlookup formula works. can you tell me why, or
if there is a better way than clicking and hitting enter

Thanks
 
Try using VALUE() to wrap around the lookup value,

instead of : =VLOOKUP(A1,TABLE,2,FALSE)

use: =VLOOKUP(VALUE(A1),TABLE,2,FALSE)
 
Thanks Max! It worked.
-----Original Message-----
Try using VALUE() to wrap around the lookup value,

instead of : =VLOOKUP(A1,TABLE,2,FALSE)

use: =VLOOKUP(VALUE(A1),TABLE,2,FALSE)

--
hth
Max
-----------------------------------------
Please reply in thread

Use xdemechanik <at>yahoo<dot>com for email
---------------------------------------------------------- ------------------



.
 
Another option is to use Dave McRitchie's Trimall macro every time you dump data
into the sheet - This will clean up any garbage. You can then copy an empty
cell, select the entire range and do Edit / Paste Special / Add. This will
coerce any data that should be numeric back to numbers:-

http://www.mvps.org/dmcritchie/excel/join.htm#trimall
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

VLookup 6
vlookup 1
Vlookup in Excel 2003 1
VLookUP formula help! 5
vlookup challenge with hyphen data placement 2
Vlookup Reference Certain Worksheets 4
Excel Vlookup Help 0
VLOOKUP Problem 1

Back
Top