COUNTIF function - greater than/smaller than ranges

E

El

I am trying to create a formula that will count the number
of entries in a range, sorted by the following criteria:

<140,000
140000-180000
180001-250000

I have managed to use the COUNTIF function to represent
the first and last columns, but I'm not sure how to enter
the formula so that it can pick up values between the
ranges. Any ideas?

Thanks
Elle
 
A

acw

Elle

Here are a couple of ways. Assume that the raw data is in
the range B9 - B15

1)
=COUNTIF(B9:B15,"<"&140000)
=COUNTIF(B9:B15,">="&140000)-COUNTIF(B9:B15,">"&180000)
=COUNTIF(B9:B15,">="&180001)-COUNTIF(B9:B15,">"&250000)
=COUNTIF(B9:B15,">"&250000)

2)
=SUMPRODUCT((B9:B15<140000)*1)
=SUMPRODUCT((B9:B15>=140000)*(B9:B15<=180000))
=SUMPRODUCT((B9:B15>180000)*(B9:B15<=250000))
=SUMPRODUCT((B9:B15>250000)*1)


Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top