#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default VLookup question

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default VLookup question

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.

"Sheeloo" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 225
Default VLookup question

Yes, you got it right...

Pl. click 'Yes' if this was helpful...

"dvonj" wrote:

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.

"Sheeloo" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP Question... Leonhardtk Excel Worksheet Functions 3 July 10th 07 09:05 PM
=vlookup question scott Excel Discussion (Misc queries) 0 June 8th 06 06:14 PM
VLOOKUP question Pierre Fichaud Excel Worksheet Functions 5 March 18th 05 10:53 PM
Vlookup question please Bob Newman Excel Worksheet Functions 3 March 17th 05 02:17 PM
vlookup question please Bob Newman Excel Worksheet Functions 1 March 17th 05 06:25 AM


All times are GMT +1. The time now is 01:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"