# Thread: Count Values in a list (Excel 2K)

1. ## Count Values in a list (Excel 2K)

This OUGHT to be easy. I was asked to find a way to count those entries in a list of numeric values which fell between a range of values. My "logical" choice was COUNT function. I then experimented with COUNTIF. The value <20 works exactly as I need. How do I configure the value if it is between 20 and 30, and between 30 and 40, etc.? As I said, this OUGHT to be easy.

2. ## Re: Count Values in a list (Excel 2K)

Here is another example using the Frequency function.

3. ## Re: Count Values in a list (Excel 2K)

Rory: Thanks for your reply. When I opened the file you said you attached, it was not actually changed from my original. Could you "resend" the file to me at 1mk@ti.com ? Thanks again!

4. ## Re: Count Values in a list (Excel 2K)

Hi,
See attached workbook (2nd sheet). I've split out the min and max values for each range and then used an array formula (type the formula without the {} and then press Ctrl+Shift+Enter to make it an array formula.
Hope that helps.

I've reattached the file now that I've saved the changes! <img src=/S/doh.gif border=0 alt=doh width=15 height=15>

5. ## Re: Count Values in a list (Excel 2K)

Rory's answer is in his attached sheet in Columns J,K,L <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

6. ## Re: Count Values in a list (Excel 2K)

Um, it is now, yes. I forgot to save my changes before uploading it the first time! <img src=/S/blush.gif border=0 alt=blush width=15 height=15>

7. ## Re: Count Values in a list (Excel 2K)

If the numbers are in A1:A100, then the following formula should count the number between 20 and 30 (not counting 20s and 30s):

<pre>=COUNTIF(A1:A100,">20")-COUNTIF(A1:A100,">=30")
</pre>

If you want to include 20s and 30 in the count, then use:

<pre>=COUNTIF(A1:A100,">=20")-COUNTIF(A1:A100,">30")
</pre>

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•