PastFuture
PastFuture

Reputation: 37

In Excel, how can I create a counter to increment based on a condition?

Lets say in Excel, that I have this in a column. When the number in column N is greater than 3, then the number in the Counter column increases. I have tried if statements, but the count never works.

N  Counter
1  1
2  1
3  1
1  2
2  2
3  2
1  3
2  3
3  3

Upvotes: 0

Views: 1183

Answers (1)

Harun24hr
Harun24hr

Reputation: 36890

Try this simple COUNTIFS() function.

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

enter image description here

Upvotes: 1

Related Questions