Log in
x
or
x
x
Register
x

or

How to calculate running count of occurrence in list in Excel?

This tutorial provides two formulas to help you easily calculate running count of an occurrence or every value in a list in Excel.

Calculate running count of an occurrence in list with formula
Calculate running count of every value in list with formula

More tutorials for COUNT function...


Calculate running count of an occurrence in list with formula

As the below screenshot shown, you only want to calculate the running count of item “Banana” in the Fruit list, please do as follows.

1. Select a blank cell (here I select B2) which is adjacent to the first cell (exclude the header cell) of the list, copy the below formula into it and press the Enter key.

=IF(A2="Banana",COUNTIF($A$2:A2,"Banana"),"")

Note: In the formula, A2 is the first cell (exclude the header cell) of the list, “Banana” is the value you will calculate. You can change them based on your needs.

2. Select the result cell, drag the Fill Handle down to apply the formula to other cells. Then you will get the result as the below screenshot shown.


Calculate running count of every value in list with formula

If you want to calculate the running count of each value in the list in Excel, the formula in this section can help.

1. Also, you need to select a blank cell which is adjacent to the first cell (exclude the header cell) of the list.

2. Copy the below formula into it and press the Enter key.

=COUNTIF($A$2:$A2,A2)

3. Select the result cell, drag the Fill Handle down to apply the formula to other cells. Then you will get the result as the below screenshot shown.


Related article

Count duplicate values in a column in Excel
If you have a list of data in a worksheet with unique values and duplicate values, and you do not only want to count the frequency of duplicate values also want to know the order of the occurrence of the duplicate values. In Excel, the COUNTIF function can help you count the duplicate values.

Countif with multiple criteria in Excel
In Excel, COUNTIF function may help us to calculate the number of a certain value in a list. But sometimes, we need to use multiple criteria for counting, this will be more complex, today, I will talk about some items for counting with multiple criteria.

Count number of cells between two values or dates in Excel
If you need to count cell numbers that contain specific values between two numbers or dates, the formula of the CountIf function can quickly help you. In this tutorial, we will show you details of counting number of cells that between two values or dates in Excel.

Count if cell contains text or part of text in Excel
Supposing you have the below data, and want to count the number of cells which contain the text "Apple", number of cells contain the text "Orange" and cells contain "Peach" separately, how to get it done? In this tutorial, we explains the COUNTIF function in detail to help you quickly count the number of cells if they contain text or part of specific text in Excel. Besides, we introduce an awesome feature to acheive it easily with only clicks.

More tutorials for COUNT function...


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.