How to Format Only the First Value That Reaches 1000 in Excel
Question details
The user wants to apply conditional formatting to a column to highlight only the first cell where a value or running total reaches or exceeds 1000, without formatting subsequent cells that also meet the criteria.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking data thresholds (like a running total) where a user needs visual emphasis solely on the exact point a specific milestone is achieved.
- Observed behavior
- Standard conditional formatting rules highlight all values greater than or equal to 1000. Using the 'Stop If True' setting does not prevent the rule from applying to subsequent cells.
Ensure your dataset is logically sorted (e.g., chronologically or sequentially) if you are tracking a running total, as the formula will evaluate cells from top to bottom.
Use a Custom Expanding COUNTIF Formula
This method ensures that only the very first instance of a value reaching 1000 is highlighted by counting how many times the condition has been met up to the current row.
By combining the AND function with an expanding COUNTIF range, Excel evaluates whether the current cell meets the criteria AND verifies that it is the very first time this criteria has been met in the sequence. This effectively bypasses the limitation of standard formatting rules.
Highlight the range of cells you want to format. For example, select A2:A100. Ensure that A2 is the active cell during this selection.
Navigate to the Home tab on the Excel ribbon, click on Conditional Formatting, and select 'New Rule' from the dropdown menu.
In the New Formatting Rule dialog box, select 'Use a formula to determine which cells to format'.
In the formula bar, input: `=AND(A2>=1000,COUNTIF(A$2:A2,">=1000")=1)`. The A$2:A2 creates an expanding reference that locks the top row but adjusts as it moves down.
Click the Format button, go to the Fill tab, select a color (like green), and click OK to apply the rule.

Compare with the Previous Cell (For Strictly Increasing Values)
If your values are strictly increasing, such as a running sum, you can check if the current cell is >= 1000 while the cell immediately above it is < 1000.
Easily Highlight Your Data Milestones in WPS Office
WPS Spreadsheet provides powerful and intuitive conditional formatting capabilities. You can seamlessly apply custom expanding formulas to accurately track and visualize your data thresholds, just like in Excel.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your dataset.
- 2. Select your data: Highlight your target column range, making sure the top cell is active.
- 3. Apply the rule: Go to Home > Conditional Formatting > New Rule, select the formula option, input your COUNTIF formula, and apply a fill color.

Frequently Asked Questions
Why doesn't the 'Stop If True' option work for restricting the format to one cell?
The 'Stop If True' feature halts the evaluation of lower-priority rules on a single cell once a higher-priority condition is met. It does not stop the same rule from moving on and successfully evaluating subsequent cells in your selected range.
Can I change the threshold value from 1000 to another number?
Yes. Simply replace '1000' in both parts of the formula with your desired target value. Alternatively, you can replace '1000' with an absolute cell reference (like $B$1) if you want to control the threshold dynamically from another cell.
What does the A$2:A2 part of the formula do exactly?
This syntax creates an expanding range. The dollar sign locks the starting row ($2), while the second half (A2) remains relative. As the conditional formatting rule moves down the column, the range expands to A$2:A3, A$2:A4, and so on, allowing the COUNTIF function to tally conditions from the top down to the current row.




