Formatting Issues

How to Apply Conditional Formatting for Previous Quarter Dates in Excel

Rana GarciaRana Garcia Nov 10, 2026 869 views

Question details

The user wants to highlight specific cells containing the text "Quarterly" only if the corresponding date in an adjacent column falls within the previous calendar quarter.

How to Apply Conditional Formatting for Previous Quarter Dates in Excel
Product
Excel
Device & OS
not provided
Scenario
Formatting financial or quarterly reports based on dynamic date ranges that automatically recognize previous quarters.
Observed behavior
The user needs a formula-based conditional formatting rule that correctly identifies complete quarter periods relative to the current date, rather than just matching month numbers.
Before you start

Ensure your date column contains valid numeric date values rather than text strings, as formula-based conditional formatting requires true dates to calculate quarters accurately.

Solution 1Recommended

Use the EOMONTH Formula to Calculate the Previous Quarter

This method uses the EOMONTH and TODAY functions to dynamically calculate the exact start and end dates of the previous quarter based on the current date.

By utilizing the EOMONTH (End of Month) function, you can subtract months from the current date to establish the exact boundaries of the previous quarter. This ensures the formatting remains accurate year-round without manual updates.

1
Select the target range

Highlight the cells you want to format. For example, select H2:H50, ensuring H2 is the active cell in your selection.

2
Open Conditional Formatting

Navigate to the Home tab on the Excel ribbon, click on 'Conditional Formatting', and select 'New Rule' from the drop-down menu.

3
Enter the custom formula

Choose 'Use a formula to determine which cells to format'. In the formula box, enter: =AND(H2="Quarterly",G2>=EOMONTH(TODAY(),-6)+1,G2<=EOMONTH(TODAY(),-3))

4
Set the formatting style

Click the 'Format' button, switch to the 'Fill' tab, choose your desired highlight color, and click 'OK' twice to apply the rule.

Use the EOMONTH Formula to Calculate the Previous Quarter
Dynamic Updates: Because this formula uses the TODAY() function, your highlighted cells will automatically shift to reflect the correct previous quarter as time passes.
Advanced Data Formatting

Apply Complex Conditional Formatting Easily in WPS Spreadsheet

WPS Spreadsheet fully supports advanced formula-based conditional formatting, including EOMONTH, QUOTIENT, and dynamic date calculations. Easily manage and highlight your quarterly reports with our highly compatible, lightweight, and free tool.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your quarterly data.
  2. 2. Select the data range: Highlight the column or specific cells you want to format based on the date criteria.
  3. 3. Access Conditional Formatting: Go to the Home tab, click on Conditional Formatting, and select 'New Rule'.
  4. 4. Apply the formula: Choose the formula option, enter your EOMONTH date logic, specify your desired highlight color, and click OK.
Fully compatible with Microsoft Excel formulas and date functionsIntuitive Conditional Formatting rule manager for easy editsFree and lightweight alternative to heavy spreadsheet applicationsSeamlessly open, edit, and save .xlsx and .xls formats
microsoft office alternative - wps office

Frequently Asked Questions

Why is my conditional formatting formula not highlighting the dates correctly?

Ensure the active cell in your selection matches the first cell referenced in your formula (e.g., if you select H2:H50, your formula must reference row 2 like H2 and G2). Also, verify your dates are formatted as actual date values, not text strings.

Can I adjust the formula to highlight the current quarter instead of the previous one?

Yes. To highlight the current quarter using the EOMONTH method, you can adjust the month offsets in the formula to: =AND(H2="Quarterly",G2>=EOMONTH(TODAY(),-3)+1,G2<=EOMONTH(TODAY(),0)).

Does conditional formatting update automatically when dates change?

Yes, conditional formatting is dynamic. Because the rule utilizes the TODAY() function, the formatting will automatically recalculate and update the highlights when the system date changes or when you modify the cell data.