Divide Current Month into weeks

davids4500

New Member
Joined
Jan 14, 2023
Messages
37
Office Version
  1. 365
Platform
  1. Windows
I have in A4 (=DATE(YEAR(TODAY()), MONTH(TODAY()), 1)), and i need a formula that will take this information and instead of showing just the month, show each week of the that month so sales figures appear in a weekly format instead of just one amount for the month. I would like the weeks information to appear as per image attached. When the month changes to a new month, then the week information will change.
 

Attachments

  • MrExcelAScreenshot 2024-09-22 152748.jpg
    MrExcelAScreenshot 2024-09-22 152748.jpg
    27.9 KB · Views: 16

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hello!
And why do you have 4 weeks, if there are five or six of them? It all depends on how to count them.
 
Upvote 0
Hello!
And why do you have 4 weeks, if there are five or six of them? It all depends on how to count them.
Dear Sergius.
Correct and September is a month where actually 6 weeks covered. I suppose the easist is just to have the weeks as they appear and accept some months will 6 weeks with 2 of those weeks consisting of 1 or 2 days. Or you could start the month on week 2 when the first week starts with a Sat or Sun. I am open to your suggestions as well..... Kindest regards David
 
Upvote 0
maybe this?


Cell Formulas
RangeFormula
B2B2=EOMONTH(A2,0)
A5:A46A5=TOCOL(TEXT(SEQUENCE(6,7,-MOD(WEEKDAY(A2,2),7)+1,7)," [>"&DAY(EOMONTH(A2,0))&"];;#"))
B5:B9B5=IFERROR(TEXT(VALUE(DATE(YEAR($A$2),MONTH($A$2),A5)),"mm/dd/yy")&" to "&TEXT(VALUE(IF(DATE(YEAR($A$2),MONTH($A$2),A5)+6<=EOMONTH($A$2,0),DATE(YEAR($A$2),MONTH($A$2),A5)+6,EOMONTH($A$2,0))),"mm/dd/yy"),"")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,633
Members
452,661
Latest member
Nonhle

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