+ Reply to Thread
Results 1 to 2 of 2

Counting numbers in a specified range

  1. #1
    Registered User
    Join Date
    11-09-2006
    Posts
    2

    Counting numbers in a specified range

    I have a list of data that i'd like to organize in a chart that shows how many times a number appears between a specified range. For example, i have a list of 123 prices. I'd like to know how many prices (and what percent) of the list is comprised of these price ranges:

    0-50
    51-100
    101-200
    201-300
    300+

    I can solve this using the countif function for the upper and lower portion of the range and then subtract out the excess from the total, but i was hoping someone would know of a different function that would allow me to do this in a much simpler fashion. Thanks!

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Does this help you. Assumes Range is B2 to B100 and counts if between 51 to 100

    =SUMPRODUCT(--(B2:B100>=51),--(B2:B100<=100))

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1