Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marty
 
Posts: n/a
Default If statement with Vlookup

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default If statement with Vlookup

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
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
Incorporating Vlookup in a IF Statement Shams Excel Worksheet Functions 6 January 24th 06 09:46 PM
If Statement linked to cell with VLOOKUP problem - getting wrong v Mike R. Excel Worksheet Functions 4 January 14th 06 02:16 PM
vlookup inside an if statement? carlosgdlf Excel Discussion (Misc queries) 3 August 4th 05 02:36 AM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
Vlookup of an if statement return James Excel Worksheet Functions 2 April 6th 05 10:28 PM


All times are GMT +1. The time now is 12:46 PM.

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

About Us

"It's about Microsoft Excel"