In this video, I want to show you how to build a quick summary table using the COUNTIF and SUMIF functions.
Here we have a sample set of data that shows t-shirt sales.
You can see we have columns for date, item, color, and amount.
So let's break this data down by color.
Now, before we start, I want to mention that Pivot Tables would be an excellent way to summarize this data, but you can certainly use formulas for basic summaries, and that's what I'm going to demonstrate here.
First, I'm going to name the Color and Amount columns in the data. Now, this isn't necessary, but naming these ranges means I won't need to use absolute addresses later, and it will make the formulas really short and easy to read.
Now, in our summary table, we need a list of unique colors. To build this list, I'll copy the full list, then use the Remove Duplicates command in Excel.
If you just have a few items in a list, there's no need to use Remove Duplicates. But it's a great way to build a clean list of unique values when you're working with unfamiliar data.
Now I'll add the first formula. COUNTIF needs a range and a criteria. Since we're counting colors, the range is the color column.
Next, we need a criteria, and that's where our list of colors comes in. We already have the colors in a list in our table, so I can just point to that column and pick up the reference. When I hit Enter, and copy the formula down, we have a count for each color.
Now let's extend this summary table to include amounts.
In this case, we'll need to use the SUMIF function. As before, I need to provide Color as the range, then pick up the name of the color as a cell reference in our table.
Then we need to provide the range to sum, which is the Amounts column.
When I copy the formula down the table, we have a breakdown of amount by color.
Now, to finish things off, I can copy formatting from the source table to the summary table using Paste Special.
So there you have it; we have our summary table. And, if I change some of the source data, you'll see the summary table update instantly.
COUNTIF is an Excel function to count cells in a range that meet a single condition. COUNTIF can be used to count cells that contain dates, numbers, and text. The criteria used in COUNTIF supports logical...
The Excel SUMIF function returns the sum of cells that meet a single condition. Criteria can be applied to dates, numbers, and text. The SUMIF function supports logical operators (>,,=) and wildcards (*,?) for partial matching....
The Excel COUNTIFS function returns the count of cells that meet one or more criteria. COUNTIFS can be used with criteria based on dates, numbers, text, and other conditions. COUNTIFS supports logical operators (>,...
SUMIFS is a function to sum cells that meet multiple criteria. SUMIFS can be used to sum values when corresponding cells meet criteria based on dates, numbers, and text. SUMIFS supports logical operators (>,...