Conditional Summing While Ignoring Blank Cells

Cord

New Member
Joined
Aug 28, 2002
Messages
3
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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
{=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
Joined
Aug 28, 2002
Messages
3
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
Joined
Feb 10, 2002
Messages
11,654
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
Joined
Aug 28, 2002
Messages
3
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
Joined
Feb 10, 2002
Messages
11,654
See my DCOUNT formula in the HTML representation of a worksheet (above).
 

Forum statistics

Threads
1,144,293
Messages
5,723,555
Members
422,503
Latest member
aarifmahmood

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
Top