+ Reply to Thread
Results 1 to 9 of 9

MIN & MAX not working ???

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    MIN & MAX not working ???

    Attached is an image of a partial sheet I use. As you can see times are entered and a result is given.

    The MAX time works (formula =MAX(u7:u76)
    The MIN time does not (formula =MIN(u7:u76)

    Can anyone shed any light as to why?? or even a replacement formula that returns the correct data.
    Attached Images Attached Images
    Last edited by ukphoenix; 10-22-2013 at 03:06 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,902

    Re: MIN & MAX not working ???

    Cannot evaluate your spreadsheet from a picture.
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: MIN & MAX not working ???

    Agree with Alan, its pretty much impossible to see what you are working with there.

    However, keep in mind that if you cells with a formul athat returns a zero, that will be the lowest value in that range
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: MIN & MAX not working ???

    as requested here is a sample page of the workbook. As you can see i have filled data in rows 73 & 74 giving a max and min time.

    In cells U78 Max works fine but in cell U79 returns 00 as an answer.

    Is it picking the blank cells in column U up so therefore as suggested by FDibbins the time remains 00.

    If this is the case then how do I get the MIN to ignore the blank cells
    Attached Files Attached Files

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: MIN & MAX not working ???

    hi ukphoenix. try:
    =SMALL(U7:U76,COUNTIF(U7:U76,0)+1)

    by the way, it's quite useful for us if you put in your MS Off Ver in your profile. it helps us decide if you can use a newer & better formula. go to Settings -> Edit Profile

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: MIN & MAX not working ???

    Ok updated profile

  7. #7
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: MIN & MAX not working ???

    ok formula works and returns a minimum when data is entered. But to tidy the sheet up completely if all are blank in column U it returns the data as #NUM!, can something be added to remove this and leave answer as 00:00:00 until it has a figure to display ??

  8. #8
    Registered User
    Join Date
    04-28-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: MIN & MAX not working ???

    Hi ukphoenix,
    Try
    =IFERROR(SMALL(U7:U76,COUNTIF(U7:U76,0)+1),0)

  9. #9
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: MIN & MAX not working ???

    Ok well that seems to work, thanx all for your help

+ 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. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  2. Replies: 4
    Last Post: 09-03-2013, 02:52 AM
  3. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  4. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  5. Replies: 1
    Last Post: 01-26-2005, 04:20 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