Table of Contents
Excel is a powerful tool that can be used to efficiently and accurately check if a cell contains partial text. This feature is particularly useful when working with large sets of data, as it allows users to quickly identify and extract specific information from a cell. To use this feature, users can use the “Find” function in Excel and specify the partial text they are looking for. This will search the cell for any matches and highlight them, making it easy to identify and extract the desired information. This feature saves time and effort, making it a valuable tool for data analysis and management.
Excel: Check if Cell Contains Partial Text
You can use the following formula in Excel to determine if a cell contains specific partial text:
=IF(COUNTIF(A1,"*abc*"),"Yes","No")In this example, if cell A1 contains the string “abc” in any part of the cell then it will return a Yes, otherwise it will return a No.
The following example shows how to use this formula in practice.
Example: Check if Cell Contains Partial Text in Excel
Suppose we have the following dataset in Excel that shows the number of points scored by various basketball players:

We can use the following formula to check if the value in the Team column contains the partial text “guar”:
=IF(COUNTIF(A2,"*guar*"),"Yes","No")We can type this formula into cell C2 and then copy and paste it down to the remaining cells in column C:

Any rows with the partial text “guar” in the Team column all receive a Yes in the new column while all other rows receive a No.
Also note that we could return values other than “Yes” and “No.”
For example, we could use the following formula to return “Guard” or “Not Guard” instead:
=IF(COUNTIF(A2,"*guar*"),"Guard","Not Guard")The following screenshot shows how to use this formula in practice:

Additional Resources
The following tutorials explain how to perform other common tasks in Excel:
Cite this article
stats writer (2024). How can I use Excel to check if a cell contains partial text?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-use-excel-to-check-if-a-cell-contains-partial-text/
stats writer. "How can I use Excel to check if a cell contains partial text?." PSYCHOLOGICAL SCALES, 1 Jul. 2024, https://scales.arabpsychology.com/stats/how-can-i-use-excel-to-check-if-a-cell-contains-partial-text/.
stats writer. "How can I use Excel to check if a cell contains partial text?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-use-excel-to-check-if-a-cell-contains-partial-text/.
stats writer (2024) 'How can I use Excel to check if a cell contains partial text?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-use-excel-to-check-if-a-cell-contains-partial-text/.
[1] stats writer, "How can I use Excel to check if a cell contains partial text?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, July, 2024.
stats writer. How can I use Excel to check if a cell contains partial text?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
