Count the repetitive value with a formula in an excel report
In some of my reports, I needed to count the duplicate value for 1 or more specific products.
When I use the formula ?
To count duplicate value for 1 or more specific groups.
How to use the formula ?
The formula in this topic is with "," so depending of the operating system of your PC, the formula should have ";" instead of ",".
How is/are the formula(s) ?
=COUNTIF()
=COUNTIFS()
In E2, for 1 value:
=COUNTIF(A:A,"group1")
It counts the duplicate value, in this case, “group1”.
In E3, for 2 values:
=COUNTIFS(A:A,"group1",B:B,"=server")
It counts only all servers for the group1.
In E4, for 3 values:
=COUNTIFS(A:A,"group1",B:B,"server",C:C,"unix")
It counts only all unix servers for the group1. Now if I want to count for different groups and for multiple systems, I will use this formula (right picture above):
=COUNTIFS(A:A,{"group1","group3"},B:B,"pc",C:C,E2:E5)
Interesting Topics
-
Be successfully certified ITIL 4 Managing Professional
Study, study and study, I couldn’t be successfully certified without studying it, if you are interested...
-
Be successfully certified ITIL 4 Strategic Leader
With my ITIL 4 Managing Professional certification (ITIL MP) in the pocket, it was time to go for the...
-
Hide visual and change background color based on selection
Some small tricks to customize the background colour of a text box...
-
Stacked and clustered column chart or double stacked column chart
In excel, I use a lot the combination of clustered and stacked chart...