Count data for a specific value in a month with a formula in an excel report
This formula allows me to know how many times a particular value appears during a month, it can be during the previous month, 3 months ago, current month, next month, etc.
When I use the formula ?
Each time that I need to know how much the specific value exists in a month.
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) ?
=COUNTIFS()
=EOMONTH()
=TODAY()
=INDIRECT()
To count in the previous month:
=COUNTIFS(C:C,">="&EOMONTH(TODAY(),-2)+1,C:C,"<"&EOMONTH(TODAY(),-1)+1,INDIRECT("A:A"),"chocolate")
The column C is where is the date and the column A is where “chocolate” can be found. If the word is in a cell, put the cell reference in the formula:
=COUNTIFS(C:C,">="&EOMONTH(TODAY(),-2)+1,C:C,"<"&EOMONTH(TODAY(),-1)+1,INDIRECT("A:A"),E7)
To count in the current month:
=COUNTIFS(C:C,">="&EOMONTH(TODAY(),-1)+1,C:C,"<"&EOMONTH(TODAY(),0)+1,INDIRECT("A:A"),"chocolate")
To count in the next month:
=COUNTIFS(C:C,">="&EOMONTH(TODAY(),0)+1,C:C,"<"&EOMONTH(TODAY(),1)+1,INDIRECT("A:A"),"chocolate")
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...