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

Data Analysis

  • How to Sort by Color in Excel
  • Remove Duplicates Example in Excel
  • Data Series in Excel
  • How to create running total in an Excel Table
  • Conditional Formatting Data bars Examples in Excel

References

  • How to use Excel MMULT Function
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • How to get last row in numeric data in Excel
  • How to get last row in text data in Excel
  • Two-column Lookup in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation require unique number
  • Excel Data validation date in specific year
  • Excel Data validation number multiple 100
  • Excel Data validation whole percentage only

Highlight cells that equal in Excel

by

This tutorial shows how to Highlight cells that equal in Excel using the example below;

Formula

=A1="X"

Explanation

Note: Excel contains many built-in “presets” for highlighting values with conditional formatting, including a preset to highlight cells that contain a specific value. However, if you want more flexibility, you can use your own formula, as explained in this article.

If you want to highlight cells that equal text, you can use a simple formula that returns TRUE when a cell contains the text (substring) that you specify.

Worked Example:   Highlight duplicate values in Excel

For example, if you want to highlight any cells in the range C5-C11 that contain the text “dog”, you can use:

=C5="Dog"

Note: with conditional formatting, it’s important that the formula be entered relative to the “active cell” in the selection, which is assumed to be C5 in this case.

In the example we have pulled the value we are looking for out on to the worksheet in cell F6, so it can be easily changed. The conditional formatting rule itself is using this formula:

=C5=$F$6

How this formula works

Worked Example:   Highlight values not between X and Y in Excel

This formula is just a simple comparison using the equal to operator (=).

When you use a formula to apply conditional formatting, the formula is evaluated relative to the active cell in the selection at the time the rule is created. In this case, the rule is evaluated for each of the 7 cells in C5:C11, and during evaluation C5 will change to the address of the cell being evaluated in the range where conditional formatting is applied.

Worked Example:   Highlight rows with blank cells in Excel

The address of the cell that contains the search string (F6) is an absolute reference ($F$6) so that it is “locked” and won’t change as the formula is evaluated.

Case sensitive option

By default a comparison is not case-sensitive. If you need to check case as well, you can use the EXACT function instead of the equals.

=EXACT(C5,$F$6)

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

  • How to use IFS function in Excel
  • Excel If, Nested If, And/Or Criteria Examples
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • IF with boolean logic in Excel

Date Time

  • Convert decimal minutes to Excel time
  • Calculate number of hours between two times in Excel
  • Count birthdays by month in Excel
  • Add months to date in Excel
  • Convert decimal hours to Excel time

Grouping

  • Calculate conditional mode with criteria in Excel
  • How to randomly assign people to groups in Excel
  • Group times into 3 hour buckets in Excel
  • Map text to numbers in Excel
  • Group times into unequal buckets in Excel

General

  • How to get original number from percent change in Excel
  • Check if range contains a value not in another range in Excel
  • How to create dynamic named range with INDEX in Excel
  • Currency vs Accounting Format in Excel
  • Hide and Unhide Columns or Rows in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning