+ Reply to Thread
Results 1 to 3 of 3

Calculating expiry date of a product

  1. #1
    Registered User
    Join Date
    11-29-2016
    Location
    Hong Kong
    MS-Off Ver
    2016
    Posts
    2

    Exclamation Calculating expiry date of a product

    Hey guys, i am writing to post a question:

    i need to manually input the startdate, and i have a value of hours to expire (i.e. in 48 hours),
    for example,
    06 Feb 2017 09:00 is the startdate, and the expiryhours is 48 hours
    The the expirydate should show '08 Feb 2017 09:00'
    i have tried sth like expirydate=startdate+(Expiryhours/24)
    but it can't work, can anyone would help me?? thanks very much!!!!!!!!!!!!!!!!!!!!!!!!

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: Calculating expiry date of a product

    you can add time to a timestapm as follows:

    Please Login or Register  to view this content.
    The code will add 24 hours to the startdate

    Timeserial you add: hours , minutes, seconds

    Another way

    Please Login or Register  to view this content.
    This will add 24 hours the moment it updates that field
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    11-29-2016
    Location
    Hong Kong
    MS-Off Ver
    2016
    Posts
    2

    Re: Calculating expiry date of a product

    Quote Originally Posted by Keebellah View Post
    you can add time to a timestapm as follows:

    Please Login or Register  to view this content.
    The code will add 24 hours to the startdate

    Timeserial you add: hours , minutes, seconds

    Another way

    Please Login or Register  to view this content.
    This will add 24 hours the moment it updates that field
    Thanks for the reply, but i still can't get what i want
    maybe due to the date i formatted is ("dd mmm yyyy")

+ 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. Need Formula for Calculating Expiry Date of Items
    By sweetfriend9 in forum Excel General
    Replies: 22
    Last Post: 07-13-2016, 08:09 AM
  2. [SOLVED] calculate expiry date automatic according to product name
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2016, 02:01 PM
  3. autocalculate expiry date / expiry date colour warnings
    By kimbling1 in forum Excel General
    Replies: 8
    Last Post: 08-27-2014, 02:53 AM
  4. To find formula to calculate unused product expiry
    By decorkewl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-29-2013, 12:07 AM
  5. [SOLVED] Array - Calculating the product of a column when date and year match a defined date
    By dow400 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2013, 08:52 AM
  6. Replies: 1
    Last Post: 09-29-2012, 02:24 PM
  7. Calculating Expiry Dates
    By shinyell in forum Excel General
    Replies: 3
    Last Post: 10-19-2009, 03:38 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