+ Reply to Thread
Results 1 to 7 of 7

Formula to calculate Specific dates and times

  1. #1
    Registered User
    Join Date
    01-19-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    6

    Post Formula to calculate Specific dates and times

    Good Day Everyone

    Please assist I need to calculate specific times for specific days for Example
    In my spreadsheet I have 10 entry's for 2015-09-01 in currently calculating the hours used Start time and end time but need a way to lookup the specific date and then calculate the hours spend for the date.

    Regards
    Anton

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

    Re: Formula to calculate Specific dates and times

    Not enough info.

    Post a SMALL sample file and tell us what result you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    01-19-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    6

    Re: Formula to calculate Specific dates and times

    Sorry

    I want to calculate all the time spend in the time spend per case for that specific day only
    Below is the sample
    Magistrate Name Court Seat(Venue) Court Date Case Number Parties Name Start End Time spent per case
    dfg A 9/21/2015 12\04\2015 ABC 1:59 3:45 1:46
    dfg A 9/21/2015 12\04\2016 ABC 2:59 4:45 1:46
    dfg A 9/21/2015 12\04\2017 ABC 3:59 5:45 1:46
    dfg A 9/21/2015 12\04\2018 ABC 4:59 6:45 1:46
    dfg A 9/21/2015 12\04\2019 ABC 5:59 7:45 1:46
    dfg A 9/21/2015 12\04\2020 ABC 6:59 8:45 1:46
    dfg A 9/22/2015 12\04\2021 ABC 7:59 9:45 1:46
    dfg A 9/22/2015 12\04\2022 ABC 8:59 10:45 1:46

    Regards
    Anton

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

    Re: Formula to calculate Specific dates and times

    Sorry, can't figure out what you want to do from that sample data.

    Post a SMALL sample file and tell us what result you expect. A SMALL file will have about 20 rows worth of data. In *.xlsx file format the file will be about 9-10kb in size.

  5. #5
    Registered User
    Join Date
    01-19-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    6

    Re: Formula to calculate Specific dates and times

    Good Day Attached find the sample fileNew.xlsx

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Formula to calculate Specific dates and times

    See attached with several (similar) formulae:

    =SUMPRODUCT(($A$2:$A$15=A2)*(($B$2:$B$15="A")+($B$2:$B$15="B")+($B$2:$B$15="C"))*($E$2:$E$15)) for ALL Courts

    =SUMPRODUCT(($A$2:$A$15=A2)*($B$2:$B$15="A")*($E$2:$E$15)) for Court A

    A2 is the data (you may want to put a separate cell)
    Attached Files Attached Files

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

    Re: Formula to calculate Specific dates and times

    Something like this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Date
    Court Number
    Start Time
    End Time
    Time Spend
    Date
    Court Number
    Total Time
    2
    21-08-2015
    A
    10:00
    10:50
    0:50
    21-08-2015
    A
    4:10
    3
    21-08-2015
    B
    11:00
    11:50
    0:50
    B
    4:10
    4
    21-08-2015
    B
    12:00
    12:50
    0:50
    C
    4:10
    5
    21-08-2015
    A
    13:00
    13:50
    0:50
    6
    21-08-2015
    C
    14:00
    14:50
    0:50
    7
    21-08-2015
    A
    10:00
    10:50
    0:50
    8
    21-08-2015
    C
    11:00
    11:50
    0:50
    9
    21-08-2015
    C
    12:00
    12:50
    0:50
    10
    21-08-2015
    C
    13:00
    13:50
    0:50
    11
    21-08-2015
    A
    14:00
    14:50
    0:50
    12
    21-08-2015
    B
    15:00
    15:50
    0:50
    13
    21-08-2015
    C
    16:00
    16:50
    0:50
    14
    21-08-2015
    A
    17:00
    17:50
    0:50
    15
    21-08-2015
    B
    18:00
    18:50
    0:50
    16
    21-08-2015
    B
    19:00
    19:50
    0:50


    This formula entered in H2:

    =SUMIFS(E$2:E$16,A$2:A$16,F$2,B$2:B$16,G2)

    Format as [h]:mm

    Copy down as needed.

+ 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. Formula to Calculate the Number of Hours Between 2 Dates and Times
    By Squint in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2014, 03:28 PM
  2. Replies: 7
    Last Post: 04-09-2014, 09:25 AM
  3. [SOLVED] Date format problem using a formula in VBA to calculate difference between times and dates
    By alicebrewer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2012, 03:13 AM
  4. Need a formula to calculate time between open and closed dates and times
    By DebbieF in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2012, 02:45 AM
  5. Replies: 0
    Last Post: 11-14-2011, 05:40 PM
  6. Replies: 2
    Last Post: 02-25-2006, 12:20 PM
  7. Replies: 6
    Last Post: 03-25-2005, 03:06 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