Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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, |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try,
=VLOOKUP(B2,paygrade,2,FALSE) False ensures it only finds exact matches Mike "Pammy" wrote: 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, |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try modifying formula to include the last option.........
=vlookup(b2,paygrade,2,FALSE) Vaya con Dios, Chuck, CABGx3 "Pammy" wrote: 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, |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 "Pammy" wrote: 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, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup in vlookup - taking the result as array name | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) | New Users to Excel | |||
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( | Excel Worksheet Functions | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |