Dynamic start date based on weekday name

wbstadeli

Board Regular
Joined
Mar 11, 2016
Messages
153
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm having difficulty trying to achieve what i want. I am making a Monthly Time Card, with a pre-configured 6 week format layout as seen in the picture, however i want the correct date (ex: 8/1/23) to populate correctly to the weekday name based off the month in the "Month/Year" cell. I have a working formula that almost achieves this, however it returns ONLY the day of the month, but I would like it to return the entire date (month/day/year) and then ill just format to display only the day of the month. I need the full date for more coding in the worksheet that uses a date, not just day of month. Here is the current formula that is in the first cell in the list (Week #1, Sunday) and then I autofilled (drag-down) the remaining of that column down to Week 6, Saturday with this formula.

Formula: =IF(MONTH(FLOOR(Start_Date-1,7)+ROWS($E$8:E8))=MONTH(Start_Date),DAY(FLOOR(Start_Date-1,7)+ROWS($E$8:E8)),"")
FYI: E8 is the cell to the right of Week #1, Sunday, "Start_Date" range is the cell that contains the month and year, in this example "August 2023"


Screenshot 2023-05-01 103814.png
 
i'm never sure of when the newer functions made it to 365. I thought ISNUMBER is pretty new.
but its been around for a while. I guess i never used it very much in the distant past.
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Glad we could help & thanks for the feedback.
 
Upvote 0
Pretty sure that ISNUMBER has been around forever, certainly was available in 2003
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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