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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
{=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
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0
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?
 
Upvote 0

Forum statistics

Threads
1,217,682
Messages
6,137,961
Members
450,101
Latest member
Mrupe86

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