View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default If/Vlookup override


Modify lookup range to suit

=VLOOKUP(A13,Sheet1!A1:X31,IF(E13="sc",4,IF(E13="s nf",3,IF(J7="small",2,IF(J7="medium",3,IF(J7="larg e",4))))),0)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Carolina" wrote in message
...
I have a form that I am creating and need your assistance. Currently I have
the following formula and it is working perfectly.

=IF($J$7="Small",VLOOKUP(A13,'Property
List'!$F$2:$G$31,2,FALSE),IF($J$7="Medium",VLOOKUP (A13,'Property
List'!$F$2:$H$31,3,FALSE),IF($J$7="Large",VLOOKUP( Sales!A13,'Property
List'!$F$2:$I$31,4,FALSE))))

The only thing is that now I need to add two more variables and I am
unsure
how to proceed. Regardless if $JS7 is Small, Medium or Large I need the
formula to override if either any of the following happens:

IF(E13="SC",5)
or
IF(E13="SNF",3)

Thanks.