A row of dates split into either weeks or months (depending on which was selected) based off of a start and end date

atayaz

New Member
Joined
May 20, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

Hope someone can help me out, please.

I'm building a financial model template which needs to be adaptable to a range of project lengths. The number of columns need to be dependent on the length of the project and whether it is split into weeks or months. E.g. a 1 year long project split into months would have 12 columns.

Here is what it would it would look like split into months:

Project Title:
Manager:
Start Date:
01/01/2021
Projected End Date:
01/02/2022
Split into:Months
Project Item
Jan-21​
Feb-21​
Mar-21​
Apr-21​
May-21​
Jun-21​
Jul-21​
Aug-21​
Sep-21​
Oct-21​
Nov-21​
Dec-21​
Jan-22​
Feb-22​
Mar-22​
Apr-22​
May-22​
Jun-22​
Jul-22​
Aug-22​
Sep-22​
Oct-22​
blah
blah
blah
blah

and in weeks:

Project Title:
Manager:
Start Date:
24/05/2021
Projected End Date:
19/07/2021
Split into:Weeks
Project Item
24/05/2021​
31/05/2021​
07/06/2021​
14/06/2021​
21/06/2021​
28/06/2021​
05/07/2021​
12/07/2021​
19/07/2021​
blah
blah
blah
blah

Will clarify anything straight away if not clear.

Thank you!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMNOP
1Project Title:
2Manager:
3Start Date:01/01/2021
4Projected End Date:01/02/2022
5Split into:Months
6
7
8Project Item01/01/202101/02/202101/03/202101/04/202101/05/202101/06/202101/07/202101/08/202101/09/202101/10/202101/11/202101/12/202101/01/202201/02/2022
9blah
10blah
11blah
12blah
13
Main
Cell Formulas
RangeFormula
B8:O8B8=IF(B5="Months",EDATE(B3,SEQUENCE(,DATEDIF(B3,B4,"m")+1,0)),SEQUENCE(,1+(B4-B3)/7,B3,7))
Dynamic array formulas.
 
Upvote 0
Thank you for the welcome and fast reply.

I've just tried the formula, but do not have access to sequence. I think this is most likely to do with my IT departments control as I am on office 365 which should come with sequence from what I've read online.

Is there a way to do this without the use of sequence?

Thanks again.
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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