Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need help.
I have a cell that can contain either 10% or 20% on sheet A. In this same sheet I have a cell where I want to ask it to do the following: If cell value is 10% then lookup value x on sheet B and return column 13 value of sheet B, but if value is 20% in sheet A I want it to lookup value x on sheet B an return colum 12 value. My formula works for 10% but it doesnt wokr for 20%. This is the formula I have: =IF($D$5=10%,VLOOKUP(C14,'Precios Regulares'!$A$3:$M$28,13,IF($D$5=20%,VLOOKUP(C14,' Precios Regulares'!$A$3:$M$28,12,FALSE)))) Please help. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
You're missing a bracket from the middle and you've got an extra one at the end! Try this: =IF($D$5=10%,VLOOKUP(C14,'Precios Regulares'!$A$3:$M$28,13),IF($D$5=20%,VLOOKUP(C14, 'Precios Regulares'!$A$3:$M$28,12,FALSE))) Andy. "Marty" wrote in message ... I need help. I have a cell that can contain either 10% or 20% on sheet A. In this same sheet I have a cell where I want to ask it to do the following: If cell value is 10% then lookup value x on sheet B and return column 13 value of sheet B, but if value is 20% in sheet A I want it to lookup value x on sheet B an return colum 12 value. My formula works for 10% but it doesnt wokr for 20%. This is the formula I have: =IF($D$5=10%,VLOOKUP(C14,'Precios Regulares'!$A$3:$M$28,13,IF($D$5=20%,VLOOKUP(C14,' Precios Regulares'!$A$3:$M$28,12,FALSE)))) Please help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Incorporating Vlookup in a IF Statement | Excel Worksheet Functions | |||
If Statement linked to cell with VLOOKUP problem - getting wrong v | Excel Worksheet Functions | |||
vlookup inside an if statement? | Excel Discussion (Misc queries) | |||
Do I need a sumif or sum of a vlookup formula? | Excel Worksheet Functions | |||
Vlookup of an if statement return | Excel Worksheet Functions |