To count the duplicates in an Excel column may be easy for you, but have you ever tried to count the consecutive duplicates yet? In other words, it will count continuous duplicates and recount it from 1 if there is a break between the duplicates as below screenshot shown.
To count consecutive duplicates, just need to apply a simple formula.
1. Select an adjacent cell, B1 for instance, enter 1. See screenshot:
2. In the next cell below 1, B2 for instance, enter this formula =IF(A2=A1,B1+1,1), then drag autofill handle down to the cells to apply this formula. See screenshot:
Note: in the formula, A1 and A2 is the first two values in the list you want to count consecutive duplicates, B1 is the cell you enter number 1 in the first step, you can change them as you need.
Tip.If you want to quickly select and count the duplicates or unique values in a list, please try to use the Kutools for Excel’s Select Duplicate & Unique Cells as shown in the following screenshot. It’s full function without limitation in 30 days, please download and have a free trial now.
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...