Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > PC based Database Applications > Microsoft Excel > Nested COUNTIF?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-28-08, 19:25
MillB MillB is offline
Registered User
 
Join Date: Dec 2006
Posts: 26
Nested COUNTIF?

Hey all,

It's MillB - and I'm stumped once again.
I have literally wrapped around in circles trying to find this solution.
Can one of you function pros give me a hand?

Here's what I got.
Screenshot 1 - in cell H19 is suppose to be the results of my calculation.
Screenshot 2 - The column I'm trying to calculate.

What I need this to do is count only the columns that have records, and within those only the ones <3. Make sense?

Once I have this it should be easy to replicate for <7 days and <10 days.

Much Thanks!
Attached Thumbnails
nested-countif-screenshot1.png  nested-countif-screenshot2.png  
Reply With Quote
  #2 (permalink)  
Old 05-29-08, 09:08
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 586
Hi

A little confused but would this do it

=SUMPRODUCT((B1:B65535>3)*1)


??


MTB

PS for some bizarre reason the above also counts text entries so I submit this in mitigation !!

=SUMPRODUCT((B1:B65535>3)*ISNUMBER(B1:B65535)*1)

Last edited by MikeTheBike : 05-29-08 at 09:15.
Reply With Quote
  #3 (permalink)  
Old 05-29-08, 16:17
MillB MillB is offline
Registered User
 
Join Date: Dec 2006
Posts: 26
Hey Mike

No, that doesn't do it.
The correct amount is currently in the cell H19 in screenshot 1 (81).

This calculation needs to only find the <3 records from B2 to the last record.
However, there's a catch. These records get updated via ODBC from Access, so, the length of the list will change each time it's updated.

Does this make more sense of what I'm trying to accomplish?

Thanks,

MillB
Reply With Quote
  #4 (permalink)  
Old 05-29-08, 17:31
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,080
You should probably set up a dynamic named range, and use that in your formulas, so that it will always refer to the correct range.

MyRng

=OFFSET(Sheet1!$B$2,0,0,COUNTA(Sheet1!$B:$B),1)

If B1 is filled then use this:

=OFFSET(Sheet1!$B$2,0,0,COUNTA(Sheet1!$B:$B)-1,1)
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #5 (permalink)  
Old 05-30-08, 05:29
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 586
Hi
Quote:
Does this make more sense of what I'm trying to accomplish?
Not really.

If you are trying to COUNT the number of cells in Sheet1, Column B, Row 2 and down, that have a value greater than 3 (?), then this seems to do that

=SUMPRODUCT((Sheet1!B2:B65536>3)*ISNUMBER(Sheet1!B 2:B65536))

If that is not what you want, then perhaps a little more info is required!

However, if that is what you want, and it doesn’t do what I think, perhaps you could indicate what it does do?


MTB
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On