Auto fill dates and days of the week from month

drefiek2

Board Regular
Joined
Apr 23, 2023
Messages
59
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi,
I have a month in cell B8 and then 31 adjacent cells (C8:AG8) that I want to auto populate the numbered days, based on the month that is in cell B8. If a month has fewer than 31 days then it should leave the cells blank.
In the row below (C9:AG9) I want each cell to auto populate the day of the week (just the first two letters), based on the date from C8:AG8.
Thanks in advance.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
try this, it does require a Date value in cell B8:

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
8April010203040506070809101112131415161718192021222324252627282930
9MoTuWeThFrSaSuMoTuWeThFrSaSuMoTuWeThFrSaSuMoTuWeThFrSaSuMoTu
Sheet1
Cell Formulas
RangeFormula
C8:AF8C8=B8+SEQUENCE(1,DAY(EOMONTH(B8,0)),0,1)
C9:AF9C9=LEFT(TEXT(C8#,"dddd"),2)
Dynamic array formulas.
 
Upvote 0
Solution
My pleasure, thanks for the feedback.
Best wishes!
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,595
Members
452,657
Latest member
giadungthienduyen

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