Table of Contents
The “Does the specified range contain a specific value in Excel?” is a tool used in the Microsoft Excel program that allows users to determine whether a specific value exists within a given range of cells. This feature is beneficial for efficiently analyzing and organizing data, as it eliminates the need for manual searching and checking for values within a large dataset. By selecting the desired range and inputting the specific value, users can quickly determine if the value is present or not, saving time and ensuring accuracy in data management. This functionality is particularly useful in data analysis and decision-making processes.
Excel: Check if Range Contains Specific Value
You can use the following formulas to check if a range in Excel contains a specific value:
Method 1: Check if Range Contains Value (Return TRUE or FALSE)
=COUNTIF(A1:A10,"this_value")>0Method 2: Check if Range Contains Partial Value (Return TRUE or FALSE)
=COUNTIF(A1:A10,"*this_val*")>0Method 3: Check if Range Contains Value (Return Custom Text)
=IF(COUNTIF(A1:A10,"this_value"),"Yes","No")
The following examples show how to use each formula in practice with the following dataset in Excel:

Example 1: Check if Range Contains Value (Return TRUE or FALSE)
We can use the following formula to check if the range of team names contains the value “Mavericks”:
=COUNTIF(A2:A15,"Mavericks")>0The following screenshot shows how to use this formula in practice:

The formula returns FALSE since the value “Mavericks” does not exist in the range A2:A15.
Example 2: Check if Range Contains Partial Value (Return TRUE or FALSE)
We can use the following formula to check if the range of team names contains the partial value “avs” in any cell:
=COUNTIF(A2:A15,"*avs*")>0The following screenshot shows how to use this formula in practice:

The formula returns TRUE since the partial value “avs” occurs in at least one cell in the range A2:A15.
Example 3: Check if Range Contains Value (Return Custom Text)
We can use the following formula to check if the range of team names contains the value “Hornets” in any cell and return either “Yes” or “No” as a result:
=IF(COUNTIF(A2:A15,"Hornets"),"Yes","No") The following screenshot shows how to use this formula in practice:

The formula returns No since the value “Hornets” does not occur in any cell in the range A2:A15.
Additional Resources
The following tutorials explain how to perform other common tasks in Excel:
Cite this article
stats writer (2024). Does the specified range contain a specific value in Excel?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/does-the-specified-range-contain-a-specific-value-in-excel/
stats writer. "Does the specified range contain a specific value in Excel?." PSYCHOLOGICAL SCALES, 28 Jun. 2024, https://scales.arabpsychology.com/stats/does-the-specified-range-contain-a-specific-value-in-excel/.
stats writer. "Does the specified range contain a specific value in Excel?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/does-the-specified-range-contain-a-specific-value-in-excel/.
stats writer (2024) 'Does the specified range contain a specific value in Excel?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/does-the-specified-range-contain-a-specific-value-in-excel/.
[1] stats writer, "Does the specified range contain a specific value in Excel?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. Does the specified range contain a specific value in Excel?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
