# Conditional Summing While Ignoring Blank Cells

#### Cord

##### New Member
Hello all! First post here and excited about the wealth of info on this board...

Anyway, I'm performing conditional summing / counting on a spreadsheet that retrieves raw data downloaded from an AS/400. The range of rows varies based on what I'm looking at (account numbers, customers, etc.). Here's what I have so far:

{=COUNT(IF('Raw Data'!\$C\$2:\$C\$1752<=B5,'Raw Data'!\$C\$2:\$C\$1752))}

The problem I have is when I look at data that has a row count greater or less than 1,752. If I do a conditional count where I only have 440 cells, the formula looks at the blank cells and retrieves an incorrect answer. So, how do I ignore blank cells in this formula.

Thanks!

### Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

#### Mark W.

##### MrExcel MVP
{=COUNT(IF(IF(ISNUMBER('Raw Data'!\$C\$2:\$C\$1752),'Raw Data'!\$C\$2:\$C\$1752)<=B5,1))}

What's B5?
This message was edited by Mark W. on 2002-09-04 07:12

#### Cord

##### New Member
Mark, thanks for the response...

Cell B5 is the dollar amount criteria that must be met in order for the values to be summed/counted. I'm using this to analyze checking account balances and they are grouped within a range. B5 is the high end of the range..etc.

I tried your suggested formula, and I got a message that says, "You have entered too many arguements for this function..." Am I doing something wrong?

Any help you can give is appreciated. Thanks- Marc

#### Mark W.

##### MrExcel MVP
Have you considered using a Dfunction as shown below...
Book1
ABCDEFGH
1Field1Field1Field1
21<=4.5<>
3
42DCOUNT3
54.59DSUM7
6
75
86
97
10
114
12
Sheet1

This message was edited by Mark W. on 2002-09-04 11:32

#### Cord

##### New Member
Mark,

I'm not familiar w/ DCOUNT, but I gave it a shot. Here's what I tired:

=DCOUNT('Raw Data'!A1:J1500,'Raw Data'!C:C,<=B5)

This comes back w/ an error, and I believe it's because of my criteria. Basically, I want to review the database, the column to count is C, and the count criteria is any value less than or equal to the contents of b5. What am I doing wrong?

#### Mark W.

##### MrExcel MVP
See my DCOUNT formula in the HTML representation of a worksheet (above).

Replies
4
Views
164
Replies
9
Views
298
Replies
1
Views
1K
Replies
5
Views
305
Replies
3
Views
394

1,147,822
Messages
5,743,400
Members
423,792
Latest member
travisds

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