#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 106
Default Formula problem

I am having problems coming up with a formula
Here is my scenario

If A2:A5 = Apples and B2:B5 = Oranges, then count the number of oranges in
Column B
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Formula problem

=SUMPRODUCT(--(A2:A5="Apples"),--(B2:B5="Oranges"))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Joyce" wrote in message
...
I am having problems coming up with a formula
Here is my scenario

If A2:A5 = Apples and B2:B5 = Oranges, then count the number of oranges in
Column B



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Formula problem

There might be a better way but this one should also work.

=SUMPRODUCT(--(A1:A5="Apples"),--(B1:B5="Oranges")*(B1:B5="Oranges"))


"Joyce" wrote in message
...
I am having problems coming up with a formula
Here is my scenario

If A2:A5 = Apples and B2:B5 = Oranges, then count the number of oranges in
Column B



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
Formula Problem David Excel Discussion (Misc queries) 2 August 17th 07 08:20 PM
Formula problem David Excel Discussion (Misc queries) 3 August 17th 07 11:21 AM
Formula problem Jennnifer Excel Discussion (Misc queries) 5 July 10th 06 09:30 PM
Problem with formula Sundaram Iyer Excel Discussion (Misc queries) 0 June 1st 05 12:49 AM
Need a formula for this problem Trying to excel in life but need help Excel Worksheet Functions 1 January 12th 05 11:05 AM


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

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"