View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Sheeloo[_4_] Sheeloo[_4_] is offline
external usenet poster
 
Posts: 225
Default VLookup question

=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.


"dvonj" wrote:

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.