J
Jack Slater
I need some help - any EZ to understand tutorials out there?
Jack Slater said:Not working yet -
I have the 2 sheets in file now and pasted the formula in a blank column in
sheet 1 but it is returning the NA for a part that IS listed in the 2nd
sheet which does have a value in column 2?? 2nd sheet is sorted in
ascending order - is there something else I need to do with it?
Jack
match,Dave Peterson said:The basic formula looks like:
=vlookup(a1,sheet2!$a$1:$z$9999,2,false)
Uses the value in A1 to search sheet2's A1:A9999. When it finds ahaveit
returns the 2 column (B) in that lookup range (A1:z9999).
But if it doesn't find a match, it returns #n/a's. You can hide them with:
=if(iserror(vlookup(...)),"Missing",vlookup(...))
(the vlookup formula is duplicated.)
And one more slight problem. If the cell to be returned is empty, then the
formula will show a 0.
You can stack one more level of checking to it:
=if(iserror(vlookup(...)),"Missing",if(vlookup(...)="","",vlookup(...)))
and if you want to prepopulate the formula in a bunch of cells, and want the
cell to look empty until you put something in A1.
=if(a1="","",oneofthoseextremelylongvlookupformulashere)
The good news is once you get one formula correct, you can copy it down your
range.