CountIF problemo

David0079

New Member
Joined
Jul 26, 2007
Messages
44
Hi Ladies & Gents,

Little problem for Friday afternoon! :)

I have three columns, 1 with date, 1 with name and 1 with score out of five.

I want to make a graph on another sheet. I basically want a formula to look at the date column, if it is between 01/01/07 and 31/01/07 to look in column c and count the number of 1s and then I can adapt it to count number of 2,3,4 etc

I have got this far...


=COUNTIF(Data!$A$2:Data!$A$14733,"<="&DATE(2007,01,31),C2:C4000)-COUNTIF(Data!$A$2:Data!$A$14733,"<"&DATE(2007,01,01),C2:C4000)

But this is not gonna count the number of times 1 appears. Heeeeeellllp please :(
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try

=SUMPRODUCT(--(Data!$A$2:$A$14733<=DATE(2007,01,31)),--(Data!$A$2:$A$14733>=DATE(2007,01,01)),--(Data!$C$2:$C$14733=1))
 
Upvote 0

Forum statistics

Threads
1,214,533
Messages
6,120,076
Members
448,943
Latest member
sharmarick

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