Splitting rows in a table based on date fields.

Tom123456

New Member
Joined
Feb 19, 2016
Messages
34
Hey,

I have a list of bookings that have a start & end date and a amount.

I need to split the table so that each month has it's own line and % amount

For example before it would look like this.

BookingStart DateEnd Date
Booking 101/08/201730/11/2017
Booking 101/10/201730/11/2017
Booking 211/08/201730/09/2017
Booking 211/08/201730/09/2017
Booking 307/08/201731/08/2017

<tbody>
</tbody>










but i need to work out how to split it to become like so

BookingStart DateEnd Date
Booking 101/08/201731/08/2017
Booking 101/09/201730/09/2017
Booking 211/08/201731/08/2017
Booking 201/09/201730/09/2017
Booking 211/08/201731/08/2017
Booking 201/09/201730/09/2017
Booking 307/08/201731/08/2017

<tbody>
</tbody>













I've added columns that calculates the number of days/month in each row and the amount per day but don't know where to start with using this information to split like this- if anyone can point me in the right direction it would be a great help!

Cheers,
Tom

<tbody>
</tbody>
 
Hmm... it looks like this site requires me to install some software on machine. I am sorry, but I am not willing to install new software on my computer just to download a file.

Many people use sites which do not require the users to do that, like "dropbox". If you put it on one of those sites, I would be willing to download it.
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
The good news is that I was able to download your database. The bad news is that I am unable to do much with it, as it looks like it is Access 2010 and I am using Access 2007. One of things I cannot do is open/access the Data table. Unfortunately, I don't know that I am going to be able to help any further.
 
Upvote 0
if you wrap the values you are trying to assign to your variable in the NZ function this should avoid this error.

i.e.

Code:
NumOfInstalments = [COLOR=#B22222]Nz([/COLOR]rst![Number of Installment Invoices][COLOR=#B22222])[/COLOR]

I would probably do this for all of the values if they are likely to be null sometimes.
 
Upvote 0

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top