Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default "counting" number of entries

I'm trying to write a formula that will "count" the number of entries in a
list that are greater than one number but less than another.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 225
Default "counting" number of entries

One way is
=COUNTIF(A1:A20,"="&C1)-COUNTIF(A1:A20,"="&D1)

with lower limit in C1 and upper limit in D1

Another formula -
=SUMPRODUCT(--(A1:A20=C1),--(A1:A20<D1))

"Roy Ringrose" wrote:

I'm trying to write a formula that will "count" the number of entries in a
list that are greater than one number but less than another.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default "counting" number of entries

Hi,

If you are using 2007 then try:

=COUNTIFS(A1:A10,"1",A1:A10,"<9")

You can also use

=SUMPRODUCT((A1:A101)*(A1:A10<9))

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Roy Ringrose" wrote:

I'm trying to write a formula that will "count" the number of entries in a
list that are greater than one number but less than another.

Reply
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
"Bug" in number format for long number entries? chippo Excel Discussion (Misc queries) 7 November 20th 07 04:44 PM
In Excel, show 0.00 for "zero" entries, but "-" if no entries PLS Auditor Excel Discussion (Misc queries) 1 November 8th 07 04:07 PM
Need formula for dividing by "number of entries" in a column or row [email protected] Excel Discussion (Misc queries) 3 April 5th 07 07:16 PM
Counting the number of "#N/A" errors Bob Excel Worksheet Functions 5 November 16th 06 10:57 PM
counting the number of times value of "x" appears in a row Hugh Excel Discussion (Misc queries) 2 August 2nd 06 12:17 PM


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

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

About Us

"It's about Microsoft Excel"