View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Bernard Liengme Bernard Liengme is offline
external usenet poster
 
Posts: 4,393
Default Countif wildcards & 2 criteria

Assuming the dates are real dates
=SUMPRODUCT(--(MONTH(E3:E276)=1),--(F3:F276="TRUE"))

If the TRUE is a Boolean true (and since it is in caps, it look as if it is)
then we can shorted formula to
=SUMPRODUCT(--(MONTH(E3:E276)=1),--(F3:F276))

For more details on SUMPRODUCT
Bob Phillips http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey http://mcgimpsey.com/excel/formulae/doubleneg.html

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Jeannie" wrote in message
...
Hi,
I've been trying for 2 days to make this formula work. I have a
spreadsheet
that shows the employees that have been hired and the ones that have left
the
company. I need to count how many have arrived for each month.
Column E has the date and Column F has the status (True for arrivals and
False for departures).
I need to have a formula that would combine:
=COUNTIF(E3:E276, "TRUE")
and
=COUNTIF(E3:E276, "2007-01-*") (I'm not sure about the use of the wildcard
in a formula)
Any help would be greatly appreciated
Thanks
Jeanne