Dates in Excel are simply serial numbers. In the standard date system for Excel, January 1, 1900 is the number 1. January 1, 2017 is 42736, January 1, 2018 is 43101, and January 1, 2050 is the serial number 54,789.
As a result, you can use simple addition and subtraction to calculate dates. In this case, we have a date in the future, so need to subtract the current date to get "days remaining". The TODAY function returns the current date automatically, so we only need to subtract the result of TODAY() from the date values in column B.
Note: if a date has passed, the result will be negative.
Creating an expiration date
To create an expiration date, given a date, you can simply add the number of days until expiration. With a date in A1:
=A1+30// 30 days in the future=A1+90// 90 days in the future
To calculate the days remaining from one date to another, you can use a simple formula that subtracts the earlier date from the later date. In the example shown, the formula in D5 is: = C5 - B5 How this formula works Dates in Excel are just serial...
If you want to highlight dates that occur in the next N days with conditional formatting, you can do so with a formula that uses the TODAY function with AND. This is a great way to visually flag things like expiration dates, deadlines, upcoming...
How to generate an expiration date in the future, how to calculate "days remaining", and how to highlight rows that are expired or expiring soon with conditional formatting.
Excel Formula Training
Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.