Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default MAX function with IF Statement

I am trying to get the MAX value form a list using an IF statement with
March 1st 2006 as the condition. Based on the following abbreviated
table, I wrote the following formula:

={MAX(IF((A2:A7<C1),B2:B7,0)}

Date Rate March 1, 2006
January 1, 2006 1.1511
January 31, 2006 1.1560
February 1, 2006 1.1573
February 28, 2006 1.1614
March 1, 2006 1.1593
March 31, 2006 1.1450


I want to be able to rewrite the condition to specify a date range such
as greater than Jan 31st but less than March 1st. Any help would be
appreciated

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default MAX function with IF Statement

Nest the if statements
=Max(if((A2:A7<C1),If((A2:A7C2),B2:B7,0),0))

Charles
xl Geek
dbuc283 wrote:
I am trying to get the MAX value form a list using an IF statement with
March 1st 2006 as the condition. Based on the following abbreviated
table, I wrote the following formula:

={MAX(IF((A2:A7<C1),B2:B7,0)}

Date Rate March 1, 2006
January 1, 2006 1.1511
January 31, 2006 1.1560
February 1, 2006 1.1573
February 28, 2006 1.1614
March 1, 2006 1.1593
March 31, 2006 1.1450


I want to be able to rewrite the condition to specify a date range such
as greater than Jan 31st but less than March 1st. Any help would be
appreciated


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default MAX function with IF Statement

thanks for he help

Die_Another_Day wrote:
Nest the if statements
=Max(if((A2:A7<C1),If((A2:A7C2),B2:B7,0),0))

Charles
xl Geek
dbuc283 wrote:
I am trying to get the MAX value form a list using an IF statement with
March 1st 2006 as the condition. Based on the following abbreviated
table, I wrote the following formula:

={MAX(IF((A2:A7<C1),B2:B7,0)}

Date Rate March 1, 2006
January 1, 2006 1.1511
January 31, 2006 1.1560
February 1, 2006 1.1573
February 28, 2006 1.1614
March 1, 2006 1.1593
March 31, 2006 1.1450


I want to be able to rewrite the condition to specify a date range such
as greater than Jan 31st but less than March 1st. Any help would be
appreciated


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default MAX function with IF Statement

=MAX(IF((A2:A7A3)*(A2:A7<C1),B2:B7))

array entered


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"dbuc283" wrote in message
oups.com...
I am trying to get the MAX value form a list using an IF statement with
March 1st 2006 as the condition. Based on the following abbreviated
table, I wrote the following formula:

={MAX(IF((A2:A7<C1),B2:B7,0)}

Date Rate March 1, 2006
January 1, 2006 1.1511
January 31, 2006 1.1560
February 1, 2006 1.1573
February 28, 2006 1.1614
March 1, 2006 1.1593
March 31, 2006 1.1450


I want to be able to rewrite the condition to specify a date range such
as greater than Jan 31st but less than March 1st. Any help would be
appreciated



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
Function or If statement help KrissyiP Excel Worksheet Functions 1 July 22nd 09 11:46 PM
IF function returns function statement rather than result ckrogers Excel Worksheet Functions 3 April 16th 09 09:21 PM
IF Then statement or another function to look for a value TerryD Excel Worksheet Functions 2 April 18th 08 02:11 PM
Function IF statement Raymond Excel Worksheet Functions 11 February 2nd 08 04:43 AM
MID STATEMENT vs MID FUNCTION davidm Excel Programming 5 September 28th 05 05:13 PM


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