+ Reply to Thread
Results 1 to 3 of 3

Function to count days of year

Hybrid View

  1. #1
    Registered User
    Join Date
    01-18-2005
    Posts
    62

    Function to count days of year

    Dear all,

    I would like to count number of days of a certain year for example year 2004 has 366 days, year 2005 has 365 days.

    Could anyone help me to use function in Excel to do that.

    Thanks,

    Nam

  2. #2
    Registered User
    Join Date
    03-29-2004
    Posts
    5
    Subtracting the two dates and adding one would do that.
    e.g.
    A1 has the value "1/1/04"
    A2 has the value "31/12/04"
    A3 has the formula "=A2-A1+1"
    The result in A3 is "366" days.
    Voila!

  3. #3
    Registered User
    Join Date
    03-29-2004
    Posts
    5
    Or, if you have a date (e.g. A1 has the value "4/3/04") and you want to find out the number of days in that particular year, this will work too:

    =DATE(YEAR(A1),12,31)-DATE(YEAR(A1),1,1)+1
    = 366 days

+ 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