Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
countif | Excel Worksheet Functions | |||
How do I use a countif function according to two other countif fu. | Excel Worksheet Functions | |||
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") | Excel Discussion (Misc queries) | |||
COUNTIF or not to COUNTIF on a range in another sheet | Excel Worksheet Functions | |||
COUNTIF in one colum then COUNTIF in another...??? | Excel Worksheet Functions |