Count and total one category

Count the rows where column A says Sales and add up their amounts from column B.

Changes data. A backup copy and an undo point are turned on.

What it does, step by step

  1. Write "Sales rows" in E1
  2. F1 = how many rows say Sales
  3. Write "Sales total" in E2
  4. F2 = total of column B for Sales

Use it in MacroRoni: open the Starter gallery, search for "Count and total one category", check the steps, and adjust the sheet and ranges to fit your workbook. Preview the result before you run it.

Get MacroRoni free

More calculations macros