BA Prince the B.A. Subscribe

Home / Excel for Business Analysts

Count Things With a Pivot Table in Excel (Tickets by Status and Priority)

Count Things With a Pivot Table in Excel (Tickets by Status and Priority)

Watch on YouTube Subscribe

A pivot table can count rows, not just add up numbers. Count support tickets by status, split them by priority, and check one answer with COUNTIF, step by step in Excel.

Try it yourself

Copy this table into a blank sheet, then follow the steps below.

Paste at cell A1:

TicketSummaryStatusPriority
T-101Login fails on mobileOpenHigh
T-102Invoice total wrongIn progressHigh
T-103Search page is slowOpenMedium
T-104Typo on checkout pageDoneLow
T-105Reset email arrives lateOpenHigh
T-106Export button missingIn progressMedium
T-107Wrong tax rateDoneHigh
T-108Broken image on homeDoneLow
T-109Cart empties on refreshOpenHigh
T-110Filter ignores datesIn progressLow
T-111Report times outOpenMedium
T-112Menu covers the logoDoneMedium

Step by step

  1. Count with a pivot. How many tickets are open? How many are high priority? A pivot table counts rows for you, no formulas needed. Let's build one in Excel.
  2. The tickets. Here's a list of twelve support tickets. Each one has an ID, a summary, a status and a priority. One header row, no gaps.
  3. Insert pivot table. Select the list, then Insert, Pivot Table. I'll put it on the same sheet, next to the data.
  4. Status in rows. Drag status into rows. Excel lists each status once: done, in progress and open.
  5. Count the tickets. Now drag ticket into values. A ticket ID is text, so Excel can't add it up. It counts it instead. That's the trick: put any text column in values to count rows. Four done, three in progress and five open. Twelve in total, the same as our list.
  6. Priority in columns. Drag priority into columns. Now every status is split by high, low and medium.
  7. Read the answer. Look where open meets high. Three open tickets are high priority. That's the number your manager asks for in the stand up.
  8. Check with COUNTIF. Always check a new pivot once. Below it, type the word open. Next to it, count it with a formula. Equals count if, the status column, then the cell with open. It gives five, the same as the pivot.
    F11Open
    G11=COUNTIF(C2:C13,F11)
  9. The whole summary. Twelve rows became one small table. Rows and columns are how you group. Values is what you count.
  10. Counting rules. So, to count rows, put a text column like the ID in values, and Excel counts instead of adding. When tickets change, right click and refresh.

More in Excel for Business Analysts