Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
els els is offline
external usenet poster
 
Posts: 7
Default Formula for counting more than one criteria

There is probably a straightforward answer to this but if someone could offer
assistance that would be great.

I am looking to create a formula which would show me how many times 2
entries appear in the same row of a spreadsheet e.g.

Column A Column B Column C
Rod Jan Monday
Jane Dec Friday
Freddy Feb Monday
Jane Mar Tuesday
Peter Oct Friday
Jane May Friday

In the above example I would like a formula to show me how many times both
Jane AND Friday appear together. The result I would be looking for would be 2.

Any help would be greatly appreciated
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Formula for counting more than one criteria

=sumproduct(--(a1:a10="Jane"),--(c1:c10="Friday"))

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

====
If you're using xl2007, you should look at excel's help for =countifs().

Els wrote:

There is probably a straightforward answer to this but if someone could offer
assistance that would be great.

I am looking to create a formula which would show me how many times 2
entries appear in the same row of a spreadsheet e.g.

Column A Column B Column C
Rod Jan Monday
Jane Dec Friday
Freddy Feb Monday
Jane Mar Tuesday
Peter Oct Friday
Jane May Friday

In the above example I would like a formula to show me how many times both
Jane AND Friday appear together. The result I would be looking for would be 2.

Any help would be greatly appreciated


--

Dave Peterson
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
counting Criteria Hemant Excel Discussion (Misc queries) 3 May 22nd 06 03:51 PM
Counting by multiple criteria Risky Dave Excel Worksheet Functions 4 September 28th 05 01:29 PM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Saleem Excel Worksheet Functions 1 January 12th 05 10:54 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Arain Excel Worksheet Functions 1 January 12th 05 08:33 AM
2 Criteria Counting PGiessler Excel Worksheet Functions 2 January 10th 05 07:27 PM


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