Go Back

Calculate expiration date

Lookup is one of the mostly performed tasks in Microsoft Excel. We often require to perform lookups on different data. Sometimes, the result needs to be an entire row. The combination of the INDEX and MATCH functions allow us to lookup an entire row. In this tutorial, we will learn how to lookup an entire row in Excel.

Figure 1. Example of How to Calculate Expiration Dates in Excel

Generic Formula


Setting up Data

The following example contains some sample dates and days to expiration. Column A,and b has these dates and days.

Figure 2. The Sample Data Set


We can use the following formulas to calculate the expiration dates in column C.

Figure 3. Applying the formulas


We use this for the dates in A2 and A3. The generic formula uses a simple addition of the days with the date given. We can use other functions to calculate the expiration date as well. Excel processes dates as serial numbers. According to this system, January 1, 1900 has the serial number 1. Continuing the numbers, January 1, 2050 is the serial number 54,789.


We can use the EOMONTH function to get the last day of the month. It returns the months in the future or past.


We can use the EOMONTH function to calculate the first day of the month as well. All we have to do is to use EOMONTH to get the last day of the previous month. Then we add 1 with it.


We can use the EDATE function to calculate expiration dates by months. EDATE returns the same date and months ahead or before.

This will show the expiration dates in column C.

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

Trying to count and chart how many inventory lots were available on any given date. Question Example: For 9/1/2013 - how many lots were available? Each lot has a "Release Date" and "Expiration Date" and is "Available" every day from the "Release Date" to and including the "Expiration Date". Example: 134530-001 was available every day from 8/8/2013 (day after the "Release Date) and 8/18/2013. Data available is: Lot number (Column A), release date (Column B), expiration date (Column C).
Solved by C. J. in 16 mins
I need a sheet that automatically moves data down to the next category as it ages. For example, there are several accounts on the sheet. Each account has a different expiration date. As the date approaches, the data moves from the 120 days until expiration section to the 90 days until expiration section.
Solved by C. F. in 22 mins
I have obtained expiration dates and now i am look to add in a 'days left' function. i have entered in the correct formula (expiration date - todays date) and it is giving me a random date and not the answer. why is this?
Solved by G. C. in 16 mins

Leave a Comment