+ Reply to Thread
Results 1 to 3 of 3

Formula To Count Days In Year From Date

  1. #1
    Registered User
    Join Date
    12-20-2004
    Posts
    88

    Formula To Count Days In Year From Date

    Richardeye came up with this great formula. I realize that I need the year to change as time passes. The formula gives the number of days from the first of the year until the day before the entered date.

    Is there a way to make the formula change the year automatically based on the year in the date instead of a manual change?

    Example: if the date was 3/31/06 (C1), change the formula automaticaly from

    =C1-DATE(2005,1,1)
    To read

    =C1-DATE(2006,1,1)

    C1= DATE CELL

  2. #2
    Forum Contributor
    Join Date
    09-05-2004
    Location
    Melbourne
    Posts
    193
    try

    =C1-DATE(YEAR(C1),1,1)

    Cheers!

  3. #3
    Registered User
    Join Date
    12-20-2004
    Posts
    88
    RICHARDREYE,

    I get 1/0/1900 as a result from that formula.

    Any ideas?

    RICHARDREYE,

    YOUR FORMULA WORKED, THANK YOU !

    I keep trying different variations until I clicked on the = sign and the IF window dropped down to reveal;

    YEAR

    DAY

    MONTH

    I entered C1 as year. It now identifies the year fron the date.

    THANKS AGAIN!!!
    Travelersway
    Last edited by travelersway; 01-22-2005 at 03:20 PM.

+ 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