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

How can i achive the following equation:

=COUNTIF(H:H,"=Peter")*And(J:J="03/2007")
Note that the column J is formatted as mm/yyyy
Regards
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default CountIF..

If column J contains dates formatted as mm/yyyy, you could use:

=sumproduct(--(h1:h99="peter"),--(text(j1:j99,"yyyymm")="200703"))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

Pietro wrote:

How can i achive the following equation:

=COUNTIF(H:H,"=Peter")*And(J:J="03/2007")
Note that the column J is formatted as mm/yyyy
Regards


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default CountIF..

XL2007 only

=COUNTIFS(H:H,"Peter",J:J,"="&DATE(2007,3,1),J:J, "<="&DATE(2007,3,31))


"Pietro" wrote:

How can i achive the following equation:

=COUNTIF(H:H,"=Peter")*And(J:J="03/2007")
Note that the column J is formatted as mm/yyyy
Regards

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 NeedHelpFast Excel Worksheet Functions 1 April 27th 06 04:15 PM
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 07:54 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"