Populate the months in-between the Start and End Date.

VBA learner ITG

Active Member
Joined
Apr 18, 2017
Messages
272
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Can I please pick your brains on this one as i'm stumped on how I will achieve this.

I have been asked to populate a month range between a start date and end date.

For example:

Column D8 = Start Date
Column D9 = End Date

Column C25 through to C36 i need to show the months between D8 and D9.

The issue I have is the start date and end date can change so i need to have the data in column C25 to C36 dynamic to accommodate this.

Any advice or pointers would be greatly appreciated.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
UPDATE:

I found the below formula which is dynamic and works on my criteria and will show only the months between the 2 dates.

=IF(C25="","",IF(EDATE(C25,1)>$D$9,"",EDATE(C25,1)))


I HOPE THIS IS USEFUL TO ANYONE READING MY POST.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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