Count If value falls with in a range


I'm trying to count, in a range of cells (A1 : A2500), how many fall between certain values, such as between 0 and 1000; 1001 & 5000; 5001 & 6000.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Open in new window

First one counts 0 - 1000, second one 1001-5000, etc
LadkissonAuthor Commented:
I think I came up with the same solution:):)


my next question is how do I sum up values based on this split? So I need to know a total for  values that fall under each category
barry houdiniCommented:
If you are using Excel 2007 or later then COUNTIFS is usually faster, e.g.


and then to sum those you can use SUMIFS


regards, barry

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
For that, you need to define the bands

Say 0 - 1000 is called "1"
next bracket is called "2"
Next is called "3"

Now on B1, enter this


Drag it down. Then you can do pivot table or do sumif.


would sum all the 1st band/bracket


would sum all the 2nd band/bracket
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.