# Using an Excel Formula If the Date Is Greater Than 365 Days – 4 Examples

The dataset showcases projects and their End Dates.

To find if the End Date is greater than 365 days from the current date:

### Example 1 – Use the Excel TODAY Function to Show If a Date Is Greater Than 365 Days

STEPS:

• Select D5 and enter the formula below:
`=C5<(TODAY()-365)`

Here, TODAY()-365 returns the date 29-08-21. If the date inÂ C5 is less than this date, the formula will show TRUE. Otherwise, FALSE.

• Press Enter.
• Drag down the Fill Handle to see the result in the rest of the cells.

• This is the output.

Note: You can also use the formula below:

`=DAYS(TODAY(),C5)>365`

The End Dates must be prior to today. Here, the DAYS function returns the number of days between todayâ€™s date and C5.

### Example 2 – Display a Specific Value If the Date Is Greater Than 365 Days with Excel Formula

Use the IF function.

STEPS:

• Select D5 and enter the formula below:
`=IF(C5<(TODAY()-365),"Greater Than 365 Days", "X")`

If the condition is true, the output of this formula will be Greater Than 365 Days. Otherwise, it will show X.

• Press Enter.
• Drag down the Fill Handle to see the result in the rest of the cells.

• This is the output.

### Example 3 – Check If the Difference Between Two Dates Is Greater Than 365 Days with a Formula in Excel

Use the DAYS function.

STEPS:

• Select E5 and enter the formula below:
`=DAYS(D5,C5)>365`

The DAYS function finds the number of days between two days. The first argument is the start date and the second argument the end date. After finding the number of days, the formula checks if the result is greater than 365.Â If the difference is greater than 365 days, it will show TRUE. Otherwise, FALSE.

• Press Enter.
• Drag down the Fill Handle to see the result in the rest of the cells.

• This is the output.

### Example 4 – Applying the Excel Conditional Formatting with a Formula to Show If the Date Is Greater Than 365 Days

STEPS:

• SelectÂ C5:C9.

• Go to the Home tab and select Conditional Formatting.
• Select New Rule.

• In the New Formatting Rule box, select â€˜Use a formula to determine which cells to formatâ€™ in Select a Rule Type.
• Enter the formula in â€˜Format Values where this formula is trueâ€™ :
`=C5<(TODAY()-365)`
• Click Format.

• In the Format Cells window, click Fill and choose a color from Background Color.
• Click OK .

• Excel will highlight cells that contain dates greater than 365 days from today.

<< Go Back to Dates | Compare | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mursalin Ibne Salehin

Mursalin Ibne Salehin holds a BSc in Electrical and Electronics Engineering from Bangladesh University of Engineering and Technology. Over the past 2 years, he has actively contributed to the ExcelDemy project, where he authored over 150 articles. He has also led a team with content development works. Currently, he is working as a Reviewer in the ExcelDemy Project. He likes using and learning about Microsoft Office, especially Excel. He is interested in data analysis with Excel, machine learning,... Read Full Bio

We will be happy to hear your thoughts

Advanced Excel Exercises with Solutions PDF