Multiple Countif parameters

Sandgroper

New Member
Joined
Aug 14, 2007
Messages
2
Hello, have searched unsuccesfully, so will post in hope :)

I want to count occurrances weekly of the number of times a number appears.

e.g.

1/08/2007 2010
2/08/2007 5160
3/08/2007 2010
4/08/2007 5160
5/08/2007 2222
6/08/2007 2222
7/08/2007 2010
8/08/2007 2010
9/08/2007 2010
10/08/2007 2222
11/08/2007 5160
12/08/2007 5160
13/08/2007 2010
14/08/2007 2010

so week 1 would return result of 3 for 2010 and week two would be 4 occurances. Working with dates is confusing !!!

So far I have :

=COUNTIF(B1:B14,"2010")+(COUNTIF(A1:A14,">=""01/08/2007")-(COUNTIF(A1:A14,"<=""07/08/2007")))

but only returns the number 7 :(

Or an alternative solution would be nice too :)

TIA
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Try...

=SUMPRODUCT(--(B1:B14=2010),--(A1:A14>="01/08/2007"+0),--(A1:A14<="07/08/2007"+0))

Hope this helps!
 
Upvote 0
Thank you .. is perfect !!!

I searched for the last two days in frustration... I appreciate your help !!!
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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