+ Reply to Thread
Results 1 to 5 of 5

dates as percentages

  1. #1
    Registered User
    Join Date
    09-18-2008
    Location
    uk
    Posts
    2

    dates as percentages

    I need to make a formula but have no idea how to do it.

    the problem

    example
    cell a1 = 19/09/2008 bought in
    cell a2 = 21/06/2011 Shelf life

    I need to find out the percentage of time remaining in date? ie calculate the total amount of days in stock minus the
    days that have already passed since bought in (todays date) and show one
    result as a percentage and one as days remaining.

    Any help would be most appreciated.

  2. #2
    Registered User
    Join Date
    09-15-2008
    Location
    Toronto, ON, Canada
    Posts
    7
    I think you will need to use a few cells to do this... Hopefully someone will post a better way than this.

    First, you need to figure out the total number of days between the purchase date and expiry date. In a cell (C2), simply type: =sum(B2-A2).
    [use the cells where your end date and beginning dates are located]
    [format the third cell as number, not date]

    Next, you need to find out how many days are between today and the expiry date. In another cell (C3), type: =sum(B2-TODAY())
    [again, format this cell as number]

    In a third cell type =C3/C2
    [format this cell as percentage]

    I tried this out as I typed and it worked. I'm sure there is a better way to do it, and now I am curious to learn!

    Good luck!
    Never argue with an idiot, because onlookers will have trouble telling you apart...

  3. #3
    Registered User
    Join Date
    09-15-2008
    Location
    Toronto, ON, Canada
    Posts
    7
    come to think of it, there is a better way...
    in the cell where you want the percentage, type:
    Please Login or Register  to view this content.
    format the cell as a percentage, and you are done!

    my brain is slow today... sorry

    Cheers!
    Last edited by ColHOLM; 09-18-2008 at 04:12 PM. Reason: oops

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Percentage of Shelf life since brought in;
    Please Login or Register  to view this content.
    Formatted as %
    Days remaining
    Please Login or Register  to view this content.
    Is that what you are looking for?
    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

  5. #5
    Registered User
    Join Date
    09-18-2008
    Location
    uk
    Posts
    2
    many thanks to the two of you, worked spot on.

+ 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. Excel 2007 and small percentages
    By nhrav in forum Excel General
    Replies: 0
    Last Post: 06-30-2008, 11:13 PM
  2. Year and Percentages
    By dschwich21 in forum Excel General
    Replies: 6
    Last Post: 04-08-2008, 06:51 PM
  3. Keep losing percentages on Pivot Chart
    By akhlaq768 in forum Excel Charting & Pivots
    Replies: 14
    Last Post: 01-29-2008, 12:39 PM
  4. Calculating percentages based on multiple criteria
    By F6Hawk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2007, 11:05 PM
  5. Array reading decimal in Percentages
    By Dreamwine59 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-19-2007, 11:05 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