+ Reply to Thread
Results 1 to 7 of 7

Calculating time range

Hybrid View

  1. #1
    Registered User
    Join Date
    11-01-2012
    Location
    longmont
    MS-Off Ver
    Excel 2010
    Posts
    15

    Calculating time range

    I'm trying to find how many records i have for certain time ranges. I need counts for before 10:00 between 10:00 and 13:00 and after 15:30. i have only two columns in my pivot table. Column B is my count for how many orders i have for that time.

    Column A4:A58 Column B4:B58
    08:15:00 1
    08:16:00 8
    08:20:00 18
    08:22:00 3
    08:23:00 137
    08:24:00
    08:25:00
    08:43:00
    08:44:00
    08:51:00
    08:52:00
    08:56:00
    08:57:00
    08:58:00
    09:05:00
    09:16:00
    09:20:00
    09:21:00
    09:31:00
    09:42:00
    09:49:00
    10:15:00
    10:46:00
    11:48:00
    12:03:00
    13:22:00
    13:23:00
    13:24:00
    13:28:00
    13:31:00
    13:36:00
    13:38:00
    13:50:00
    14:30:00
    15:14:00
    15:15:00
    15:16:00
    15:17:00
    15:18:00
    15:19:00
    15:20:00
    15:21:00
    15:23:00
    15:24:00
    15:25:00
    16:01:00
    16:02:00
    16:13:00
    16:14:00
    16:36:00
    16:38:00
    16:39:00
    16:44:00
    16:45:00
    17:06:00

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Calculating time range

    HI Joeycrak,

    You can use sumproduct function here :-

    Formula: copy to clipboard
    =SUMPRODUCT(($A$1:$A$55>=$D2)*($A$1:$A$55<=$E2))

    where d2 and e3 can be time in between you need to calculate the count, see below file for more :-

    time range.xlsx

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,842

    Re: Calculating time range

    Are you saying that the counts for each time are in column B, and you want to SUM these within your 3 ranges?

    Also, does nothing happen between 13:00 and 15:30, or did you leave that range off your description?

    Pete

  4. #4
    Registered User
    Join Date
    11-01-2012
    Location
    longmont
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Calculating time range

    yes i need to figure out my counts for my time ranges. example from my initial post if i wanted to know 08:00:00-08:20:00 would be 27 and 08:20:00-08:23:00 would be 140

    08:00:00-10:00:00
    10:00:00-13:00:00
    13:00:00-13:50:00
    13:50:00-17:30:00

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,817

    Re: Calculating time range

    perhaps a sample spreadsheet attached may help

    countif() or countifs() should help
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  6. #6
    Registered User
    Join Date
    11-01-2012
    Location
    longmont
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Calculating time range

    Here you go
    Attached Files Attached Files

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,817

    Re: Calculating time range

    here i have added the value again in the data
    and then click on the entry

    Value field settings
    show values as
    % of grand total
    Attached Files Attached Files

+ 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