6.2 C
London
Thursday, December 19, 2024
HomeSoftware TutorialsGoogle SheetsGoogle Sheets: How to Check if Value is in Range

Google Sheets: How to Check if Value is in Range

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

You can use the following formulas to check if certain values exist in a range in Google Sheets:

Method 1: Check if Value is in Range

=IF(ISERROR(MATCH("Value to Find", A1:A16, 0)), "Not Found", "Found")

Method 2: Count Occurrences of Value in Range

=COUNTIF(A2:A16, "Value")

Method 1: Check if Value is in Range

The following screenshot shows how to check whether or not the team name “Suns” is found in a certain range of team names:

Google Sheets check if value exists in range

The team name exists in the range, so the MATCH() function returns “Found.”

Note that we can replace “Found” and “Not Found” with numerical values like 1 and 0 if we’d like:

The value 1 indicates that “Suns” was found in the range of team values.

Method 2: Count Occurrences of Value in Range

We can use the COUNTIF() function to find the number of times that a certain value occurs in a range:

We can see that the team name “Suns” occurs 3 times in the range.

Additional Resources

The following tutorials explain how to to perform other common operations in Google Sheets:

Google Sheets: How to Use COUNTIF with Multiple Ranges
Google Sheets: How to Use COUNTIF From Another Sheet
Google Sheets: How to Use SUMIF with Multiple Columns

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories