+ Reply to Thread
Results 1 to 7 of 7

Split a date range in a row into individual rows

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    Dubrovnik
    MS-Off Ver
    Excel 2010
    Posts
    4

    Split a date range in a row into individual rows

    HI,
    I need to split a date range in a row into one row per date. As well need to have individual date to me linked with description of it
    Attached is example sheet input is what I have and output what needed

    THanks
    V
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: Split a date range in a row into individual rows

    Can you please explain how you are arriving at your output?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    11-29-2012
    Location
    Dubrovnik
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Split a date range in a row into individual rows

    Arrival Departure Code Amount
    30/04/2013 3/05/2013 NSW0105 10
    1/05/2013 3/05/2013 NSW0105 5
    2/05/2013 6/05/2013 CSW0205 7

    Above are arrival of different groups to hotel. I need to split by individaul date which group was at hote.
    First group NSW0105 was at hotel 30/4, 1/5/ & 2/5
    Second Group NSW0105 was at hotel 01/05 & 2/5
    Third group CSW0205 was at hotel 02/5, 03/5, 04/5 & 05/5

    What I need is by date which group was in hotel (list all different groups individually) and as well how many rooms was used by individual groups

  4. #4
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: Split a date range in a row into individual rows

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button

  5. #5
    Registered User
    Join Date
    11-29-2012
    Location
    Dubrovnik
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Split a date range in a row into individual rows

    Dear Arlette,

    Thanks it is working now

    Vicko

  6. #6
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: Split a date range in a row into individual rows

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

  7. #7
    Registered User
    Join Date
    11-29-2012
    Location
    Dubrovnik
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Split a date range in a row into individual rows

    Thanks

+ 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