+ Reply to Thread
Results 1 to 17 of 17

Grouping Time in Start-End Interval

  1. #1
    Registered User
    Join Date
    05-23-2015
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    9

    Grouping Time in Start-End Interval

    Hi All,

    I have been googling for past few days and with failure generating the report i desire. Please teach me the formula for following;

    >> I have hundreds of tickets with date/time stamped. I want to group it according this time pattern i.e 8am-5pm , 5pm-2am , 2am-8am . I used this formula =IF(AH2>AH3,AH3+1-AH2,AH3-AH2) but i guess its wrong.

    please advice.

    PKK

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Grouping Time in Start-End Interval

    Hello
    Are you looking to do a count of tickets between each time frame?

  3. #3
    Registered User
    Join Date
    05-23-2015
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    9

    Re: Grouping Time in Start-End Interval

    yes thats right
    Last edited by kpravin827; 05-23-2015 at 11:17 AM.

  4. #4
    Registered User
    Join Date
    05-23-2015
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    9

    Re: Grouping Time in Start-End Interval

    yes that right. looking to sum the count of ticket between each time frame.

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Grouping Time in Start-End Interval

    Hi
    I'll mock up a spreadsheet with some example data to give you an idea as to how to proceed. Much depends upon how your data of ticket time stamps is laid out.

  6. #6
    Registered User
    Join Date
    05-23-2015
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    9

    Re: Grouping Time in Start-End Interval

    this is my spreadsheet looks likemy ticket.xlsx

  7. #7
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Grouping Time in Start-End Interval

    Take a look at the attached reply. I've had a bit of trouble as the times pass midnight so I've had to compensate for that also your times are included with the date. Check the results for accuracy.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-23-2015
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    9

    Re: Grouping Time in Start-End Interval

    DBY, thats is accurate. Thanks alot.

    I then tried customizing it and hit "0" on time frame 4pm - 12am. what could be wrong here?

    12am - 8am SUMPRODUCT((MOD(AE2:AE524,1)>=AQ3)*(MOD(AE2:AE524,1)<AQ4))

    8am -4pm SUMPRODUCT((MOD(AE2:AE524,1)>=AQ5)*(MOD(AE2:AE524,1)<AQ6))

    4pm - 12am SUMPRODUCT((MOD(AE2:AE524,1)>=AQ7)*(MOD(AE2:AE524,1)<AQ8))

  9. #9
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Grouping Time in Start-End Interval

    What values do you have in the cells: AQ3; AQ4; AQ5; AQ6; AQ7; and AQ8?. The way you have that set out, they should be respectively: 00:00; 08:00; 08:00; 16:00; 16:00; and 1. However, I would have them like this as you're now not crossing midnight:

    00:00 Formulas Column
    08:00
    16:00
    1

    Remember these must be Time Values, the 12am - 8am cells are labels only.

  10. #10
    Registered User
    Join Date
    05-23-2015
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    9

    Re: Grouping Time in Start-End Interval

    Yes it does not cross midnight so literally the formula is the same for all column. I tried and hitting same result "0" and this time the total sum doesn't tally.my ticket_new time frame.xlsx

  11. #11
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Grouping Time in Start-End Interval

    Hi
    Take a look at the amended version of your uploaded file. It makes some corrections to what both you and I had been doing. Please check for accuracy.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    05-23-2015
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    9

    Re: Grouping Time in Start-End Interval

    DBY, thanks a bunch man. you are my hero.... thank you.....

  13. #13
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Grouping Time in Start-End Interval

    Glad to have helped.

  14. #14
    Registered User
    Join Date
    05-23-2015
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    9

    Re: Grouping Time in Start-End Interval

    hi , how can we separate those pulled data based on time frame into month,date,year?

  15. #15
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Grouping Time in Start-End Interval

    Hi
    Perhaps as in the amended attachment?
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    05-23-2015
    Location
    malaysia
    MS-Off Ver
    2013
    Posts
    9

    Re: Grouping Time in Start-End Interval

    not exactly. i wanted to sort as you did for the month, year, days but the data used to sort this comes from the specific time range we did earlier .
    Last edited by kpravin827; 05-29-2015 at 12:30 AM.

  17. #17
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Grouping Time in Start-End Interval

    Try the new amended file. Perhaps this is closer? It has a scroll for the Days to save space.

    DBY
    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)

Similar Threads

  1. Grouping Times By 10 Second Interval
    By Kris.tina in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2014, 08:38 AM
  2. Interval, grouping or range in Pivot
    By sriku in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-27-2014, 02:14 PM
  3. Replies: 1
    Last Post: 04-29-2014, 04:42 AM
  4. Need help grouping/consolidating data by time interval
    By kushki in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2012, 04:21 PM
  5. Replies: 0
    Last Post: 04-23-2012, 10: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