ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Can a worksheet date itself? (https://www.excelbanter.com/excel-worksheet-functions/41181-can-worksheet-date-itself.html)

Scout

Can a worksheet date itself?
 
Is it possible for Excel to compute the day of the week for a given month and
year?

I'd like to add this to an Excel timesheet in order to automatically number
the days of each week for any given month. The real crux, IMO, is
identifying the first day of the month.

See column A in:
http://www.servalt.com/timesheet2c.xlt

Thanks in advance, Excel gurus!

Chip Pearson

Scout,

You can return the weekday as a number between 1 (Sunday) and 7
(Saturday) with the formula

=WEEKDAY(A1)

To get the weekday name, use a formula like =FORMAT(A1,"dddd")

To get the first day of the month, use

=DATE(YEAR(A1),MONTH(A1),1)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Scout" wrote in message
...
Is it possible for Excel to compute the day of the week for a
given month and
year?

I'd like to add this to an Excel timesheet in order to
automatically number
the days of each week for any given month. The real crux, IMO,
is
identifying the first day of the month.

See column A in:
http://www.servalt.com/timesheet2c.xlt

Thanks in advance, Excel gurus!





All times are GMT +1. The time now is 12:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com