Excel Formula: Calculate expiry date

doc calculate overtime pay 4

If there are hundreds of food products in a store with different produce dates and warranty periods, you may want to know the expiry date of each product. Here, in this tutorial, it provides some formulas to calculate expiration date in Excel.

Here are some different expiration calculating types, the tutorial will introduce and explain the formulas one by one

If you want to follow along with this tutorial, please download the example spreadsheet.
doc sampel

1 Calculating expiration date n days in the future

 

Generic formula:

start_date+warranty

Arguments

Srart_date: the start date of the product.
Warranty: the total period that guarantee quality.

How this formula work

For instance, cell C3 contains the start date of a product whose warranty period is 100 days, please use below formula to get the expiration date.

=C3+100

Press Enter key.
doc calculate overtime pay 4

2 Calculating expiration date in end of current month

 

Generic formula:

EOMONTH(start_date,0)

Arguments

Srart_date: the start date of the product.

Return value

This formula returns a serial number. In Excel, dates are stored as serial numbers for calculation. January 1, 1900 is defined as 1, similarly, July 3, 2020 is defined as series number 44015.

How this formula work

For instance, cell C4 contains the start date of a product which guarantees quality until the end of current month, please use below formula to get the expiration date.

=EOMONTH(C4,0)

Press Enter key to get a serial number.
doc expiration time 2

Then format the serial number as date format by clicking Short Date from the drop-down list of Number Format under Home tab.
doc expiration time 3

Explanation

EOMONTH function: Get the last day of a given number of months in future or past.

Return value

This formula returns a serial number. In Excel, dates are stored as serial numbers for calculation. January 1, 1900 is defined as 1, similarly, July 3, 2020 is defined as series number 44015.

3 Calculating expiration date n months in the future

 

Generic formula:

EDATE(start_date,months)

Arguments

Srart_date: the start date of the product.
Month: the number of months for keeping quality.

Return value

This formula returns a serial number. In Excel, dates are stored as serial numbers for calculation. January 1, 1900 is defined as 1, similarly, July 3, 2020 is defined as series number 44015.

How this formula work

The cell C5 contains the start date of a product whose shelf life is 2 months, please use below formula to get the expiration date.

=EDATE(C5,2)

Press Enter key to get a serial number.
doc expiration time 4

Then format the serial number as date format by clicking Short Date from the drop-down list of Number Format under Home tab.
doc expiration time 5

Explanation

EDATE function: Add n months for a date.

Note:

If the item’s expiration date is n years in the future, you also use the formula EDATE(start_date,month). For instance, the start date is 3/1/2020, the warranty period is 1 year (12 months), use the formula:=EDATE(C6,12).
doc expiration time 6


Relative Formulas

Relative Functions


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.