Allocate amount over columns based on specified date range or

granty

Board Regular
Joined
Jul 28, 2005
Messages
121
Dear All,

I need help with a VBA code for the following , please

- Allocate an amount over time, and split the amount into monthly column, based on a period start and end dates & number of days in each month

- e.g Start Date: 01/01/2019 – End Date 31/03/2019, & the spreadsheet has monthly columns for entering values. Using the start and end dates, I would like to be able to do these:

1. If I run the code in Sep 18, I would like the figures to go into columns JAN 19, FEB 19, & MAR 19. I do not want anything in SEP 18 – DEC 18 columns

2. If I run the code in Feb 19, I do not want any figures to go into Jan 19. Jan 19 & Feb19 figure will go into Feb 19 column, Mar 19 figure into Mar 19.

Thank you in advance for your help.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi,

Please check out this video, it could solve your problem:

 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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