+ Reply to Thread
Results 1 to 5 of 5

MAX Formula Only Working for the First Cell

  1. #1
    Registered User
    Join Date
    08-19-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    MAX Formula Only Working for the First Cell

    I am a first-time poster and am having an issue getting the MAX function to compute the correct value. The formula works for the first cell, but I want to generate a series of maximum values and it is not working for the subsequent cells. I attached a sample spreadsheet. The problem area is shaded in blue in the spreadsheet.

    Here is what I am trying to do: I have values in column A, with values appearing one or more times down the column. There are numerical values in column B. I want to know the highest value in column B for each unique value in Column A. The only way I know of doing this is to dedupe Column A and then send each of the unique values through a MAX function to find the maximum value that appears for each of the column A values. This is the formula I am using:

    Please Login or Register  to view this content.
    It works for E2, but when duplicating the function in the next row and looking for the max value for the team name in E3, a "0" is returned, whereas a "1" should be returned. This is what the formula in that cell looks like:

    Please Login or Register  to view this content.
    What am I doing wrong? Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: MAX Formula Only Working for the First Cell

    You need to array enter the formula.

    Go into cell edit mode. Then confirm your formula using CTRL + SHIFT + ENTER.

    However, using entire column in this formula construct isn't recommended. Use dynamic named range or structured table.

    See attached.
    Attached Files Attached Files
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    08-19-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    Re: MAX Formula Only Working for the First Cell

    Thank you so much! I really appreciate that you provided not only the CTRL + SHIFT + ENTER tip, but also the named range. Very helpful!

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: MAX Formula Only Working for the First Cell

    You are welcome

    If you are satisfied with the solution provided. Please mark the thread as solved, using thread tools found at top of your initial post.

  5. #5
    Registered User
    Join Date
    08-19-2020
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    Re: MAX Formula Only Working for the First Cell

    Thanks for that tip too! Just closed it out.

+ 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. [SOLVED] Cell formula referencing file path contained in separate cell not working
    By BrokenDome in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2019, 08:17 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. [SOLVED] formula working in one cell but when copied to another cell it doesn't work
    By mike rand in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-31-2017, 01:33 PM
  4. Replies: 2
    Last Post: 01-14-2017, 10:57 AM
  5. Replies: 2
    Last Post: 04-29-2015, 06:26 AM
  6. Formula only working in 1 cell:S
    By JasonHopkins in forum Excel General
    Replies: 4
    Last Post: 01-31-2012, 10:03 AM
  7. Same Formula / Different Cell - not working
    By mikeexceltip in forum Excel General
    Replies: 3
    Last Post: 08-03-2009, 04:49 AM

Tags for this Thread

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