I want my formula to do the following:
lookup a value (staff number) on one sheet that contains all staff numbers and compare to another that only has some. If the number exists on both then return a value (costs) from the second sheet. If it does not exist on both then i want it to display nothing (not #N/A)
This displays #N/A
=IF(VLOOKUP(A1,SMP,1, FALSE) = A1, VLOOKUP(A1,SMP,3,TRUE), ""
As does this
=IF((ERROR.TYPE(IF((VLOOKUP(A22, SMP!$A$1:$C$18, 1) = A22), "Return Costs", ""
)) = 7, "", "Return Costs"
and now my brain hurts. HELP!!
lookup a value (staff number) on one sheet that contains all staff numbers and compare to another that only has some. If the number exists on both then return a value (costs) from the second sheet. If it does not exist on both then i want it to display nothing (not #N/A)
This displays #N/A
=IF(VLOOKUP(A1,SMP,1, FALSE) = A1, VLOOKUP(A1,SMP,3,TRUE), ""
As does this
=IF((ERROR.TYPE(IF((VLOOKUP(A22, SMP!$A$1:$C$18, 1) = A22), "Return Costs", ""
and now my brain hurts. HELP!!