+ Reply to Thread
Results 1 to 7 of 7

How to find max value with empty cells & #div/0!

  1. #1
    Registered User
    Join Date
    06-10-2020
    Location
    Toronto
    MS-Off Ver
    2007
    Posts
    13

    How to find max value with empty cells & #div/0!

    Hello, I have attached an example chart that I use regularly for work. Is there a way to find the max value of this chart, or even the top 5 max values (would be ideal but will settle for just one max figure for now if it's not possible)? I have tried numerous things but it seems that the empty cells and/or the #DIV/0! cells are causing issues for me. Also, is there a way to have a separate cell next to the max number that references the actual cell that this max value is found (to save me time from having to look through each cell individually until I find that max number the formula spits out)?

    Thank you in advance
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,451

    Re: How to find max value with empty cells & #div/0!

    Pls try , select Area A37:A42 array formula
    {=LARGE(IF(--ISNUMBER($B$2:$AH$34),$B$2:$AH$34),ROW(1:5))}

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: How to find max value with empty cells & #div/0!

    No fancy array formulas needed

    In both cases you can use the AGGREGATE function
    Max of a range =AGGREGATE(4,6,B2:AH35)
    5 largest =AGGREGATE(14,6,(B2:AH35),1) replace the last paramater with2 , 3 , 4 , 5 to get the other top 5 values

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,451

    Re: How to find max value with empty cells & #div/0!

    Quote Originally Posted by Pepe Le Mokko View Post
    No fancy array formulas needed

    In both cases you can use the AGGREGATE function
    Max of a range =AGGREGATE(4,6,B2:AH35)
    5 largest =AGGREGATE(14,6,(B2:AH35),1) replace the last paramater with2 , 3 , 4 , 5 to get the other top 5 values
    Thanks for your advice, because I don't have a new version MSO, so I can only solve the problem with a lower version method

  5. #5
    Registered User
    Join Date
    06-10-2020
    Location
    Toronto
    MS-Off Ver
    2007
    Posts
    13

    Re: How to find max value with empty cells & #div/0!

    Thank you for the replies.

    Unfortunately the Aggregate suggestion did not work for me as it just returns a #NAME?. I'm guessing the fact that I'm running an older version of Excel (2007) may be causing this, and although I would rather not use an array formula, I'm beginning think that it's unavoidable at this point given the older version I'm running.

    I tried the array formula and it worked! Thank you

  6. #6
    Forum Contributor
    Join Date
    05-16-2012
    Location
    Latina, ITALY
    MS-Off Ver
    Excel 2010--2016
    Posts
    947

    Re: How to find max value with empty cells & #div/0!

    A greeting

    a solution could be
    select B2; AH34
    from the Find menu
    # DIV / 0!
    replace
    0
    Then I made a table in C36
    =LARGE($B$2:$AH$34,ROW(A1))

    to go down for the first 5 numbers
    and alongside the cell address that contains this valu

    =ADDRESS(SUMPRODUCT(($B$2:$AH$34=C36)*ROW($B$2:$AH$34)),SUMPRODUCT(($B$2:$AH$34=C36)*COLUMN($B$2:$AH$34)),4)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-10-2020
    Location
    Toronto
    MS-Off Ver
    2007
    Posts
    13

    Re: How to find max value with empty cells & #div/0!

    Thank you, that worked as well!

+ 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. How to find empty cells
    By dhineshreddy in forum Excel General
    Replies: 4
    Last Post: 01-23-2018, 02:28 PM
  2. Find count of filled cells and empty cells in a column
    By thepinkgeologist in forum Excel General
    Replies: 4
    Last Post: 09-22-2015, 01:03 PM
  3. Find empty cells and use data from neighboring cells to populate a list?
    By Margate in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-30-2015, 05:33 PM
  4. Replies: 5
    Last Post: 05-13-2014, 10:19 AM
  5. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 AM
  6. find empty cells
    By nobby2193 in forum Excel General
    Replies: 3
    Last Post: 06-22-2010, 06:32 AM
  7. Find empty cells
    By Maria in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-29-2005, 03:06 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