+ Reply to Thread
Results 1 to 3 of 3

MIN MAX Help

  1. #1
    Registered User
    Join Date
    12-21-2012
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    6

    MIN MAX Help

    Hello all,

    I hope someone can help me.

    My data looks like this;

    Column A = Person Name
    Column B = Start DateTime (DD/MM/YYYY hh:mm:ss)
    Column C = Finish DateTime (DD/MM/YYYY hh:mm:ss)

    What I would like is a formula to calculate the MIN Start DateTime and MAX Finish DateTime based on a persons name set in E1 and a preset date value in DD/MM/YYYY format set in E2. If the results could be displayed in F1 Start and F2 Finish that would be great.

    ie; What time did Andrew start working on 01/01/2013 and what time did he finish on the same day.

    The persons name could be duplicated numerous times in a day, as and when they would start a project and finish a project.

    Any help would be great as I'm having a bad day and my head hurts....

    Thanking you in advance
    Attached Files Attached Files
    Last edited by Bacbuk; 01-14-2013 at 12:01 PM.

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

    Re: MIN MAX Help

    Try:

    =MIN(IF($A$2:$A$13=E1,IF(INT($B$2:$B$13)=E2,MOD($B$2:$B$13,1))))

    and

    =MAX(IF($A$2:$A$13=E1,IF(INT($C$2:$C$13)=E2,MOD($C$2:$C$13,1))))


    adjust the ranges to suit...then each formula must be confirmed with cTRL+SHIFT+ENTER not just ENTER.
    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
    Registered User
    Join Date
    12-21-2012
    Location
    Leicester, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    6

    Re: MIN MAX Help

    That is fantastic, working like a dream!

    Thank you so much for your help. I was all most there with my own formula, damn.

    Thank you once again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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