+ Reply to Thread
Results 1 to 5 of 5

Is there a way to get the MAX() of a range of cells that may include some #N/A values?

  1. #1
    Registered User
    Join Date
    03-21-2015
    Location
    Milwaukee
    MS-Off Ver
    2010
    Posts
    16

    Question Is there a way to get the MAX() of a range of cells that may include some #N/A values?

    I know that MAX() will ignore logical values and text, but I'm having difficulty converting the #N/A cells into "" null text strings.

    Any ideas?

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Is there a way to get the MAX() of a range of cells that may include some #N/A values?

    Try this array formula

    =MAX(IF(ISNUMBER(A2:A6),A2:A6))

    ***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER

    Row\Col
    A
    B
    2
    456
    545
    3
    25
    4
    #N/A
    5
    545
    6
    **#N/A
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is there a way to get the MAX() of a range of cells that may include some #N/A values?

    Here's another one if using Excel 2010 or later.

    Data Range
    A
    B
    C
    1
    Value
    Max
    2
    92
    96
    3
    20
    4
    text
    5
    58
    6
    44
    7
    #N/A
    8
    96
    9
    95
    10
    2
    11
    ------
    ------
    ------


    This formula entered in C2:

    =AGGREGATE(14,6,A2:A10/ISNUMBER(A2:A10),1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    03-21-2015
    Location
    Milwaukee
    MS-Off Ver
    2010
    Posts
    16

    Re: Is there a way to get the MAX() of a range of cells that may include some #N/A values?

    Thank you AlKey and Tony. Both methods are just what I needed.
    I had not run across Aggregate before. It looks like it will be handy in the future.
    Thanks.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is there a way to get the MAX() of a range of cells that may include some #N/A values?

    You're welcome. Thanks for the feedback!

+ 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. Dynamic / Named Print Range To Include Another Range of Cells
    By thekrakenwakes in forum Excel General
    Replies: 0
    Last Post: 07-25-2014, 07:52 AM
  2. Print only range of cells that include data, even if all cells formatted
    By liam_bettinson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2012, 09:41 AM
  3. Subtotal range of values that include errors
    By 1eyedjack in forum Excel General
    Replies: 3
    Last Post: 06-29-2011, 10:39 AM
  4. Replies: 5
    Last Post: 05-26-2006, 04:40 PM

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