How to Highlight Unique Transactions by Date with Conditional Formatting
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.

- 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.
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.
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.
Highlight the range of cells in the Charge column that you want to format (for example, $C$5:$C$14).
Navigate to the Home tab on the ribbon, click on 'Conditional Formatting', and select 'New Rule' from the drop-down menu.
In the New Formatting Rule dialog box, select 'Use a formula to determine which cells to format'.
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).
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.

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. Open your transaction data: Launch WPS Spreadsheet and open your financial record workbook.
- 2. Highlight the specific column: Select the column containing the charges you wish to analyze for uniqueness.
- 3. Create a new formatting rule: Navigate to the Home tab, click Conditional Formatting, and select New Rule.
- 4. Apply the custom formula: Select 'Use a formula', input your COUNTIFS formula, set your highlight color, and click OK.

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.




