HomeGoogle DocsSpreadsheetHow to Check a Single Value in a Range of Cells in...

How to Check a Single Value in a Range of Cells in Google Sheets Using Function

Published on

In Google Sheets, you can easily check a single value in a range of cells using a function. This time I am detailing this tips below.

Checking the presence of a single value in a range of cells seems easy, right? But I think it’s not so for many. With the search command, it’s OK. But I am talking about using a formula to find any value in a range of cells. Without using the search command we can do it.

It’s common that sometimes you may fall into a dilemma to determine which function to use to get a particular result from the multitude of functions available.

Let us go to our tutorial.

Check a Single Value in a Range of Cells in Google Sheets – How to?

See the image below.

find a single value in a range using function

What you will do to find whether the item “Coverall” is available or not on the list. Using IFS function you can find it. But it will be a lengthy procedure. Here is the solution. You can use the following count function in Google Sheets to find it.

=COUNTIF(B5:B15,C6)

Here in this formula B5: B15 is the range to search for a single value and C6 is the value to find. The above formula will return 1, if the value is present, else return 0. Based on this you can further develop the formula.

For example, when you check a single value in a range of cells using the above Countif function, you can perform different calculations based on it.

=if(countif(B5:B15,C6)=1,"This value is existing", "Not in this list")

The above IF logical function can return the result “This value is existing” when the search value is present in the range. This way you can do many calculations like pricing, custom message, any other calculations etc.

This is not the single function that you can use to check a single value in a range of cells. You can also use Match, Regexmatch (for case sensitive match) like functions.

Hope you find this quick google spreadsheet tutorial useful.

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

XLOOKUP in Excel: Working with Visible Rows in a Table

In Excel, the XLOOKUP function isn't inherently designed to exclusively work with visible rows;...

SUMPRODUCT Differences: Excel vs. Google Sheets

The core purpose of the SUMPRODUCT function remains consistent across both Excel and Google...

Sum Values by Month and Category in Excel

With the help of EOMONTH, UNIQUE, and SUMIFS functions in Excel, you can efficiently...

Sum Values by Categories in Excel

In Excel, the easiest way to sum values in a range by categories is...

More like this

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

Analyzing Column A Between Non-Adjacent Values in Column B: Google Sheets

This tutorial addresses a common scenario encountered in Google Sheets: how to sum, average,...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.