#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default countif

I am trying to count the number of cells in column B="large" when the
condition in column A="week1". I tried the formula below and it counted all
the "week1"s along with the "large". Any Ideas?

=COUNTIF(A3:A12,"week1")+COUNTIF(B3:B12,"large")


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default countif

In case you are using xL2007 check out the function..

=COUNTIFS( Criteriarange1,Criteria1,Criteriarange2,Criteria2, ...)

--
Jacob (MVP - Excel)


"Jim W" wrote:

I am trying to count the number of cells in column B="large" when the
condition in column A="week1". I tried the formula below and it counted all
the "week1"s along with the "large". Any Ideas?

=COUNTIF(A3:A12,"week1")+COUNTIF(B3:B12,"large")


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default countif

Hi Jacob,

You know...

That COUNTIFS in 2007 seems a lot more intuitive than the SUMPRODUCT of
2003.

If you check out HELP for SUMPRODUCT in 2003 it does not even get you near
to the solution I offered for the question posed.

Only exposure to this group did I know this would work, but I can see I
might more readily grasp the 2007 'splaning of COUNTIFS in 2007. (I
think...<bg)

Not ready to upgrade yet, probably wait until 2010 makes a bigger splash.

Regards,
Howard

"Jim W" <Jim wrote in message
...
I am trying to count the number of cells in column B="large" when the
condition in column A="week1". I tried the formula below and it counted
all
the "week1"s along with the "large". Any Ideas?

=COUNTIF(A3:A12,"week1")+COUNTIF(B3:B12,"large")




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 sansk_23 Excel Worksheet Functions 1 November 15th 06 08:55 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 11:11 AM.

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

About Us

"It's about Microsoft Excel"