Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default Countif

I'm not at all clear why this would give you too high a number.
=countif(a1:a100,"=7")-countif(a1:a100,"13") should count occurences
between 7 and 13 inclusive.
An alternate approach that supports multiple distinct criteria (as opposed
to a range of a single variable) is to use summproduct:
=sumproduct(--(a1:a100=7),--((a1:a100<=13))


"HJ" wrote:

This would give me a number much higher than I am looking for since my range
has numbers that go up to 50 (and I'm actually looking to identify the number
of occurences that fall between 7 and 13. Is there another function that
would allow me to use multiple criteria?

"bpeltzer" wrote:

Countif will only take one criterion. But if you just want a range, you
could count everything =1 and subtract everything 10. What's left will be
the number in your range.
=countif(a1:a100,"=1")-countif(a1:a100,"10")

"HJ" wrote:

I'm trying to add a formula that will count the number of occurences between
two criteria. How do you add another criteria to this formula?

countif(a1:a100,"=1") I would also like to say and less than or equal to 10.

Any suggestions or is there another function that would work better?

TIA

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM


All times are GMT +1. The time now is 10:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"