Dashboard Mode - COUNTIF and COUNTIFS
Dashboard Goal
Find out how many sales meet certain conditions, like counting sales by product or by product and region.
Find out how many sales meet certain conditions, like counting sales by product or by product and region.
| Order ID | Product | Region | Sales |
|---|---|---|---|
| 1001 | Apples | East | 150 |
| 1002 | Bananas | West | 200 |
| 1003 | Apples | West | 120 |
| 1004 | Oranges | East | 180 |
| 1005 | Bananas | East | 160 |
| 1006 | Apples | East | 130 |
| 1007 | Oranges | West | 170 |
=COUNTIF(B2:B8, "Apples")=COUNTIF(C2:C8, "East")=COUNTIFS(B2:B8, "Bananas", C2:C8, "East")=COUNTIFS(B2:B8, E2, C2:C8, F1) (used in a grid with products in E column and regions in F row)+----------------+----------------+----------------+ | KPI: Apples | KPI: East | KPI: Bananas | | Count = 3 | Count = 4 | in East = 1 | +----------------+----------------+----------------+ | Sales Count by Product and Region | | +---------+---------+---------+ | | | | East | West | | | +---------+---------+---------+ | | | Apples | 2 | 1 | | | | Bananas | 1 | 1 | | | | Oranges | 1 | 1 | | | +---------+---------+---------+ | +-----------------------------------------------------+
Add a filter for Region. When you select a region like "East", all KPI cards and the table update to show counts only for that region. For example, the "Count of Apples" KPI will show how many Apple sales are in East only. The table will show counts for each product but only in the selected region.
If you add a filter for Product = Oranges, which components update and what will they show?
COUNTIF function do in Google Sheets?COUNTIFS function?=COUNTIFS(A1:A5, ">=20", A1:A5, "<=40")?=COUNTIFS(A1:A5, ">10", B1:B5, "<20") but it returns 0. The data in A1:A5 is {5, 15, 25, 35, 45} and in B1:B5 is {10, 20, 20, 25, 30}. What is the error?Region (A2:A10), Sales (B2:B10). You want to count how many sales are greater than 1000 in the "East" region. Which formula correctly does this?Pass the test and this pattern moves unknown