+ Reply to Thread
Results 1 to 10 of 10

calculate number of weeks between today and a start date

  1. #1
    Registered User
    Join Date
    10-15-2020
    Location
    Southampton, England
    MS-Off Ver
    Professional plus 2016
    Posts
    41

    calculate number of weeks between today and a start date

    I have excel from office professional 2016 .
    I am trying to calculate the number of weeks between today's date and a task start date (expressed as an integer). Any help would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: calculate number of weeks between today and a start date

    How about this?

    =($A$5-C11)/7
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: calculate number of weeks between today and a start date

    Please define "number of weeks"
    Please Login or Register  to view this content.

  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,739

    Re: calculate number of weeks between today and a start date

    You might want to ROUND the result, as your last entry (which is 13 days ago) will show 1, like this in D11:

    =ROUND((($A$5-C11)/7),0)

    and if your date is in the future you will get a negative result, so you might want to do this to prevent that:

    =MAX(ROUND((($A$5-C11)/7),0),0)

    Hope this helps.

    Pete

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: calculate number of weeks between today and a start date

    An alternative means is with Power Query which seems a bit more convoluted but is here only as a learning option.

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Registered User
    Join Date
    10-15-2020
    Location
    Southampton, England
    MS-Off Ver
    Professional plus 2016
    Posts
    41

    Re: calculate number of weeks between today and a start date

    thanks Ali. I was sure that wasn't before!

  7. #7
    Registered User
    Join Date
    10-15-2020
    Location
    Southampton, England
    MS-Off Ver
    Professional plus 2016
    Posts
    41

    Re: calculate number of weeks between today and a start date

    thanks BMV. Interestingly the no. days between today and a start date of 01Oct2018 was one day more using Ali's solution above. The others were the same.

  8. #8
    Registered User
    Join Date
    10-15-2020
    Location
    Southampton, England
    MS-Off Ver
    Professional plus 2016
    Posts
    41

    Re: calculate number of weeks between today and a start date

    thanks Alan,

    I still a novice at Excel. Also I couldn't open the links. I am sure I will use Power Query as I get to grips with Excel. Thank you.

  9. #9
    Registered User
    Join Date
    10-15-2020
    Location
    Southampton, England
    MS-Off Ver
    Professional plus 2016
    Posts
    41

    Re: calculate number of weeks between today and a start date

    thanks Pete. That works well.

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

    Re: calculate number of weeks between today and a start date

    Glad to help, and thanks for the rep.

    Pete

+ 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] Formula to calculate progress between two dates with start date greater than today
    By valeriemt2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2020, 11:22 AM
  2. Calculate number of days between invoice date and today's date
    By JHerrick in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-30-2020, 03:53 PM
  3. Count number of days from a start date to today BUT end at a certain date
    By delene_tabone in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-07-2018, 12:56 AM
  4. Calculate Number of weeks/months falls under each year between date range
    By dhitpit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2017, 10:06 AM
  5. Year and Week number but I need to convert to the date of that weeks start
    By darrenj1471 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-07-2017, 09:57 AM
  6. List of Weeks from a start date and an input number
    By SRBetteridge in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-22-2014, 03:39 AM
  7. [SOLVED] Calculate date based on number of weeks or months after start date
    By wotsup in forum Excel General
    Replies: 3
    Last Post: 08-17-2012, 06:00 AM

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