Countif

M

morlo

I want to use the countif function with a dependance on another cell but it
doesn't seem to want to work.

I have a column with around 40,000 different entries, all of which are
percentages. I want to know how many of each of these lie in particular
bands.

ie how many are in the range 3% to 5%. due to the number of bands i'm
looking at I hoped there was a formula that I could use to link to some
cells., as opposed to doing somehing like
=countif(A:A,"<5%")-countif(A:A,"<3%")

Is this possible?
 
R

Ron Coderre

Try this:

B1: 3%
C1: 5%
D1: =COUNTIF(A:A,"<"&C1)-COUNTIF(A:A,"<"&B1)

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
 
B

bpeltzer

If cell C2 contains your minimum (0.03) and C3 the maximum (0.05),
=COUNTIF(A:A,"<" & C3) - COUNTIF(A:A,"<" & C2)
 

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

Similar Threads

Counif using a range 2
COUNTIF 1
help with moving formula 1
countif for empty values 4
incremenT CountIF Value 2
EASY ONE ! using countIF.. puzzled 4
Easy countif formula 3
Countif with upper and lower case 3

Top