+ Reply to Thread
Results 1 to 3 of 3

Calendar - Ajit

  1. #1
    Ajit Munj
    Guest

    Calendar - Ajit

    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
    --
    Knowldege is Power

  2. #2
    Arvi Laanemets
    Guest

    Re: Calendar - 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

    --
    When sending mail, use address arvil<at>tarkon.ee
    Arvi Laanemets


    "Ajit Munj" <[email protected]> wrote in message
    news:[email protected]...
    > 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
    > --
    > Knowldege is Power




  3. #3
    Arvi Laanemets
    Guest

    Re: Calendar - Ajit

    Hi

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


    --
    When sending mail, use address arvil<at>tarkon.ee
    Arvi Laanemets



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1