Results 1 to 7 of 7
  1. #1
    New Lounger
    Join Date
    Mar 2002
    Location
    Mesquite, Texas, USA
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.
    Attached Files Attached Files

  2. #2
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Weert, Limburg, Netherlands
    Posts
    4,812
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    Here is another example using the Frequency function.
    Attached Files Attached Files
    Jan Karel Pieterse
    Microsoft Excel MVP, WMVP
    www.jkp-ads.com
    Professional Office Developers Association

  3. #3
    New Lounger
    Join Date
    Mar 2002
    Location
    Mesquite, Texas, USA
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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. #4
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    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.
    [Edit]
    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>
    Attached Files Attached Files
    Regards,
    Rory

    Microsoft MVP - Excel

  5. #5
    3 Star Lounger
    Join Date
    Jun 2001
    Location
    Maidstone, Kent, England
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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. #6
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    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>
    Regards,
    Rory

    Microsoft MVP - Excel

  7. #7
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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>

    Legare Coleman

Posting Permissions

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