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
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
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]
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
Try this code
Copy the Excel VBA code![]()
Please Login or Register to view this content.
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
Dear Arlette,
Thanks it is working now
Vicko
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.
Thanks![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks