ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Days of the month (https://www.excelbanter.com/excel-programming/288961-days-month.html)

alexm999[_5_]

Days of the month
 
How do I list the days of the month with the corresponding day
vertically in 2 columns:

For example:
A B
1 Monday
2 Tuesday
3 Wednesday
4 Thursday


And so on all the way to the 31st or 30th (depending on month)?


---
Message posted from http://www.ExcelForum.com/


Rob van Gelder[_4_]

Days of the month
 

A1: 1-Jan-2004
A2: 2-Jan-2004
A3: ...

B1: =A1
B2: =A2
B3: ...

Select Column A. Set the cell format to d
Select Column B. Set the cell format to dddd

Rob


"alexm999 " wrote in message
...
How do I list the days of the month with the corresponding day
vertically in 2 columns:

For example:
A B
1 Monday
2 Tuesday
3 Wednesday
4 Thursday


And so on all the way to the 31st or 30th (depending on month)?


---
Message posted from http://www.ExcelForum.com/




alexm999[_6_]

Days of the month
 
I can fill out the sheet for January, but how do i get it to
automatically change in February?


---
Message posted from http://www.ExcelForum.com/


Rob van Gelder[_4_]

Days of the month
 
In that case.
A1: 1-Jan-2004
A2: =A1+1
A3: ...

Then whenever you want a new month, just change the date in A1


"alexm999 " wrote in message
...
I can fill out the sheet for January, but how do i get it to
automatically change in February?


---
Message posted from http://www.ExcelForum.com/




alexm999[_7_]

Days of the month
 
Code doesnt work, i'm getting a #value in the cell...


---
Message posted from http://www.ExcelForum.com/


Rob van Gelder[_4_]

Days of the month
 
Should work, which cell are you getting #VALUE in?


"alexm999 " wrote in message
...
Code doesnt work, i'm getting a #value in the cell...


---
Message posted from http://www.ExcelForum.com/




alexm999[_8_]

Days of the month
 
Thanks Alot!


---
Message posted from http://www.ExcelForum.com/


Peter Atherton[_18_]

Days of the month
 
Alex

Here is another way - it will change automatically each
month.
in A2 enter =DATE(YEAR(NOW()),MONTH(NOW()),1)
in a3 enter =A2+1 and copy down to A29 (to get to the 28th)
in a 30 enter =IF(A29+1EOMONTH(A29,1),"",A29+1) and copy
this down to A30.
Custom Format this column to dd
in b2 enter =WEEKDAY(A2) and copy down then format to ddd

Regards
Peter
-----Original Message-----
How do I list the days of the month with the

corresponding day
vertically in 2 columns:

For example:
A B
1 Monday
2 Tuesday
3 Wednesday
4 Thursday


And so on all the way to the 31st or 30th (depending on

month)?


---
Message posted from http://www.ExcelForum.com/

.



All times are GMT +1. The time now is 01:14 PM.

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