Skip to main content

How to conditional formatting values not between two numbers in Excel?

Author Sun Last modified

For instance, in this case, I want to highlight the values which are not between two numbers in Excel, do you have any ways to quickly solve it? Actually, I have two methods to handle it.

Highlight values not between two numbers with Conditional Formatting

Highlight values not between two numbers with Select Specific Cellsgood idea3


Highlight values not between two numbers with Conditional Formatting

In Excel, the Conditional Formatting utility can do you a favor on this job.

1. Select the range of cells, and click Home > Conditional Formatting > New Rule.
click Home > Conditional Formatting > New Rule

2. Then in the New Formatting Rule dialog, select Use a formula to determine which cells to format in the Select a Rule Type list, and type this formula =OR(A1<20,A1>30) into the Format values where this formula is true textbox, and click Format button to enable the Format Cells dialog, under Fill tab, and select one color you want to use for highlighting. See screenshot:
specify options in the dialog boxes

In the formula, A1 is the first cell of your selected range, 20 and 30 are the number range you want to highlight except.

3. Click OK > OK. Then the cells which are not in the number range have been highlighted.
the cells which are not in the number range are highlighted


Highlight values not between two numbers with Select Specific Cells

If you have Kutools for Excel, you can apply the Select Specific Cells utility to select the cells and highlight them which are not between two specific numbers.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing Kutools for Excel, please do as below:

1. Select the range and click Kutools > Select > Select Specific Cells. See screenshot:
click Select Specific Cells feature of kutools

2. In the Select Specific Cells dialog, check Cell option, and choose Less than in the first drop-down list and type the lower number in the beside textbox, and check Or option, then choose Greater than from second drop-down list, and type the higher number into the next textbox. See screenshot:
set options in the dialog box

3. Click Ok > OK, and the numbers which not are between two numbers have been selected, and you can fill them with colors as you need.

the numbers which not are between two numbers are selected
fill a background color for the selected cells

Demo

 

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!