# CountIF problemo

#### David0079

##### New Member
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

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

#### barry houdini

##### MrExcel MVP
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))

Replies
1
Views
987
Replies
8
Views
724
Replies
3
Views
325
Replies
9
Views
925
Replies
4
Views
287

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

1,151,565
Messages
5,765,147
Members
425,263
Latest member
alcat

### 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?

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