Calendar - Ajit

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have entered the month as February, 2005 in cell A1. Now I
want excel to show the days from b1 to b28 as Tue, Wed etc.
till b28 (as there are 28 days in Feb 2005). Excel should
calculate the no. of days in the month & year entered in
cell A1

Ajit
 
Hi

Into A1, enter the month as 1st of February, 2005, and format the cell as
Custom "mmm, yyyy"
B1=IF(MONTH($A$1+ROW()-1)=MONTH(A1),$A$1+ROW()-1,"")
Copy down for 31 rows, and format as Custom "ddd"

The number of days in month:
=DAY(DATE(YEAR($A$1),MONTH($A$1)+1,0))

The number of days in year:
=DATEDIF(DATE(YEAR($A$1),1,1),DATE(YEAR($A$1),12,31),"D")+1
 
Hi

Another formula to calculate the number of days in year:
=365+(MONTH(DATE(YEAR($A$1),2,29))=2)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Days in Calender 5
days and dates - ajit 1
days in month - Ajit 11
conditional if -ajit 3
Dragging year - Ajit 2
format cell for figures - Ajit 3
conditional sum - Ajit 1
count conditional days - ajit 6

Back
Top