+ Reply to Thread
Results 1 to 6 of 6

Determine max value of range of numbers only if an adjacent cell contains a specific value

  1. #1
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Asheville NC
    MS-Off Ver
    Excel for Office 365 MSO
    Posts
    111

    Determine max value of range of numbers only if an adjacent cell contains a specific value

    I am trying to determine the max value of a range of values listed in range F7:F26. But only if a corresponding range E7:E26 contains the value in cell E29 (which is the letter M). If the letter M is not in E7:E26, do not consider its corresponding value in F7:F26 for the max calculation. I have tried "max if" formulas but can't get it to work. I only get the #value!" error.


    =MAX(IF(E7:E26=E29,F7:F26,""))
    Attached Files Attached Files

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Determine max value of range of numbers only if an adjacent cell contains a specific v

    You need to confirm array formulas with CTRL+SHIFT+ENTER not just ENTER; you'll see {Curly Brackets} around the equation in that case.

    When I tried it out, it worked just fine.

    Also, re: Merged Cells

    The cells E23:E26 are merged and filled with "M", but it will only be treated as E23 having the value. For example, if you put 5.0 in F25, it won't change the array formula because as far as the equation is concerned E24:E26 are blank.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Asheville NC
    MS-Off Ver
    Excel for Office 365 MSO
    Posts
    111

    Re: Determine max value of range of numbers only if an adjacent cell contains a specific v

    Thanks that worked.

    Updated thread question, how can I get it to enter the station number next to the selected value? See new attachment.
    Attached Files Attached Files

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Determine max value of range of numbers only if an adjacent cell contains a specific v

    Oh that's just a basic lookup with INDEX(MATCH) or whatever.

    something like:
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Determine max value of range of numbers only if an adjacent cell contains a specific v

    See this version.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    05-08-2015
    Location
    Asheville NC
    MS-Off Ver
    Excel for Office 365 MSO
    Posts
    111

    Re: Determine max value of range of numbers only if an adjacent cell contains a specific v

    ben_hensel...thanks for the help...both solutions worked.

    Czelaw...thank you also for the reply. I don't understand it but it appeared it return to correct results.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Determine date, return a value from adjacent cell
    By MilesDeep in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2014, 01:27 PM
  2. How can I hide certain adjacent cells if a specific cell is in a range value.
    By Losttwinky in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-24-2013, 04:35 PM
  3. Replies: 2
    Last Post: 02-27-2013, 11:16 PM
  4. Replies: 0
    Last Post: 01-29-2012, 10:05 PM
  5. Replies: 11
    Last Post: 07-10-2010, 07:58 AM
  6. [SOLVED] Determine specific range
    By sgl in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-11-2006, 01:35 PM
  7. [SOLVED] Determine which cells from a specific range equal a certain sum
    By Maxter21 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 11:05 AM

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