Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 28
Default count with and formula

Dear all;
I am trying to use countif with and like this.
COUNTIF(A1:A12,and("30","<100"))
I did try it with diffrent condition and even replace and with or but it
just show me answer 0.
is there any other way to use countif with multiple conditions?
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4,393
Default count with and formula

Using COUNTIF:
=COUNTIF(A1:A12,"30")-COUNTIF(A1:A12,"100")
With SUMPRODUCT
=SUMPRODUCT(--(A1:A1230),--(A1:A12<100))
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Satyendra_Haldaur" wrote in
message ...
Dear all;
I am trying to use countif with and like this.
COUNTIF(A1:A12,and("30","<100"))
I did try it with diffrent condition and even replace and with or but it
just show me answer 0.
is there any other way to use countif with multiple conditions?



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 3,346
Default count with and formula

Hi,

If you are using 2007 then

=COUNTIFS(A1:A12,"30",A1:A12,"<100")

Its more flexible to use cell references:

=COUNTIFS(A1:A12,""&C1,A1:A12,"<"&C2)

Where C1 contains 30 and C2 100.


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Satyendra_Haldaur" wrote:

Dear all;
I am trying to use countif with and like this.
COUNTIF(A1:A12,and("30","<100"))
I did try it with diffrent condition and even replace and with or but it
just show me answer 0.
is there any other way to use countif with multiple conditions?

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
Count Formula - Count Ticks LittleAnn Excel Discussion (Misc queries) 3 May 8th 23 07:44 PM
Trying to construct a count count formula Chris K Excel Discussion (Misc queries) 6 May 26th 07 07:20 PM
Need a Count Formula esmer Excel Worksheet Functions 1 March 2nd 06 09:58 PM
need help with count formula.. Dan B Excel Worksheet Functions 1 February 8th 06 05:31 PM
Count formula Vibha Excel Worksheet Functions 2 January 21st 05 05:26 PM


All times are GMT +1. The time now is 05:48 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"