+ Reply to Thread
Results 1 to 5 of 5

=max(if(a2:a101=5.4,b2:b101))?

  1. #1
    Registered User
    Join Date
    02-06-2006
    Posts
    42

    =max(if(a2:a101=5.4,b2:b101))?

    Hi People,

    I have two columns of data, I want to find the maximum value in column B of rows whose corresponding row cell in column A contains 5.4. The formula I have tried to use is:

    =MAX(IF(A2:A101=5.4,B2:B101))

    But this doesn't work. Any other ideas?

    Can I define a name that will relate to all cells in column B whose corresponding row cell in column A has a value of 5.4?

  2. #2
    Duke Carey
    Guest

    RE: =max(if(a2:a101=5.4,b2:b101))?

    Did you enter it as an array formula by pressing Ctrl-Shift-Enter


    "coa01gsb" wrote:

    >
    > Hi People,
    >
    > I have two columns of data, I want to find the maximum value in column
    > B of rows whose corresponding row cell in column A contains 5.4. The
    > formula I have tried to use is:
    >
    > =MAX(IF(A2:A101=5.4,B2:B101))
    >
    > But this doesn't work. Any other ideas?
    >
    > Can I define a name that will relate to all cells in column B whose
    > corresponding row cell in column A has a value of 5.4?
    >
    >
    > --
    > coa01gsb
    > ------------------------------------------------------------------------
    > coa01gsb's Profile: http://www.excelforum.com/member.php...o&userid=31214
    > View this thread: http://www.excelforum.com/showthread...hreadid=521059
    >
    >


  3. #3
    Registered User
    Join Date
    01-05-2006
    Posts
    65
    Your formula is correct but you need to commit it with ctrl+shift+enter
    not just enter, because it is an array formula.

  4. #4
    JE McGimpsey
    Guest

    Re: =max(if(a2:a101=5.4,b2:b101))?

    What "doesn't work"?

    Are you array-entering it as it should be (i.e., with CTRL-SHIFT-ENTER)?


    In article <[email protected]>,
    coa01gsb <[email protected]>
    wrote:

    > Hi People,
    >
    > I have two columns of data, I want to find the maximum value in column
    > B of rows whose corresponding row cell in column A contains 5.4. The
    > formula I have tried to use is:
    >
    > =MAX(IF(A2:A101=5.4,B2:B101))
    >
    > But this doesn't work. Any other ideas?
    >
    > Can I define a name that will relate to all cells in column B whose
    > corresponding row cell in column A has a value of 5.4?


  5. #5
    Registered User
    Join Date
    02-06-2006
    Posts
    42
    Cheers guys, absolutely right I was not pressing CRTL-SHIFT_ENTER

+ 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