Excel Example for Data Analyst – Count rows with multiple OR criteria

Personal Career & Learning Guide for Data Analyst, Data Engineer and Data Scientist

Excel is a powerful tool that data analysts can use to manage, process, and analyze large amounts of data. One common task that data analysts need to perform is counting the number of rows in a spreadsheet that meet specific criteria. In this article, we’ll take a look at how to count the number of rows in a spreadsheet that meet multiple “OR” criteria using Excel.

To start, let’s assume that we have a spreadsheet that contains data on sales transactions. The spreadsheet contains columns for the date of the transaction, the product sold, the salesperson, and the amount of the sale. If we wanted to count the number of transactions that were either for a specific product or made by a specific salesperson, we would use the following steps:

  1. Select the column that contains the data that you want to use as your first criteria. In this case, we’ll use the “Product” column.
  2. In a new column, next to the “Product” column, use the formula “=IF(A2=”Specific Product”,1,0)”. This formula will return a 1 in the cells that match the criteria, and a 0 in the cells that don’t match. The “A2” in the formula refers to the first cell in the “Product” column, and the “Specific Product” is the value that we’re using as our criteria. Repeat this step for each additional criteria that you want to use. In this case, we’ll use the “Salesperson” column as our second criteria.
  3. In a new cell, use the formula “=SUM(B2:Bn)”. The “B2” and “Bn” in the formula refer to the first and last cells in the new column that contains the results of our formula. The SUM function will add up all of the 1s in the column and return the total number of rows that meet the criteria.

That’s it! Using these simple steps, you can count the number of rows in a spreadsheet that meet multiple “OR” criteria using Excel. This can be a useful tool for data analysts who need to quickly and easily analyze large amounts of data to find specific information. Whether you’re looking to determine the total number of sales transactions for a specific product or salesperson, or if you’re looking to find information on a larger scale, these steps will help you get started.

Excel Example for Data Analyst – Count rows with multiple OR criteria

Loader Loading...
EAD Logo Taking too long?

Reload Reload document
| Open Open in new tab

Download PDF [414.22 KB]

Personal Career & Learning Guide for Data Analyst, Data Engineer and Data Scientist

Applied Machine Learning & Data Science Projects and Coding Recipes for Beginners

A list of FREE programming examples together with eTutorials & eBooks @ SETScholars

95% Discount on “Projects & Recipes, tutorials, ebooks”

Projects and Coding Recipes, eTutorials and eBooks: The best All-in-One resources for Data Analyst, Data Scientist, Machine Learning Engineer and Software Developer

Topics included: Classification, Clustering, Regression, Forecasting, Algorithms, Data Structures, Data Analytics & Data Science, Deep Learning, Machine Learning, Programming Languages and Software Tools & Packages.
(Discount is valid for limited time only)

Disclaimer: The information and code presented within this recipe/tutorial is only for educational and coaching purposes for beginners and developers. Anyone can practice and apply the recipe/tutorial presented here, but the reader is taking full responsibility for his/her actions. The author (content curator) of this recipe (code / program) has made every effort to ensure the accuracy of the information was correct at time of publication. The author (content curator) does not assume and hereby disclaims any liability to any party for any loss, damage, or disruption caused by errors or omissions, whether such errors or omissions result from accident, negligence, or any other cause. The information presented here could also be found in public knowledge domains.

Learn by Coding: v-Tutorials on Applied Machine Learning and Data Science for Beginners

Please do not waste your valuable time by watching videos, rather use end-to-end (Python and R) recipes from Professional Data Scientists to practice coding, and land the most demandable jobs in the fields of Predictive analytics & AI (Machine Learning and Data Science).

The objective is to guide the developers & analysts to “Learn how to Code” for Applied AI using end-to-end coding solutions, and unlock the world of opportunities!