How to find string in a cell/column with formulas in Excel?
This article is talking about how to find a specific text string in a cell or column with formulas in Excel. There are two tricky ways to get it done easily.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
This method will introduce two formulas to check/find if the specific string existing or nor in a cell, and return the string’s position.
Check and find if containing the specific string with formula
Select a blank cell you will return the checking result, and enter the formula =ISNUMBER(SEARCH("KTE",A2)) into it, and then drag the Fill Handle to the range as you need. See screenshot:
(1) In above formula, KTE is the specific string you will check, and A2 is the cell you will check if containing the specific string. You can change both based on your needs.
(2) The above formula will return TRUE or FALSE. TRUE means the cell contains the specific string, while FALSE means the cell doesn’t contain the specific string.
(3) This formula is not case-sensitive.
Find certain string and return its position with formula
Select a blank cell you will return the specific string’s position, and enter the formula =FIND( "KTE",A2) into it, and then drag the Fill Handle to the range as you need. See screenshot:
(1) In above formula, KTE is the specific string you will check, and A2 is the cell where you will find the specified string’s position. You can change both based on your needs.
(2) If you want to find the specific string from nth character in a cell, says the 10th character, you can adjust the formula as =FIND( "KTE",A2, 10).
(3) Both formulas =FIND( "KTE",A2) and =FIND( "KTE",A2, 10) are case-sensitive.
Kutools for Excel?s Count times a word appears formula can not only check if a string exists in a cell or not, but also count the occurrences of this string.
1. Select a blank cell you will return the counting result, and click the Kutools > Formulas > Count times a word appears. See screenshot:
2. In the opening Formula Helper dialog box, please specify the cell address where you will count occurrences of the specific string into the Text box, and type the specific string into the Word box. See screenshot:
Note: If you type the specific string into the Word box directly, please remember to enclose the string with quotes.
3. Click the Ok button to apply this formula. Then drag the Fill Handle to the range as you need. See screenshot:
1. If you get the result “0”, it means the selected cell doesn’t contain the specific string.
2. This Count times a word appears formula is case-sensitive.
If you have Kutools for Excel installed, you can apply its Select Specific Cells feature to quickly look for a certain value from a range, and count the occurrences if it exists in Excel. Pease do as follows:
1. Select the column you will find in, and click Kutools > Select > Select Specific Cells. See screenshot below:
2. In the opening Select Specific Cells dialog box, please check the Cell option, select Contains from the first drop down list in the Specific type section, and type the certain value you will find into following box. See screenshot above:
3. Click the Ok button.
And now cells containing the certain value are selected at once, and simultaneously a dialog box will come out and show how many cells are selected. See screenshot below: