+ Reply to Thread
Results 1 to 6 of 6

Count down in Weeks

  1. #1
    Registered User
    Join Date
    08-15-2019
    Location
    CT, USA
    MS-Off Ver
    Excel 2016
    Posts
    11

    Count down in Weeks

    Good morning hive mind!

    Excel date functions tend to throw me for a loop and I'm sure I'm overlooking something. I'm looking to create a countdown timer. You have your start date, you have your end date, and in a third cell the timer counts down the weeks remaining to your end goal starting from today:

    A1: 8/20/2020 (Start Date)
    A2: 2/4/2021 (End Date)
    A3: ***Weeks remaining from Today***

    Formula presently in A3: =TODAY()-(DAYS(EndDate,StartDate)/7)

    As I have the formula in A3 presently written, excel returns a result of 44116. I thought flipping the formula to =(DAYS(EndDate,StartDate)/7)-TODAY(), This simply gives the same answer as a negative number.

    I assume my current result in A3 is due to how excel recognizes dates as numbers counting up from 1900, as well as a weird interaction between the TODAY() and DAYS functions. I have a feeling that this isn't the right formula at all for this type of operation.

    Thanks for any help!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Count down in Weeks

    The TODAY() function will currently return 44140, which is the number of days since 1st January 1900. You are subtracting from it the number of weeks between the start date and the end date, which will be 24 in your example. I think you need to subtract TODAY() from the end date, and then divide it by 7 to turn it into weeks - probably better to use INT, rather than get fractional weeks.

    Hope this helps.

    Pete

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Count down in Weeks

    It should be in A3
    =IF(TODAY()<A2, 0, (TODAY()-A2)/7)
    Assuming you want 0 if the end date has passed already. Be sure to format the cell as General or Number.
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Count down in Weeks

    Thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

  5. #5
    Registered User
    Join Date
    08-15-2019
    Location
    CT, USA
    MS-Off Ver
    Excel 2016
    Posts
    11
    Quote Originally Posted by ChemistB View Post
    It should be in A3
    =IF(TODAY()<A2, 0, (TODAY()-A2)/7)
    Assuming you want 0 if the end date has passed already. Be sure to format the cell as General or Number.
    Does that work for you?
    Yup! That got me to where I needed to go! Thanks!

  6. #6
    Registered User
    Join Date
    08-15-2019
    Location
    CT, USA
    MS-Off Ver
    Excel 2016
    Posts
    11

    Re: Count down in Weeks

    Quote Originally Posted by Pete_UK View Post
    The TODAY() function will currently return 44140, which is the number of days since 1st January 1900. You are subtracting from it the number of weeks between the start date and the end date, which will be 24 in your example. I think you need to subtract TODAY() from the end date, and then divide it by 7 to turn it into weeks - probably better to use INT, rather than get fractional weeks.

    Hope this helps.

    Pete

    I will have to experiment with INT. That’s a function I have needed. Yet.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count the weeks in a month
    By 45687354154896 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-07-2020, 10:10 PM
  2. How to Count if 12 weeks from x date
    By kennon03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2020, 12:58 PM
  3. [SOLVED] Need to COUNT the number of WEEKS
    By kldeal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2016, 05:17 PM
  4. Count the last full weeks wages for the last 12 weeks only
    By shorie7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-25-2016, 01:59 PM
  5. [SOLVED] Count 13 weeks back
    By FLHR01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2015, 03:11 PM
  6. How to count full weeks
    By tillyb in forum Excel General
    Replies: 4
    Last Post: 11-06-2011, 08:12 PM
  7. Automatically count weeks?
    By alecabral08 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-09-2008, 08:08 AM

Tags for this Thread

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