populating dates of the current month with a formula

jbrown021286

Board Regular
Joined
Mar 13, 2023
Messages
65
Office Version
  1. 365
Platform
  1. Windows
Cell Formulas
RangeFormula
B2:B33B2=IFERROR(INDEX('Calculated Data'!$C$46:$AG$46,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
C2:C33C2=IFERROR(INDEX('Calculated Data'!$C$47:$AG$47,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
D2:D33,G2:G33D2=IFERROR(C2/(B2*8),"")
E2:E33E2=IFERROR(INDEX('Calculated Data'!$C$44:$AG$44,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
F2:F33F2=IFERROR(INDEX('Calculated Data'!$C$45:$AG$45,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
N2N2=TODAY()

i am wanting to put a formula in column a that automatically does what i am doing manually in this example i need it to populate all the days of the current month starting with in this example 5/1 and ending the day before the current date. i also need it to not populate Sundays. in N2 i have a cell to reference the current date. is this possible?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try:
Excel Formula:
=LET(
start,EOMONTH(N2,-1)+1,
d,start+SEQUENCE(DAY(EOMONTH(start,0)),,0),
FILTER(d,WEEKDAY(d,1)<>1))
 
Upvote 0
What I was creating:
Excel Formula:
=LET(
eom,EOMONTH(N2,-1),
s,SEQUENCE(N2-eom-1,,eom+1,1),
FILTER(s,WEEKDAY(s)>1))
 
Upvote 0
Solution
What I was creating:
Excel Formula:
=LET(
eom,EOMONTH(N2,-1),
s,SEQUENCE(N2-eom-1,,eom+1,1),
FILTER(s,WEEKDAY(s)>1))
Cell Formulas
RangeFormula
A2:A33A2=LET(start,EOMONTH(N2,-1)+1,d,start+SEQUENCE(DAY(EOMONTH(start,0)),,0),FILTER(d,WEEKDAY(d,1)<>1))
B2:B33B2=IFERROR(INDEX('Calculated Data'!$C$46:$AG$46,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
C2:C33C2=IFERROR(INDEX('Calculated Data'!$C$47:$AG$47,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
D2:D33,G2:G33D2=IFERROR(C2/(B2*8),"")
E2:E33E2=IFERROR(INDEX('Calculated Data'!$C$44:$AG$44,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
F2:F33F2=IFERROR(INDEX('Calculated Data'!$C$45:$AG$45,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
N2N2=TODAY()

im not sure if i made an error applying the formula but i am getting a spill error
 
Upvote 0
Try clearing the cells in column 'A' from row 3 down
 
Upvote 0
Also my formula only needs to be in cell A3, you don't need to drag it down.
 
Upvote 0
Cell Formulas
RangeFormula
A2:A33A2=LET(start,EOMONTH(N2,-1)+1,d,start+SEQUENCE(DAY(EOMONTH(start,0)),,0),FILTER(d,WEEKDAY(d,1)<>1))
B2:B33B2=IFERROR(INDEX('Calculated Data'!$C$46:$AG$46,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
C2:C33C2=IFERROR(INDEX('Calculated Data'!$C$47:$AG$47,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
D2:D33,G2:G33D2=IFERROR(C2/(B2*8),"")
E2:E33E2=IFERROR(INDEX('Calculated Data'!$C$44:$AG$44,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
F2:F33F2=IFERROR(INDEX('Calculated Data'!$C$45:$AG$45,MATCH('Report TEST'!A2,'Calculated Data'!$C$35:$AG$35,0)),"")
N2N2=TODAY()

im not sure if i made an error applying the formula but i am getting a spill error
that got it thanks for the help
 
Upvote 0

Forum statistics

Threads
1,216,117
Messages
6,128,935
Members
449,480
Latest member
yesitisasport

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