Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob
 
Posts: n/a
Default sum with three criteria

I am trying to sum a column if three criteria are met in one column. In
other words if Colum L has an EB, F, and EF then sum these in Column BB.
Here is what I have but this doesn't seem to work. I'm wondering if it is
because the criteria is all in the same column. I have used Sumproduct on
three different columns but not where the criteria is all in the same column.
Can someone help?

=SUMPRODUCT($L51:$L60="FB")*($L51:$L60="EB")*($L51 :$L60="F")*(BB51:BB60)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default sum with three criteria

Two problems I believe. First, sumproduct used this way takes the AND of the
criteria, not the OR. Since you're using the same column and different
values, the AND couldn't be satisfied. Second, you would still need to apply
the -- operation to convert the true/false arrays to values that can be used
by sumproduct.
Since you don't have multiple criteria that need to be simultaneously
satisfied, but rather three distinct criteria, I'd use three sumifs:
=sumif($L51:$L60,"FB",$BB51:$BB60)+sumif($L51:$L60 ,"EB",$BB51:$BB60)+sumif($L51:$L60,"F",$BB51:$BB60 )

"Rob" wrote:

I am trying to sum a column if three criteria are met in one column. In
other words if Colum L has an EB, F, and EF then sum these in Column BB.
Here is what I have but this doesn't seem to work. I'm wondering if it is
because the criteria is all in the same column. I have used Sumproduct on
three different columns but not where the criteria is all in the same column.
Can someone help?

=SUMPRODUCT($L51:$L60="FB")*($L51:$L60="EB")*($L51 :$L60="F")*(BB51:BB60)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default sum with three criteria

=SUMPRODUCT(($L51:$L60={"FB","EB","F"})*(B51:B60))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Rob" wrote in message
...
I am trying to sum a column if three criteria are met in one column. In
other words if Colum L has an EB, F, and EF then sum these in Column BB.
Here is what I have but this doesn't seem to work. I'm wondering if it is
because the criteria is all in the same column. I have used Sumproduct on
three different columns but not where the criteria is all in the same

column.
Can someone help?

=SUMPRODUCT($L51:$L60="FB")*($L51:$L60="EB")*($L51 :$L60="F")*(BB51:BB60)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default sum with three criteria

Sorry, should have been

=SUMPRODUCT(($L51:$L60={"FB","EB","F"})*(BB51:BB60 ))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Rob" wrote in message
...
I am trying to sum a column if three criteria are met in one column. In
other words if Colum L has an EB, F, and EF then sum these in Column BB.
Here is what I have but this doesn't seem to work. I'm wondering if it is
because the criteria is all in the same column. I have used Sumproduct on
three different columns but not where the criteria is all in the same

column.
Can someone help?

=SUMPRODUCT($L51:$L60="FB")*($L51:$L60="EB")*($L51 :$L60="F")*(BB51:BB60)



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default sum with three criteria

Some options:

[1]

=SUM(SUMIF($L51:$L60,{"FB","EB","F"},$BB$51:$BB$60 ))

If the criterion values are all in some range, say, X2:X4...

[2a]

=SUMPRODUCT(--ISNUMBER(MATCH($L51:$L60,{"FB","EB","F"},0)),$BB$5 1:$BB$60)

[2b]

=SUMPRODUCT(SUMIF($L51:$L60,X2:X4,$BB$51:$BB$60))


Rob wrote:
I am trying to sum a column if three criteria are met in one column. In
other words if Colum L has an EB, F, and EF then sum these in Column BB.
Here is what I have but this doesn't seem to work. I'm wondering if it is
because the criteria is all in the same column. I have used Sumproduct on
three different columns but not where the criteria is all in the same column.
Can someone help?

=SUMPRODUCT($L51:$L60="FB")*($L51:$L60="EB")*($L51 :$L60="F")*(BB51:BB60)

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
Returning Results Based on Two Criteria [email protected] Excel Worksheet Functions 7 October 23rd 05 02:53 PM
Find largest alphanumeric value matching alpha criteria in databas Alison Excel Worksheet Functions 7 August 4th 05 06:59 PM
sorting more than 3 keys Brooke Excel Discussion (Misc queries) 3 June 18th 05 04:52 AM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


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