# Countifs with isblank

#### davin1130

##### New Member
I'm trying to count all of the blank cells in column Q provided they fall within the date range of C1 to C2

Sheet 'Raw Data' column A are dates
Sheet 'Raw Data' column Q are times
C1=start date range
C2=end date range

I've tried the following, but i get an error of #Spill!

=IF(ISBLANK('Raw Data'!Q4:Q8000),COUNTIFS('Raw Data'!A4:A8000,">="&C1,'Raw Data'!A4:A8000,"<="&C2))

### Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I think this is what you asking for Try this

Excel Formula:
``=COUNTIFS('Raw Data'!!\$A\$4:\$A\$8000,">="&C1,'Raw Data'!\$A\$4:\$A\$8000,"<="&C2,'Raw Data'!\$Q\$4:\$Q\$8000,"")``

Let me know

I think this is what you asking for Try this

Excel Formula:
``=COUNTIFS('Raw Data'!!\$A\$4:\$A\$8000,">="&C1,'Raw Data'!\$A\$4:\$A\$8000,"<="&C2,'Raw Data'!\$Q\$4:\$Q\$8000,"")``

Let me know
Thank you for the help, however, i'm getting a count of zero and i know that it is incorrect.

sorry I had an extra "!" in the formula try this:
Excel Formula:
``COUNTIFS('Raw Data'!\$A\$4:\$A\$8000,">="&C1,'Raw Data'!\$A\$4:\$A\$8000,"<="&C2,'Raw Data'!\$Q\$4:\$Q\$8000,"")``

sorry I had an extra "!" in the formula try this:
Excel Formula:
``COUNTIFS('Raw Data'!\$A\$4:\$A\$8000,">="&C1,'Raw Data'!\$A\$4:\$A\$8000,"<="&C2,'Raw Data'!\$Q\$4:\$Q\$8000,"")``
I noticed the extra ! earlier ... Still getting zero results ... i looked through the data and there are 86 items that should be getting picked up with this search.

WorkbookY.xlsm
ABC
1101/1/2022
21/15/2022
Sheet6
Cell Formulas
RangeFormula
A1A1=COUNTIFS('Raw Data'!\$A\$4:\$A\$8000,">="&C1,'Raw Data'!\$A\$4:\$A\$8000,"<="&C2,'Raw Data'!\$Q\$4:\$Q\$8000,"")

This is what I have. if you want please xl2bb what you have.

Replies
7
Views
301
Replies
1
Views
687
Replies
0
Views
133
Replies
1
Views
441
Replies
2
Views
512

1,203,756
Messages
6,057,162
Members
444,909
Latest member
Shambles111

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

### Which adblocker are you using?

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

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