+ Reply to Thread
Results 1 to 4 of 4

MAX/MIN problem with time

  1. #1
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298

    MAX/MIN problem with time

    hello,

    I have the following formula C= day in DD/MM/YYYY and D = Time in HH:MM format and BJ5 is the date

    Please Login or Register  to view this content.
    which works fine as it finds the max time in a list, however i need to find the min time in the same list, when I change it from MAX to MIN it returns a 00:00,

    any clues?

    thanks reg
    Last edited by NBVC; 07-13-2009 at 10:43 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: MAX/MIN problem with time

    Try instead:

    =MIN(IF((D1:D11>0)*(Input!C1:C11=J5),(Input!D1:D11)))

    confirmed with CTRL+SHIFT+ENTER

    your formula was producing an array trues/falses multiplied by an array of 0's (where cells are blank) and dates... false * 0 = 0 and therefore min=0
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298

    Re: MAX/MIN problem with time

    Thanks NBVC,

    works great.

    cheers reg

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: MAX/MIN problem with time

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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