#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default Vlookup

=IF(AND($B$6=65,OR($I$2="Y",$B$8="LPRE",$B$8="LPO S")),(VLOOKUP($I$7,'Price
Tables'!$E$2:$E$551,1,FALSE)),IF(AND($B$6<65,OR($I $2="Y",$B$8="LPRE",$B$8="LPOS")),(VLOOKUP($I$7,'Pr ice Tables'!$D$2:$D$551,1,FALSE)),TRUE,FALSE))

Can someone please tell me why this isn't working? Thank you

Basically, if they're over 65 look up E price table
if they're under 65, look up D price table.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Vlookup

=IF(AND($B$6=65,OR($I$2="Y",$B$8="LPRE",$B$8="LPO S")),VLOOKUP('Price
Tables'!$I$7,$E$2:$E$551,1,FALSE),IF(AND($B$6<65,O R($I$2="Y",$B$8="LPRE",$B$8="LPOS")),VLOOKUP($I$7, 'Price
Tables'!$D$2:$D$551,1,FALSE),""))


will return blank if no condition is true or #N/A if there is no match





--
Regards,

Peo Sjoblom



"Clara" wrote in message
...
=IF(AND($B$6=65,OR($I$2="Y",$B$8="LPRE",$B$8="LPO S")),(VLOOKUP($I$7,'Price
Tables'!$E$2:$E$551,1,FALSE)),IF(AND($B$6<65,OR($I $2="Y",$B$8="LPRE",$B$8="LPOS")),(VLOOKUP($I$7,'Pr ice
Tables'!$D$2:$D$551,1,FALSE)),TRUE,FALSE))

Can someone please tell me why this isn't working? Thank you

Basically, if they're over 65 look up E price table
if they're under 65, look up D price table.




  #3   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Vlookup

A specific problem is that you have too many elements in the last if
statement, you need to group the true false groups better,, but I think
another issue is that your look up tables are not looking up prices. what
are you comparing I7 to in youe tables?


"Clara" wrote:

=IF(AND($B$6=65,OR($I$2="Y",$B$8="LPRE",$B$8="LPO S")),(VLOOKUP($I$7,'Price
Tables'!$E$2:$E$551,1,FALSE)),IF(AND($B$6<65,OR($I $2="Y",$B$8="LPRE",$B$8="LPOS")),(VLOOKUP($I$7,'Pr ice Tables'!$D$2:$D$551,1,FALSE)),TRUE,FALSE))

Can someone please tell me why this isn't working? Thank you

Basically, if they're over 65 look up E price table
if they're under 65, look up D price table.


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 in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 12:52 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"