VLookup question

D

dvonj

I'm working on a spreadsheet to list work orders for customers needing PC and
laptop repair. Some of the jobs will be under warranty and others not. Can a
Vlookup be conditional like this. If the computer is under warranty then one
result is returned showing this. If it is not under warranty a differen
result is returned. Example, one column asks if the computer is under
warranty. If "Y" or "Yes" is in that column then the result would return
Total Cost for labor only. If there is an "N" or "No" then the result would
reflect Total Cost for labor and parts.
 
S

Sheeloo

=IF(A1="Y",formula to get labor cost only,formula to get cost for for labor
and parts)

assuming Col A has Y/N...

example
=IF(A1="Y",100,150)

You can replace 100 and 150 with cell references or calculations
=IF(A1="Y",B1,C1) if B1 has labor cost only and C1 has labor+parts...

Hope you get the idea. Instead of B1 and C1 you can have VLOOKUPs...

Copy the formula down to other cells... as required.
 
D

dvonj

I think I get it. So if A1=Y use vlookup1 and if A1=N use vlookup2? I might
add that the results retunred would correspond to the type of job being done
as well as if the unit is under warranty or not.
 

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