Count the number of times a certain time period appears

ThomasL

New Member
Joined
Feb 16, 2009
Messages
23
I have this excel sheet with my movies where I add the date when I watch them. Now I want to create some stats of how many movies I have watched in a certain month. Been trying with COUNTIF but don't seem to get it to work, neither wildcards or jokers works and just add every date after the other stopped working after 6 dates. Help please...
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
The data is simple dates "2014-08-01", "2014-08-28" etc. I tried these: ("ANTAL.OM" is the Swedish equivalent of "COUNTIF")

=ANTAL.OM(Ägda!I2:O696;"2014-08-01")+ANTAL.OM(Ägda!I2:O696;"2014-08-02")+ANTAL.OM(Ägda!I2:O696;"2014-08-03")+ANTAL.OM(Ägda!I2:O696;"2014-08-04")+ANTAL.OM(Ägda!I2:O696;"2014-08-05")+ANTAL.OM(Ägda!I2:O696;"2014-08-06")
That returned 6 which is correct, but I can't add more dates to the formula, the result turns into a date if I do that (1900-01-07).

=ANTAL.OM(Ägda!I2:O696;"2014-08-??")
That returned 0

==ANTAL.OM(Ägda!I2:O696;"2014-08-*")
That returned 0 as well.

I manually counted the August numbers and it should be 31.
 
Last edited:
Upvote 0
I got it to work now, it was the differences between English and Swedish versions of Excel. We use semicolon when you use comma for instance. So the correct formula for me is:

=ANTAL.OMF(Ägda!I2:O696;">="&"2014-08-01"+0;Ägda!I2:O696;"<="&"2014-08-31"+0)

But thanks anyway since I could use your formula, just translate it. Just took a while for me to understand that. :)

 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top