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.

Counting XLOOKUP Results with COUNTIFS in Excel and Google Sheets

We can use COUNTIF or COUNTIFS alongside an XLOOKUP formula to conditionally count the...

Appointment Schedule Template in Google Sheets

An appointment schedule template in Google Sheets can assist you in efficiently managing your...

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Running Total By Month in Excel

This tutorial demonstrates how to calculate the running total by month in a range...

More like this

Appointment Schedule Template in Google Sheets

An appointment schedule template in Google Sheets can assist you in efficiently managing your...

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Interactive Random Task Assigner in Google Sheets

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

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.