View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Sloth Sloth is offline
external usenet poster
 
Posts: 252
Default Formula to count TWO conditions are met

=SUMPRODUCT(--(A1:A100="A Nother");--(B1:B100="Sickness Day")

=SUMPRODUCT(--(A1:A100="Joe Bloggs");--(B1:B100="Late for work")

should work for you. You'll find SUMPRODUCT used a lot for this type of
conditional counting and summing.

"IoHeFy" wrote:

I am relatively new to formulas with Excel. I have used 'COUNTIF' to count
how often a coloumn contains a certain line of text. However I want a formula
which will do the following (with a made up example);
Coloumn A is a pick-list of names - e.g. A Nother, J Bloggs etc
Coloumn B is a pick-list of queries - e.g. Late for Work, Sickness Day etc
I need to create a formula that would count how often the combination of 'A
Nother' & 'Sickness Day' was used, and another for how often the combination
of 'Joe Bloggs' and 'Late for work' was also used. This is for use in a table
& chart.

Many thanks.