#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Countif

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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Countif

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)

"morlo" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 171
Default Countif

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


"morlo" wrote:

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?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Countif

=COUNTIF(A:A,"<" & 5%)
where the 5% is OUTSIDE the double quotes.
--
Gary''s Student - gsnu200772
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIF Simon Minder Excel Discussion (Misc queries) 3 June 13th 06 09:17 AM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 12:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"