Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Add Outline to Data in Excel
  • How To Create Pareto Chart in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • How To Sort One Column or Multiple Columns in Excel

References

  • How to get last column number in range in Excel
  • How to use Excel VLOOKUP Function
  • Approximate match with multiple criteria in Excel
  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • Basic INDEX MATCH approximate in Excel

Data Validations

  • Excel Data validation no punctuation
  • Excel Data validation must contain specific text
  • Excel Data validation unique values only
  • Excel Data validation number multiple 100
  • Excel Data validation date in next 30 days

Highlight numbers that include symbols in Excel

by

This tutorial shows how to Highlight numbers that include symbols in Excel using the example below;

Formula

=IF(ISNUMBER(B4),B4<input,IF(LEFT(B4)="<",(MID(B4,2,LEN(B4))+0)<input))

Explanation

To highlight numbers less than a certain value, including numbers entered as text like “<9”, “<10”, etc., you can use conditional formatting with a formula strips the symbols as needed and handles the result as a number. In the example shown, “input” is a named range for cell G2.

Worked Example:   Highlight approximate match lookup conditional formatting in Excel

How this formula works

The formula first uses the ISNUMBER function to test if the value is a number, and applies a simple logical if so:

=IF(ISNUMBER(B4)

For any number less than the value in “input”, the formula will return TRUE and the conditional formatting will be applied.

Worked Example:   Sum bottom n values with criteria in Excel

However, if the value is not a number, the formula then checks if the first character is a less than symbol (<) using the LEFT function:

IF(LEFT(B4)="<"

If so, the MID function is used to extract everything after the symbol:

MID(B4,2,LEN(B4)

Technically, the LEN function returns a number 1 greater than we need, since it includes the “<” symbol as well. If this bothers you, feel free to subtract 1.

Worked Example:   Highlight blank cells in Excel

The result of MID is always text so the formula adds zero to force a Excel to convert the text to a number. This number is then compared to the value from “input”.

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

How to Create Gantt Chart in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • AND function: Description, Usage, Syntax, Examples and Explanation
  • How to return blank in place of #DIV/0! error in Excel
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • IF with boolean logic in Excel
  • Complete List of Excel Logical Functions, References and Examples

Date Time

  • How to get number of days, weeks, months or years between two dates in Excel
  • How to calculate nth day of week in month in Excel
  • DAYS function: Description, Usage, Syntax, Examples and Explanation
  • Convert date to text in Excel
  • Display Days in month in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Group times into unequal buckets in Excel
  • Map inputs to arbitrary values in Excel
  • Calculate conditional mode with criteria in Excel
  • Group arbitrary text values in Excel

General

  • How to get Excel workbook path only
  • Print Excel Sheet In Landscape Or Portrait
  • Advanced Number Formats in Excel
  • How to test a range for numbers in Excel
  • Count cells that contain errors in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning