Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Formula to count TWO conditions are met

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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formula to count TWO conditions are met


Try

=SUMPRODUCT(--(A1:A10="A Nother"),--(B1:B10="Sickness Day"))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=574199

  #3   Report Post  
Posted to microsoft.public.excel.misc
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.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
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"))

You can replace literals with cells containing your values. Note SUMPRODUCT
cannot use whole columns i.e A:A is not allowed.

HTH

"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.

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
how do i use a formula count of figures between to conditions aarif Excel Worksheet Functions 2 February 27th 06 07:39 AM
Count using 2 conditions, one of which being a "less than or equal to" - URGENT SamGB Excel Discussion (Misc queries) 2 February 15th 06 10:35 AM
COUNT using multiple conditions SamGB Excel Discussion (Misc queries) 2 February 9th 06 10:12 PM
Count If Formula Denise Excel Discussion (Misc queries) 2 October 14th 05 06:44 PM
Formula format for Count or Countif funtion with two criterias Debi Excel Worksheet Functions 2 September 26th 05 08:23 PM


All times are GMT +1. The time now is 03:16 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"