+ Reply to Thread
Results 1 to 5 of 5

Split a date according to periods

Hybrid View

  1. #1
    Registered User
    Join Date
    07-04-2013
    Location
    Apt
    MS-Off Ver
    Excel 2007
    Posts
    4

    Split a date according to periods

    Hello everyone,

    I want to enter dates in a table when there is a period in another, the two terminals of the global date will be broken or split to create short periods and add other times to fill the time intervals empty.

    For example, I have these four periods of dates entered in my table:

    01/08/2013 – 31/08/2013
    05/08/2013 – 05/08/2013
    12/08/2013 – 19/08/2013
    15/08/2013 – 17/08/2013

    The VBA code will return this table:

    01/08/2013 – 04/08/2013
    05/08/2013 – 05/08/2013
    06/08/2013 – 11/08/2013
    12/08/2013 – 14/08/2013
    15/08/2013 – 17/08/2013
    18/08/2013 – 19/08/2013
    20/08/2013 – 31/08/2013

    Thanks.
    Last edited by apitos; 08-30-2013 at 07:09 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: Split a date according to periods

    1. Define: Global Date
    2. Explain how (why) the new table is generated.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    07-04-2013
    Location
    Apt
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Split a date according to periods

    Hi protonLeah


    At the start of each month I need to set a time for a comprehensive system of work for each agent.

    Meanwhile, in the course of the month, sometimes an agent to take a rest, defined as a period with a start date and an end date.

    Then the table contained only two line (two periods), will increase by an additional line, because the overall period shall be divided by the period of rest.

    Thank you.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-04-2013
    Location
    Apt
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Split a date according to periods

    Hi,

    Is that explanation enough?
    Last edited by apitos; 08-31-2013 at 06:27 AM.

  5. #5
    Registered User
    Join Date
    07-04-2013
    Location
    Apt
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Split a date according to periods

    Hi,

    One approach to give a try?

+ 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. How to split dates into smaller time periods
    By havocexe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2012, 10:58 AM
  2. Cost split into different periods
    By pdhawan in forum Excel General
    Replies: 0
    Last Post: 03-27-2012, 11:27 PM
  3. Date calculation-certain periods
    By Lennakame in forum Excel General
    Replies: 1
    Last Post: 05-24-2010, 04:30 PM
  4. Calculating Finacial Periods from date
    By jonn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2007, 01:12 PM
  5. Re: No. of days split into periods
    By Brian Ferris in forum Excel General
    Replies: 3
    Last Post: 01-31-2006, 11:35 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