Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default sum product sum if conditional HELP!!!

I want to add up specific rows is a condition is satisfied.
whenever there is a Y in the first table I want to add up the corresponding
values in the 3 tables below
I have tried a sumif sum but that hasn't worked, can anyone please help
me??

A B C D E
1
2 JAN FEB MARCH
3 A Y Y
4
5 COMP A JAN FEB MARCH
6 1 2 3
7
8 COMP B JAN FEB MARCH
9 4 2 6
10
11 COMP C JAN FEB MARCH
12 3 1 1
13
14 = (1+2)+(4+2)+(3+1) <------------ sum I want
15
16 = SUMIF(B3:D3,Y,(B6:D6,B9:D9,B12:D12))

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default sum product sum if conditional HELP!!!

You can't use sumif but can use SUM

=SUM(B6:B12)*(--(B3="Y"))+SUM(C6:C12)*--(C3="Y")+SUM(D6:D12)*--(D3="Y")

"laandmc" wrote:

I want to add up specific rows is a condition is satisfied.
whenever there is a Y in the first table I want to add up the corresponding
values in the 3 tables below
I have tried a sumif sum but that hasn't worked, can anyone please help
me??

A B C D E
1
2 JAN FEB MARCH
3 A Y Y
4
5 COMP A JAN FEB MARCH
6 1 2 3
7
8 COMP B JAN FEB MARCH
9 4 2 6
10
11 COMP C JAN FEB MARCH
12 3 1 1
13
14 = (1+2)+(4+2)+(3+1) <------------ sum I want
15
16 = SUMIF(B3:D3,Y,(B6:D6,B9:D9,B12:D12))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default sum product sum if conditional HELP!!!

Joel,
The double negation is not needed. This is used to convert Boolean
(FALSE/TRUE) to 0/1. Excel makes this conversion whenever a math operation
is performed on a Boolean value. Since you are also multiplying, the double
negation is unnecessary.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Joel" wrote in message
...
You can't use sumif but can use SUM

=SUM(B6:B12)*(--(B3="Y"))+SUM(C6:C12)*--(C3="Y")+SUM(D6:D12)*--(D3="Y")

"laandmc" wrote:

I want to add up specific rows is a condition is satisfied.
whenever there is a Y in the first table I want to add up the
corresponding
values in the 3 tables below
I have tried a sumif sum but that hasn't worked, can anyone please help
me??

A B C D E
1
2 JAN FEB MARCH
3 A Y Y
4
5 COMP A JAN FEB MARCH
6 1 2 3
7
8 COMP B JAN FEB MARCH
9 4 2 6
10
11 COMP C JAN FEB MARCH
12 3 1 1
13
14 = (1+2)+(4+2)+(3+1) <------------ sum I want
15
16 = SUMIF(B3:D3,Y,(B6:D6,B9:D9,B12:D12))



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
Conditional PRODUCT or SUM Kevin H. Excel Worksheet Functions 9 January 5th 09 09:40 AM
Custom function for Sum Product (Conditional Formula) FARAZ QURESHI Excel Discussion (Misc queries) 2 December 27th 07 10:21 AM
Conditional Sum Product Ben010 Excel Discussion (Misc queries) 12 June 15th 06 06:23 PM
SUM Product storm warden Excel Worksheet Functions 2 June 6th 06 07:09 AM
Sum Product HJ Excel Worksheet Functions 4 October 27th 05 11:32 PM


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