# 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:

- 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.
- 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.
- 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

Latest end-to-end Learn by Coding Projects (Jupyter Notebooks) in Python and R:

**All Notebooks in One Bundle: Data Science Recipes and Examples in Python & R****. **

**End-to-End Python Machine Learning Recipes & Examples.**

**End-to-End R Machine Learning Recipes & Examples.**

**Applied Statistics with R for Beginners and Business Professionals**

**Data Science and Machine Learning Projects in Python: Tabular Data Analytics**

**Data Science and Machine Learning Projects in R: Tabular Data Analytics**

**Python Machine Learning & Data Science Recipes: Learn by Coding**

**R Machine Learning & Data Science Recipes: Learn by Coding**

**Comparing Different Machine Learning Algorithms in Python for Classification (FREE)**

There are 2000+ End-to-End Python & R Notebooks are available to build **Professional Portfolio as a Data Scientist and/or Machine Learning Specialist**. All Notebooks are only $29.95. We would like to request you to have a look at the website for FREE the end-to-end notebooks, and then decide whether you would like to purchase or not.