vlookup

G

Guest

I have a spreadsheet that has employees with pay grades, SR01 all the way
through SR15. I have a vlookup that looks for this in my paygrade range that
has SR01 next column the amt. (=vlookup,b2,paygrade,2).
The problem, I have some top officials listed, but with a pay grade not in
my pay grade range so it brings back the last one, so if I have SR15 $1980
as the last one in the range, and an official with a pay grade range SR18 it
brings back the last one in my list which is the amt for SR15. Is there
something else I need to add to the vlookup formula that if it doesn't find a
match to bring back a N/A or 0?
Thanks,
 
G

Guest

Try modifying formula to include the last option.........

=vlookup(b2,paygrade,2,FALSE)

Vaya con Dios,
Chuck, CABGx3
 
G

Guest

If you want something a bit more informative try:-

=IF(ISNA(VLOOKUP(B2,paygrade,2,FALSE)),"That salary grade cannot be
found",VLOOKUP(B2,paygrade,2,FALSE))

Mike
 

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

Top