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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,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