How to Use Conditional Formatting Based on Date in Microsoft Excel

Microsoft Excel logo on a green background

Conditional formatting is a terrific feature for automatically applying highlights or font formats to cells. If you have an Excel spreadsheet that contains dates, you can use this feature to make certain dates stand out and easy to spot.

Whether you want to format past due dates for household bills or upcoming dates for a project plan, conditional formatting has you covered with both simple and custom options. Just set up the rule and watch your dates pop off of the sheet.

Apply a Quick Conditional Formatting Date Rule

If you want to create a quick and easy conditional formatting rule, this is a convenient way to go. Open the sheet, select the cells you want to format, and head to the Home tab.

RELATED: How to Use Conditional Formatting to Find Duplicate Data in Excel

In the Styles section of the ribbon, click the drop-down arrow for Conditional Formatting. Move your cursor to Highlight Cell Rules and choose “A Date Occurring” in the pop-out menu.

Select Conditional Formatting, Highlight Cell Rules, A Date Occurring

A small window appears for you to set up your rule. Use the drop-down list on the left to choose when the dates occur. You can pick from options like yesterday, tomorrow, last week, and next month.

Select the timing for the date

In the drop-down list on the right, pick the formatting you’d like to use. You can select from formats like a light red fill, yellow fill with dark yellow text, and a red border.

Select the format for the date

When you finish, click “OK” to apply the conditional formatting rule to the selected cells.

Apply the conditional formatting rule

Create a Custom Conditional Formatting Date Rule

Maybe you’re not fond of the formatting choices available when creating the quick rule above. You can set up custom formatting instead. This allows you to format the cells most any way you like, including using more than one format for the cells like a specific font, border, and fill color.

RELATED: How to Highlight Top- or Bottom-Ranked Values in Microsoft Excel

You can create a custom format two ways in Excel.

Custom Format Method One

The first way is to start with the same setup as above. In the pop-up window where you create the rule, use the format drop-down box to pick “Custom Format.”

Select Custom Format

When the Format Cells window opens, use the tabs at the top for Font, Border, and Fill to create your custom format. Click “OK” when you finish.

Choose Font, Border, and Fill for the custom format

You’ll see the custom format applied to the cells. Click “OK” in the small window to save the change.

Apply a custom format rule

Custom Format Method Two

The second way to create a custom conditional formatting rule is to use the New Formatting Rule feature.

Select the cells you want to format and go to the Home tab. Click the Conditional Formatting arrow and choose “New Rule.”

Select Conditional Formatting, New Rule

In the New Formatting Rule window, choose “Format Only Cells That Contain” in the Select a Rule Type section.

Select Format Only Cells That Contain

At the bottom of the window, select “Dates Occurring” in the drop-down box on the left and choose the timeframe for the date to the right. Then, click “Format.”

Choose the timing for the date and click Format

You’ll see the same Format Cells box as above where you can use the Font, Border, and Fill tabs to create the custom format. When you finish, click “OK.”

Choose Font, Border, and Fill for the custom format

The options you pick appear in the New Formatting Rule window as a preview. If you’re happy with the format, click “OK” to save the rule.

Review the new custom format rule

You’ll then see your cells updated with your custom format.

Apply the new custom format rule

RELATED: How to Add or Subtract Dates in Microsoft Excel

Notes on Conditional Formatting Based on Date in Excel

With a conditional formatting rule in place, it applies to any edits you make to the dates in the cells. For example, say you formatted dates for next week. If you change any of the dates to yesterday, the formatting automatically disappears.

Formatting changes when dates are edited

You can set up more than one rule for the same cells. Maybe you want to see all dates this month with a red font and all those next month with a green font. You would simply follow the same steps to create each rule and adjust the formatting accordingly.

Create more than one rule for the same set of cells

For things like bills or tasks that are past their due dates or those you have coming up soon, you can spot them quickly with conditional formatting in Excel.

Note: This article have been indexed to our site. We do not claim legitimacy, ownership or copyright of any of the content above. To see the article at original source Click Here

Related Posts
The automobile on the way to mass production of fuel cells thumbnail

The automobile on the way to mass production of fuel cells

Accueil Energie - Environnement abonné Dossiers Alexandre Couto Publié le 22/12/2021à 10h00 Soyez le premier à réagir Soyez le premier à réagir Symbio assemble les plaques bipolaires et les membranes de façon semi-automatique dans son usine pilote de Vénissieux (Rhône). © Pascal Guittet Anticipant une forte demande, les équipementiers automobiles français installent des usines pour…
Read More
Why Are We Still So Fascinated By Amelia Earhart? thumbnail

Why Are We Still So Fascinated By Amelia Earhart?

On July 2, 1937 distress signals were sent from Amelia Earhart’s aircraft. She had almost made it to Howland Island, an uninhabited lock of land halfway between Hawaii and Australia, but she was low on gas and running out of time. More distress signals followed throughout the day; then the line fell silent. In that…
Read More
Biden’s top environmental justice official just left the White House. What now? thumbnail

Biden’s top environmental justice official just left the White House. What now?

On Friday, President Joe Biden’s top environmental justice official left the administration less than one full year into his presidency. Cecilia Martinez, a 2020 Time Magazine 100 Most Influential People recipient, told the Associated Press that she’s leaving the White House to “rest and be with her family,” joining millions in the “Great Resignation” spurred…
Read More
Index Of News
Total
0
Share