+ Reply to Thread
Results 1 to 5 of 5

Calculating Remaining Shelf Life

  1. #1
    Registered User
    Join Date
    01-14-2016
    Location
    Karachi
    MS-Off Ver
    MS Office Excel 2013 & 2010
    Posts
    21

    Calculating Remaining Shelf Life

    Hello!

    Need help in calculating remaining shelf life. Sample file attached.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Calculating Remaining Shelf Life

    Your dates are not all real dates but text "dates".

    If you are not aware of it dates are numbers. Integers start at 1 (date 1/1/1900). The underlying value of a date is the number of days from 1/1/1900. Today 15/11/17 is day 43054. The formatting is cosmetic.

    Applying the text to columns feature taking care to check the 'Date' radio button when you come to that screen ... and selecting the desired format from the drop down should remedy this.

    Your formula (formatted General) works fine.


    G
    H
    I
    J
    6
    Item Name
    Expiry
    Delivery Date
    Remaining Shelf Life
    7
    a
    19/12/2017
    06/10/2017
    74
    8
    b
    11/04/2018
    06/10/2017
    187
    9
    c
    16/11/2017
    06/10/2017
    41
    10
    d
    22/01/2018
    06/10/2017
    108
    11
    e
    24/05/2018
    06/10/2017
    230
    Dave

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Calculating Remaining Shelf Life

    Or if you mean remaining from TODAY like this:


    G
    H
    I
    J
    5
    15/11/2017
    6
    Item Name
    Expiry
    Delivery Date
    Remaining Shelf Life
    7
    a
    19/12/2017
    06/10/2017
    34
    8
    b
    11/04/2018
    06/10/2017
    147
    9
    c
    16/11/2017
    06/10/2017
    1
    10
    d
    22/01/2018
    06/10/2017
    68
    11
    e
    24/05/2018
    06/10/2017
    190


    Put
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in J5 and this formula in J7 filled down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-14-2016
    Location
    Karachi
    MS-Off Ver
    MS Office Excel 2013 & 2010
    Posts
    21

    Re: Calculating Remaining Shelf Life

    Thanks FlameRetired!

    I've applied text to column, but its changing the format of the date. For example actual date is 19/12/2017
    but after applying text to column using DMY format excel changes the date to 12/19/2017...How can I keep the format same but change the text into date so that remaining shelf life could be calculated.
    Attached Images Attached Images
    Attached Files Attached Files

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Calculating Remaining Shelf Life

    I forgot to mention an additional step. My apologies.

    Go to Number format. With Date selected apply from the "Locale (location)" drop down ... English (United Kingdom)

+ 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. Replies: 1
    Last Post: 09-29-2012, 02:24 PM
  2. [SOLVED] Shelf Life Percentage
    By Sandy Mann in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 12:05 PM
  3. [SOLVED] Shelf Life Percentage
    By John in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. [SOLVED] Shelf Life Percentage
    By John in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. Shelf Life Percentage
    By John in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. Shelf Life Percentage
    By John in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] Shelf Life Percentage
    By John in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. [SOLVED] Shelf Life Percentage
    By John in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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