MAX function with IF Statement

D

dbuc283

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
 
D

Die_Another_Day

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

Charles
xl Geek
 
B

Bob Phillips

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

array entered


--
HTH

Bob Phillips

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Data Validation for end of Month 5
How do I write If then statements? 2
Date Problem in VBA 3
Help with update query UDF 1
Query Problem - Urgent! 2
If Statement problem 1
maybe by VBE users..... 4
=DATEVALUE 5

Top