Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Count # of Occurences

Question:

A B
Apple Orange
Apple Pear
Apple Orange

I will like a formula to count the number of occurrences if column A=Apple
AND column B=Orange.

Please help. Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Count # of Occurences

Sweepea

How about

=SUMPRODUCT(--($A$1:$A$3="Apple"),--($B$1:$B$3="Orange"))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Sweepea" wrote in message
...
Question:

A B
Apple Orange
Apple Pear
Apple Orange

I will like a formula to count the number of occurrences if column A=Apple
AND column B=Orange.

Please help. Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count # of Occurences

Try this:

=SUMPRODUCT(--(A1:A10="apple"),--(B1:B10="orange"))

Or ,use cells to hold the criteria:

D1 = apple
E1 = orange

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10=E1))

Biff

"Sweepea" wrote in message
...
Question:

A B
Apple Orange
Apple Pear
Apple Orange

I will like a formula to count the number of occurrences if column A=Apple
AND column B=Orange.

Please help. Thank you.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Count # of Occurences

Hi Nick,

It didn't count. It returned zero.

Any thoughts?

"Nick Hodge" wrote:

Sweepea

How about

=SUMPRODUCT(--($A$1:$A$3="Apple"),--($B$1:$B$3="Orange"))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Sweepea" wrote in message
...
Question:

A B
Apple Orange
Apple Pear
Apple Orange

I will like a formula to count the number of occurrences if column A=Apple
AND column B=Orange.

Please help. Thank you.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Count # of Occurences

Did you change the references to suit your actual ones?

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Sweepea" wrote in message
...
Hi Nick,

It didn't count. It returned zero.

Any thoughts?

"Nick Hodge" wrote:

Sweepea

How about

=SUMPRODUCT(--($A$1:$A$3="Apple"),--($B$1:$B$3="Orange"))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Sweepea" wrote in message
...
Question:

A B
Apple Orange
Apple Pear
Apple Orange

I will like a formula to count the number of occurrences if column
A=Apple
AND column B=Orange.

Please help. Thank you.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Count # of Occurences

It works now. Thank you very much!!



"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A1:A10="apple"),--(B1:B10="orange"))

Or ,use cells to hold the criteria:

D1 = apple
E1 = orange

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10=E1))

Biff

"Sweepea" wrote in message
...
Question:

A B
Apple Orange
Apple Pear
Apple Orange

I will like a formula to count the number of occurrences if column A=Apple
AND column B=Orange.

Please help. Thank you.




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count # of Occurences

You're welcome. Thanks for the feedback!

Biff

"Sweepea" wrote in message
...
It works now. Thank you very much!!



"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A1:A10="apple"),--(B1:B10="orange"))

Or ,use cells to hold the criteria:

D1 = apple
E1 = orange

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10=E1))

Biff

"Sweepea" wrote in message
...
Question:

A B
Apple Orange
Apple Pear
Apple Orange

I will like a formula to count the number of occurrences if column
A=Apple
AND column B=Orange.

Please help. Thank you.






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 occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Count consecutive dates only [email protected] Excel Discussion (Misc queries) 0 May 4th 06 03:58 PM
Table to pick out most common entries and count occurences of each Neil Goldwasser Excel Worksheet Functions 4 August 6th 05 09:57 AM
Count number of occurences in 1 column only if something in anothe Wenster Excel Worksheet Functions 2 February 7th 05 09:58 PM
Count occurences between dates DJ Dusty Excel Worksheet Functions 3 November 11th 04 12:25 AM


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