+ Reply to Thread
Results 1 to 12 of 12

Calculate percentage between 2 dates with first date being =today()

  1. #1
    Registered User
    Join Date
    08-23-2016
    Location
    ENGLAND
    MS-Off Ver
    2007
    Posts
    6

    Calculate percentage between 2 dates with first date being =today()

    Please Help

    I'm trying to calculate the percentage between two dates but the first date will always be =today() and the second date will be a set date (looking at expiry dates) I've searched various excel help sites but can not seem to find an answer that works with the =today() function.

    I've named the cell with =today() as Today and am trying to work out the percentage between this cell and cell O4.
    Any help would be greatly appreciated as I have to present this file to the customer daily after today (hence why I was using the =today() formula rather than having to keep entering today's date (Lazy I know :-))

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Calculate percentage between 2 dates with first date being =today()

    Im not sure I understand what you're looking for?

    Two dates dont logically present themselves as percentage values? what denotes 100% and what is 0%?

    Can you give some examples?
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Calculate percentage between 2 dates with first date being =today()

    Im not sure I understand what you're looking for?

    Two dates dont logically present themselves as percentage values? what denotes 100% and what is 0%?

    Can you give some examples?

  4. #4
    Registered User
    Join Date
    08-23-2016
    Location
    ENGLAND
    MS-Off Ver
    2007
    Posts
    6

    Re: Calculate percentage between 2 dates with first date being =today()

    Hi,

    Cell D1 is called Today and contains function =today() cell O4 contains 02/02/2017
    I need to try and work out how many days left as a percentage between these two cells
    I'll be looking at returning the % in cell Q4 as cell P4 contains the number of days left between the two dates
    (this is also formula driven as O4-Today)

    Does that help at all?

  5. #5
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Calculate percentage between 2 dates with first date being =today()

    No, sorry it doesnt.

    Unless Im being daft somewhere you're going to need a 3rd date in order to get a percentage.

    ie

    The number of days between today (10/10/16) and 02/02/17 is 115 so is that 100%? if so what is tomorrow? because that will also be 100%

    If however youre saying you need it as a percentage of say a year (so in this case starting on 03/02/16) then that can be done as a percentage ie

    115/365 * 100 = 68.5% of that year
    tomorrow it will be 114 days and 68.77%

  6. #6
    Registered User
    Join Date
    08-23-2016
    Location
    ENGLAND
    MS-Off Ver
    2007
    Posts
    6

    Re: Calculate percentage between 2 dates with first date being =today()

    Thanks,

    I don't really have a 3rd date as its working with expiry dates for stock. My customer wants to know the number of days remaining on the expiry date as a percentage from current date. I'm wondering if this is why I am struggling without having the 3rd date???
    The expiry date varies and we have anything from tomorrow to 2018 dates

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Calculate percentage between 2 dates with first date being =today()

    Perhaps a small sample file would better help us understand the problem, which is related to stock (Availibility??).

    To Attach a File:

    1. Click "Go Advanced"
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  8. #8
    Registered User
    Join Date
    08-23-2016
    Location
    ENGLAND
    MS-Off Ver
    2007
    Posts
    6

    Re: Calculate percentage between 2 dates with first date being =today()

    Sample file attached only data I have left in the file is date fields & hi-lighted these. Not sure if this is any help or not.

    What I am after in cell R4 is the percentage of how many days left from current date (cell D1 named Today) to expiry date (Cell O4)
    Cell P4 is number of days remaining from current date to expiry date.

    Hopefully I have managed to attached file?
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Calculate percentage between 2 dates with first date being =today()

    What is "Received Date": is this the third date required?

    If so, use

    =($O4-TODAY())/($O4-$V4)

    or

    =P4/($O4-$V4)

    Or

    =(O4-Today)/(O4-V4) (your named range)

  10. #10
    Registered User
    Join Date
    08-23-2016
    Location
    ENGLAND
    MS-Off Ver
    2007
    Posts
    6

    Re: Calculate percentage between 2 dates with first date being =today()

    Thanks JohnTopley.

    I don't think this would work with the received date as this date isn't really taken into account apart from needing to know how long we have had the stock on our site, although it is a useful formula to remember for future ref. Reason I don;t think this would work is example. Stock was received into our site 05/10/16 but expiry date is 03/12/16, goods only have 54 days shelf life left yet it is shows as 92% for the expiry date. This is the same percentage for stock that has 260+ shelf days remaining which was received earlier in the year.

    I will test it out though and get back to you if it does work, once I've tested it with a few scenarios.

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Calculate percentage between 2 dates with first date being =today()

    So how is your stock shelf life calculated? You must have a start date so you can calculate expiry date i.e. Expiry date="start Date" + shelf life days.

    what is this date:

    stock that has 260+ shelf days remaining which was received earlier in the year.
    So still confused about the % of "What" ?

  12. #12
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Calculate percentage between 2 dates with first date being =today()

    As John has said, the third date must logically be the Start date of the product, if thats not in your sheet then you've got no chance of getting the answer. It is not possible to calculate a percentage of anything with only 2 variables.

    The simple fact is you need to go back to your manager or the customer (whoever is saying they want this percentage value) and tell them it cant be done.

+ 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. 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
  2. Replies: 10
    Last Post: 04-07-2016, 03:12 PM
  3. Replies: 12
    Last Post: 08-05-2015, 05:15 PM
  4. Calculate Date 5 years in the future past today's date
    By RickCJ7 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-29-2015, 05:50 PM
  5. Percentage completion based on Today(Date)
    By shivamuniyappa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-05-2014, 02:30 AM
  6. Replies: 4
    Last Post: 01-17-2013, 01:23 PM
  7. Replies: 3
    Last Post: 08-14-2012, 05:14 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