Home > Software Tutorial > Office Software > How to calculate expiration days in Excel

How to calculate expiration days in Excel

WBOY
Release: 2024-04-17 12:04:01
forward
1093 people have browsed it

Take the following table as an example. Note that the cell format in the date column is date.

How to calculate expiration days in Excel

Enter the calculation formula =date column-today() in the status column next to it. That is, the expiration time minus the time of day.

How to calculate expiration days in Excel

Press Enter to calculate, then drag and drop to all cells below. and change the cell format to regular.

How to calculate expiration days in Excel

Select this column and click [Start]-[Conditional Formatting]-[New Rule]. In the window, [Format Style] is set to data bar, the shortest data bar in the type is set to the lowest value, and the longest data bar is set to the highest value. Then set the color of the data bar you like.

How to calculate expiration days in Excel

After clicking OK, an intuitive table of expiry days will be ready.

How to calculate expiration days in Excel

The above is the detailed content of How to calculate expiration days in Excel. For more information, please follow other related articles on the PHP Chinese website!

source:zol.com.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template