Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How can I count the results ???

ok the excel loks like this

A1 A2
Sue Apples
Chris Apples
John Pears
Sue Apples
Chris Apples

How do I write a formula to give me the answer to how many Apples has Sue
got ??

The answer is two but what is the formula ???????

Any help would be welcome
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default How can I count the results ???

With

Your posted data in cells A1:B5

Try this:
D1: Sue
E1: Apples
This formula returns the count of Sue/Apples combinations
F1: =SUMPRODUCT((A1:A5=D1)*(B1:B5=E1))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Mark Allen" wrote:

ok the excel loks like this

A1 A2
Sue Apples
Chris Apples
John Pears
Sue Apples
Chris Apples

How do I write a formula to give me the answer to how many Apples has Sue
got ??

The answer is two but what is the formula ???????

Any help would be welcome

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default How can I count the results ???

Spot on thanks.....

I had been trying that but I was using the whole column...

"Ron Coderre" wrote:

With

Your posted data in cells A1:B5

Try this:
D1: Sue
E1: Apples
This formula returns the count of Sue/Apples combinations
F1: =SUMPRODUCT((A1:A5=D1)*(B1:B5=E1))

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Mark Allen" wrote:

ok the excel loks like this

A1 A2
Sue Apples
Chris Apples
John Pears
Sue Apples
Chris Apples

How do I write a formula to give me the answer to how many Apples has Sue
got ??

The answer is two but what is the formula ???????

Any help would be welcome

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default How can I count the results ???

try this..
=SUM((A1:A5=C1)*(B1:B5=D1)) and hit control-shift-enter

see also help files on Arrays...

"Mark Allen" wrote:

ok the excel loks like this

A1 A2
Sue Apples
Chris Apples
John Pears
Sue Apples
Chris Apples

How do I write a formula to give me the answer to how many Apples has Sue
got ??

The answer is two but what is the formula ???????

Any help would be welcome



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
count occurence and present results Hobbes2006 Excel Worksheet Functions 2 August 7th 06 09:42 PM
Count consecutive dates only [email protected] Excel Discussion (Misc queries) 0 May 4th 06 03:58 PM
Inconsistent Array Count results Suzanne Excel Worksheet Functions 5 April 6th 06 05:02 PM
Pivot - need to recount based on results Kreed Excel Worksheet Functions 2 October 19th 05 08:51 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM


All times are GMT +1. The time now is 10:10 PM.

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"