• 397K Members
• 3,417 Online
• 433K Conversations
SOLVED

## Running count of matching numbers (or text)

Occasional Contributor

# Running count of matching numbers (or text)

Hello! I fear this may be a simple question, but I don't know how to phrase it correctly to find an answer.

I cannot figure out how to calculate a running count for a row of items that have duplicates. I've attached an example. I'm trying to calculate the highlighted row. I'm trying to get pivot tables to do it for me, but using the Running count function I just get a bunch of 1s.

Any help is appreciated!

3 Replies
Highlighted

# Re: Running count of matching numbers (or text)

@Ian_4-learnin , that could be like

`=(N(D2)+1)*(\$B3=\$B2)+(\$B3<>\$B2)`

It adds 1 if the value in B is the same and returns 1 otherwise

Solution

# Re: Running count of matching numbers (or text)

`=COUNTIFS(B\$3:B3,B3)`

# Re: Running count of matching numbers (or text)

@Sergei BaklanThank you, that works great. Now I just have to study a little and figure out what it means...

Related Conversations
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
2 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
203 Replies