+ Reply to Thread
Results 1 to 4 of 4

MIN function - ignore blanks

Hybrid View

  1. #1
    Registered User
    Join Date
    02-26-2020
    Location
    Texas
    MS-Off Ver
    365
    Posts
    37

    MIN function - ignore blanks

    Well....I had the following formula to grab (in the referenced cells) the time that is provided by the user.

    =MIN(E6,E36,E72,E108,E153,E193,E233,E253)
    Then upon the last update, MIN no longer ignores blank cells and returns 12:00 a.m.

    I have tried this one as well (as a test) by bringing the result(s) into a single column.

    =MIN(IF(ISNUMBER(M6:M253),IF(M6:M253>0,M6:M253)))
    I'm kind of at a loss on this one. All of these cells are hidden and blank, unless the user physically enters a value (Ctrl+shift+

    Any insight would be appreciated.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,960

    Re: MIN function - ignore blanks

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,926

    Re: MIN function - ignore blanks

    In a scenario where MIN() is returning midnight, what are the actual values in E6, E36, ...? What do you see in the MIN() cell if you format as general or other non-date/time format? What do you see if you format the MIN() cell as its full date/time (mm/dd/yyyy hh:mm:ss)?

    I've never seen a case where MIN() fails to ignore blanks. Without seeing the data, we cannot debug for you. My guess is that one of those input cells contains a non-zero integer. Any integer formatted as time of day will display midnight. My second guess is that all of the cells contain dates/time/numbers stored as text strings. Since MIN() also ignores text, when all of its inputs are ignored text strings, it returns 0 (which will display as midnight).

    Look carefully at the values in your input cells and see what you have in those cells. See what that tells you about the result you are getting from your MIN() function.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    02-26-2020
    Location
    Texas
    MS-Off Ver
    365
    Posts
    37

    Re: MIN function - ignore blanks

    In a scenario where MIN() is returning midnight, what are the actual values in E6, E36, ...? What do you see in the MIN() cell if you format as general or other non-date/time format? What do you see if you format the MIN() cell as its full date/time (mm/dd/yyyy hh:mm:ss)?
    I went through and deleted all cells and I still got midnight when using MIN.
    I then focussed on the user input cell and just double-clicked and it worked.
    So this was user error and I appologize for wasting everyone's time. (pun intended)
    Y'all have a good weekend and thanks.

+ 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] Add a note to Index Match function but ignore blanks/non-existent data
    By rayted in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-29-2021, 06:35 AM
  2. [SOLVED] Array formula (stdev if function) -> how to ignore blanks?
    By paupaj in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-16-2020, 01:54 AM
  3. Replies: 1
    Last Post: 08-06-2019, 10:43 PM
  4. [SOLVED] Function to ignore rows based on blanks cells and counting without duplicates
    By lewiesth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2018, 02:02 AM
  5. ignore blanks
    By Patcheen in forum Excel General
    Replies: 7
    Last Post: 07-21-2017, 08:53 AM
  6. VBA code finds blanks, but how to write VBA to ignore non blanks?
    By hopegriffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2016, 10:51 AM
  7. [SOLVED] MIN function, ignore blanks and errors, not a continuous range...
    By spacely in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-16-2016, 08:59 PM

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