Formatting Issues

How to Highlight Unique Transactions by Date with Conditional Formatting

Olivia MillerOlivia Miller Nov 11, 2026 870 views

Question details

The user wants to identify and highlight transaction charges that occur exactly once on a specific date, rather than identifying global duplicates across different dates.

Apply Conditional Formatting for Unique Transactions by Date
Product
Spreadsheet
Device & OS
not provided
Scenario
Analyzing financial transaction records to spot daily unique charges while ignoring identical charge amounts that happen on completely different days.
Observed behavior
Standard duplicate removal or unique highlighting evaluates the entire column, so the user needs a multi-criteria approach to check both the date and the charge simultaneously.
Before you start

Ensure your transaction data is organized into clear columns for Dates and Charges. Converting your data range into a formatted Table is highly recommended, as it makes formula referencing dynamic and easier to manage.

Solution 1Recommended

Use COUNTIFS Formula in Conditional Formatting

Apply a custom COUNTIFS formula to evaluate both the date and charge columns simultaneously, isolating values that appear exactly once per day.

The COUNTIFS function allows you to count cells that meet multiple criteria. By setting the criteria to match the current row's date and charge, and checking if the count equals 1, you can accurately pinpoint daily unique transactions.

1
Select the target range

Highlight the range of cells in the Charge column that you want to format (for example, $C$5:$C$14).

2
Open Conditional Formatting

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

3
Choose the formula option

In the New Formatting Rule dialog box, select 'Use a formula to determine which cells to format'.

4
Enter the COUNTIFS formula

Input the formula: =COUNTIFS(Table1[Date],$B5,Table1[Charge],$C5)=1. If you are not using a formatted table, use standard ranges like =COUNTIFS($B:$B,$B5,$C:$C,$C5)=1 (assuming Date is in column B and Charge is in column C).

5
Apply formatting style

Click the 'Format' button, navigate to the Fill tab, select a color to highlight the unique transactions, and click 'OK' twice to apply the rule.

Use COUNTIFS Formula in Conditional Formatting
Pay Attention to Cell References: It is crucial to lock the column letters with a dollar sign (e.g., $B5) but leave the row numbers relative. This ensures the conditional formatting rule adapts correctly to each row it evaluates.

Effortlessly Analyze Transaction Data with WPS Spreadsheet

WPS Spreadsheet provides robust data analysis tools, including advanced conditional formatting and over 400 built-in functions like COUNTIFS. Easily highlight, filter, and organize your financial records in a familiar interface.

  1. 1. Open your transaction data: Launch WPS Spreadsheet and open your financial record workbook.
  2. 2. Highlight the specific column: Select the column containing the charges you wish to analyze for uniqueness.
  3. 3. Create a new formatting rule: Navigate to the Home tab, click Conditional Formatting, and select New Rule.
  4. 4. Apply the custom formula: Select 'Use a formula', input your COUNTIFS formula, set your highlight color, and click OK.
Fully compatible with Microsoft Excel (.xlsx, .xls) files and custom formulas.Powerful conditional formatting rules to highlight unique or duplicate data instantly.Lightweight software that runs smoothly on Windows, Mac, and Linux systems.Free built-in templates for financial tracking, invoices, and budget management.
microsoft office alternative - wps office

Frequently Asked Questions

Can I highlight duplicate transactions on the same date instead of unique ones?

Yes, you can modify the conditional formatting formula. Simply change the '=1' at the end of your COUNTIFS formula to '>1'. This will highlight any charges that appear more than once on the exact same date.

Why is my conditional formatting highlighting the wrong rows?

This usually happens due to a mismatch in cell referencing. Ensure the row numbers in your formula (e.g., $B5) exactly match the very first row of your selected data range. If you select C5:C20 but your formula references B2, the highlighting will be offset.

Does the COUNTIFS formula work with dates formatted as text?

COUNTIFS requires dates to be in a consistent format to evaluate them properly. If some dates are formatted as text and others as numbers, the formula may fail to match them. Use the 'Text to Columns' feature or the DATEVALUE function to standardize your date column first.