+ Reply to Thread
Results 1 to 4 of 4

MAX function with IF Statement

  1. #1
    dbuc283
    Guest

    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. #2
    Die_Another_Day
    Guest

    Re: MAX function with IF Statement

    Nest the if statements
    =Max(if((A2:A7<C1),If((A2:A7>C2),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. #3
    dbuc283
    Guest

    Re: MAX function with IF Statement

    thanks for he help

    Die_Another_Day wrote:
    > Nest the if statements
    > =Max(if((A2:A7<C1),If((A2:A7>C2),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. #4
    Bob Phillips
    Guest

    Re: MAX function with IF Statement

    =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)

    "dbuc283" <[email protected]> wrote in message
    news:[email protected]...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1