VLOOK UP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have used VLOOKUP but in few cells it is giving me #N/A in result. I have
noticed that if i change value in a cell from e.g. 111533 to '111533 it
solves the problem but i have more than 800 cells to change.
Is there an easy way to change the format?
Thanks
 
Would it be easier to change the data in the VLOOKUP table.
Otherwise change the first cell in your table and then use format painter to
change the rest.

HTH
Michael M
 
I have used VLOOKUP but in few cells it is giving me #N/A in result. I have
noticed that if i change value in a cell from e.g. 111533 to '111533 it
solves the problem


your matrix has numbers in format of text. the value you search is a number
=> N/A, if you change it to a text with ' => it works. that's normal.

you should have the same format on both sides, you must have the same format
in the matrix (you have text). so, you have to change the lookup value from
number to text with text(a1,"#"), like

=vlookup(text(a1,"#"), matrix, column, false)


or you make sure that you matrix contains numbers (change data import,
sql-statement, whatever)

arno
 
Would it be possible to give some more detail on this formula PLEASE.

Pls. read the online help on the functions VLOOKUP and TEXT.

=text(a1,"#") makes '1 (=a text) out of 1 (which is a number)

vlookup searches in the first column your data table (matrix) if it can find
'1 and will return the value of the column you specify. "false" means that
it will search for an EXACT match (otherwise it would return the next best
match what you DO NOT WANT!)

arno
 

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

Vlook-up in report with column Expansion 5
vlook up w- multiple variables 2
vlookup 2
Vlookup help 5
Excel 3
vlook up 1
Conditional format formula problem 3
Vlook up value is #N/A 4

Back
Top