+ Reply to Thread
Results 1 to 3 of 3

Categorise data with date and time parameter

  1. #1
    Registered User
    Join Date
    08-15-2018
    Location
    South Africa
    MS-Off Ver
    Office 15
    Posts
    1

    Categorise data with date and time parameter

    Hi All,

    I need to group data per day, similar to WEEKDAY, but my "day" runs from 6-6AM, so basing the day on a date only doesn't work. We work a three shift model with the first shift starting at 6AM, so everything from midnight to 6AM should be included in the figure for the previous day.

    So, Monday 6AM-Tuesday 5:59AM should be categorised as Monday, for example, and Tuesday 6AM-Wednesday 5:59AM should be Tuesday - I'm a bit at a loss here. Hoping someone has a simple solution.

    Hope this illustrates my request better:

    Malfunct. start / Start Malfn (T)/ WEEKDAY= / DESIRED OUTPUT
    2018/01/29 / 05:59:59 / 1 / 7
    2018/01/29 / 06:47:00 / 1 / 1
    2018/01/30 / 03:40:00 / 2 / 1
    2018/01/30 / 03:57:53 / 2 / 1



    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Categorise data with date and time parameter

    Philip, welkom aan die forum

    Waar omtrent in SA?
    PE old boy here, from Klerksdorp, now living in USA.

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Categorise data with date and time parameter

    Sounds like a fire department schedule. 3 day rotations 24hr on 48 off? Is it?

    I might have something stored away.
    Dave

+ 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. Categorise data based on a range of values
    By webnise in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2015, 11:20 AM
  2. Replies: 2
    Last Post: 10-06-2014, 08:15 AM
  3. Replies: 0
    Last Post: 10-06-2014, 07:35 AM
  4. [SOLVED] Vlookup to categorise data groups
    By PatrickDC in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-15-2013, 02:37 AM
  5. Categorise dates by time since created
    By margamboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2013, 11:53 AM
  6. Code for passing a date as a parameter when pulling data
    By jaimealvarez in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2012, 11:52 AM
  7. Replies: 0
    Last Post: 04-05-2012, 12:11 PM

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