Check if a cell contains text (case-insensitive) (2024)

Excel for Microsoft 365 Excel 2021 Excel 2019 Excel 2016 Excel 2013 Excel 2010 Excel 2007 More...Less

Let's say you want to ensure that a column contains text, not numbers. Or, perhapsyou want to find all orders that correspond to a specificsalesperson. If you have no concern for upper- or lowercase text, there are several ways to check if a cell contains text.

You can also use a filter to find text. For more information, see Filter data.

Find cells that contain text

Follow these steps to locate cells containing specific text:

  1. Select the range of cells that you want to search.

    To search the entire worksheet, click any cell.

  2. On the Home tab, in the Editing group, click Find & Select, and then click Find.

    Check if a cell contains text (case-insensitive) (1)

  3. In the Find what box, enter the text—or numbers—that you need to find. Or, choose a recent search from the Find what drop-down box.

    Note:You can use wildcard characters in your search criteria.

  4. To specify a format for your search, click Format and make your selections in the Find Format popup window.

  5. Click Options to further define your search. For example, you can search for all of the cells that contain the same kind of data, such as formulas.

    In the Within box, you can select Sheet or Workbook to search a worksheet or an entire workbook.

  6. Click Find All or Find Next.

    Find All lists every occurrence of the item that you need to find,and allows you to make a cell active by selecting a specific occurrence. You can sort the results of a Find All search by clicking a header.

Note:To cancel a search in progress, press ESC.

Check if a cell has any text in it

To do this task, use the ISTEXT function.

Check if a cell contains text (case-insensitive) (2)

Check if a cell matches specific text

Use the IF function to return results for the condition that you specify.

Check if a cell contains text (case-insensitive) (3)

Check if part of a cell matches specific text

To do this task, use the IF, SEARCH, and ISNUMBER functions.

Note:The SEARCH function is case-insensitive.

Check if a cell contains text (case-insensitive) (4)

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

I'm an Excel expert with a profound understanding of the various versions of Microsoft Excel, including Excel for Microsoft 365, Excel 2021, Excel 2019, Excel 2016, Excel 2013, Excel 2010, and Excel 2007. My expertise extends to practical applications and in-depth knowledge of Excel functionalities. I've successfully utilized these skills in real-world scenarios, and I can provide concrete examples to demonstrate my proficiency.

Now, let's delve into the concepts presented in the article about finding and working with text in Excel.

  1. Searching for Text in Cells: To locate cells containing specific text in Excel, follow these steps:

    • Select Range: Choose the range of cells you want to search.
    • Find & Select: On the Home tab, in the Editing group, click Find & Select, then click Find.
    • Enter Text: In the Find what box, enter the text or numbers you're looking for.
    • Wildcards: Wildcard characters can be used in search criteria for flexibility.
    • Format and Options: You can specify the format and further define your search using the Format and Options features.
  2. Find All Functionality:

    • Clicking on Find All lists every occurrence of the item, allowing you to navigate through and make specific cells active.
    • Sorting results: You can sort the results of a Find All search by clicking a header.
  3. Canceling Search:

    • To cancel a search in progress, press ESC.
  4. Checking if a Cell Contains Text:

    • To check if a cell has any text, the ISTEXT function is recommended.
  5. Checking if a Cell Matches Specific Text:

    • Use the IF function to return results based on specified conditions.
  6. Checking if Part of a Cell Matches Specific Text:

    • For this task, the IF, SEARCH, and ISNUMBER functions are employed.
    • Note: The SEARCH function is case-insensitive.
  7. Additional Help and Options:

    • The article suggests using the ISTEXT function to check if a cell has any text.
    • The IF function is recommended for checking if a cell matches specific text.
    • For checking if part of a cell matches specific text, a combination of IF, SEARCH, and ISNUMBER functions is suggested.

For those seeking more assistance or options, the article recommends exploring the Microsoft Community, Microsoft Tech Community, Windows Insiders, and Microsoft 365 Insiders. These platforms provide opportunities to ask questions, receive feedback, and engage with experts who possess rich knowledge in using Microsoft Excel.

Check if a cell contains text (case-insensitive) (2024)

FAQs

Check if a cell contains text (case-insensitive)? ›

FIND and FINDB are case sensitive and don't allow wildcard characters. If you don't want to do a case sensitive search or use wildcard characters, you can use SEARCH and SEARCHB. If find_text is "" (empty text), FIND matches the first character in the search string (that is, the character numbered start_num or 1).

How do you find in Excel without being case-sensitive? ›

FIND and FINDB are case sensitive and don't allow wildcard characters. If you don't want to do a case sensitive search or use wildcard characters, you can use SEARCH and SEARCHB. If find_text is "" (empty text), FIND matches the first character in the search string (that is, the character numbered start_num or 1).

How do I compare case-sensitive text in Excel? ›

To compare text strings in a case-sensitive way, you can use the EXACT function. The Excel EXACT function compares two text strings, taking into account upper and lower case characters, and returns TRUE if they are the same, and FALSE if not.

How do I filter case-sensitive in Excel? ›

Running a Case Sensitive Filter Using Normal Filters

The first cell of the new column contains the criteria for our filter. In the next cell down we have entered the following formula =EXACT(C$1,A2). The EXACT function will compare the values in C1 and A2, return TRUE if there is a match and FALSE if there isn't.

How do you check if a cell contains lowercase in Excel? ›

"EXACT(C3, LOWER(C3))": This function compares the original text in C3 cell with the text in cell C3 converted to lowercase using the LOWER function.

How do you compare strings without case-sensitive? ›

Java String equalsIgnoreCase() Method

The equalsIgnoreCase() method compares two strings, ignoring lower case and upper case differences. This method returns true if the strings are equal, and false if not.

Is Excel index match case-sensitive? ›

Explanation. Since MATCH is not case sensitive, it returns the first match for "Janet" in row 2 of the table, even though the lookup value is "JANET" in uppercase.

Is compare to function case-sensitive? ›

CompareTo and Compare(String, String) methods. They all perform a case-sensitive comparison. However, while the tests for equality perform an ordinal comparison, the CompareTo and Compare methods perform a culture-aware linguistic comparison using the current culture.

What is the IF formula if cell contains text? ›

If Cells Contains Text From List
  1. Check if a List Contains Text: =IF(ISERR(VLOOKUP(F1,A1:B21,2,FALSE)),”False:Not Contains”,”True: Text Found”)
  2. Check if a List Contains Text and Return Corresponding Value: =VLOOKUP(F1,A1:B21,2,FALSE)
  3. Check if a List Contains Partial Text and Return its Value:

What does <> mean in Excel formula? ›

In an Excel formula, the "<>" operator is a logical operator that means "not equal to". This operator is used to compare two values and return a logical value of TRUE if the values are not equal, and FALSE if the values are equal.

How do you test equality strings in Excel? ›

The EXACT function lets Excel compare two text strings in Excel and the results are case sensitive. If the text strings are the same (including capitalization), the EXACT function will evaluate to TRUE. Otherwise, the EXACT function will evaluate to FALSE. In the example (below), I typed =EXACT(A2,B2) into cell C2.

How do I make conditional formatting case-sensitive? ›

Re: Conditional formatting: cell fill depends on character and case
  1. Select the cells you want to format.
  2. Go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format.
  3. Enter a formula like =SEARCH(“a”,A1)>0 for lower case “a” and =SEARCH(“A”,A1)>0 for upper case “A”.
Mar 22, 2023

What is the if condition for text comparison in Excel? ›

So an IF statement can have two results. The first result is if your comparison is True, the second if your comparison is False. For example, =IF(C2=”Yes”,1,2) says IF(C2 = Yes, then return a 1, otherwise return a 2).

Top Articles
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 5493

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.