I have a spreadsheet working on that has a list of activities that occurred between January and December and each activity occurred multiple times during January thru December ie: June there were 12 different entries that occurred with one activity occurring multiple times
What I need is to count the number of occurrences of a certain activity but only those occurring in June. I have tried the count
function, the sum
function, the countif
function, the sumif
function, and the if
function - nothing is working!
Also I am using 2010 Excel, here is example of my tried equations =countif(a3:a16,a73,c4,a3:a165)
. The range a3:a165 is data range a73 is date c4 is activity. I am just drawing a blank and have researched it but nothing seems to fit and I haven't used Excel in this form since high school.
Column a is month column c is activity column b is persons name
have you tried COUNTIFS
it is same as COUNTIF
but it takes multiple conditions.
Since you didn't specify all relevant ranges I'll assume that A3:a165 has the dates, and B3:B165 has activity names
=COUNTIFS(MONTH(A3:A165),Month(a73),B3:B165,C4)
So you were almost there. However if this doesn't work for you consider adding column C if possible where you would use following formula(ex. of C3) =MONTH(A3)
and your countif
formula would would look like this
=COUNTIFS(A3:A165,MONTH(A73),B3:B165,C4)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.