A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sumif with multiple sum ranges in a sheet



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2010, 12:54 PM posted to microsoft.public.excel.worksheet.functions
MA
external usenet poster
 
Posts: 23
Default Sumif with multiple sum ranges in a sheet

Hi experts,

I need to sum multiple columns in a range which meets a criteria in one of
the columns of the range.

For example
C1 C2 C3
R1 A 10 10
R2 B 4 5
R3 A 2 1

I need to sum columns C2&C3 if value in column C1 is equal to A. In this
case the result should be 23.

thanks





  #2  
Old April 15th, 2010, 01:08 PM posted to microsoft.public.excel.worksheet.functions
Duke Carey
external usenet poster
 
Posts: 1,027
Default Sumif with multiple sum ranges in a sheet

Not thoroughly tested

=SUMPRODUCT(--(A1:A3="A"),B1:B3+C1:C3)


"MA" wrote:

Hi experts,

I need to sum multiple columns in a range which meets a criteria in one of
the columns of the range.

For example
C1 C2 C3
R1 A 10 10
R2 B 4 5
R3 A 2 1

I need to sum columns C2&C3 if value in column C1 is equal to A. In this
case the result should be 23.

thanks





  #3  
Old April 15th, 2010, 01:09 PM posted to microsoft.public.excel.worksheet.functions
John
external usenet poster
 
Posts: 563
Default Sumif with multiple sum ranges in a sheet

Hi MA
Try this =SUMPRODUCT(--(A2:A4="A"),B2:B4+C2:C4)
HTH
John
"MA" wrote in message
...
Hi experts,

I need to sum multiple columns in a range which meets a criteria in one of
the columns of the range.

For example
C1 C2 C3
R1 A 10 10
R2 B 4 5
R3 A 2 1

I need to sum columns C2&C3 if value in column C1 is equal to A. In this
case the result should be 23.

thanks






  #4  
Old April 15th, 2010, 01:20 PM posted to microsoft.public.excel.worksheet.functions
MS-Exl-Learner
external usenet poster
 
Posts: 135
Default Sumif with multiple sum ranges in a sheet

Copy the below formula and paste it in F1 cell.
=SUMIF(C:C,"A",D)+SUMIF(C:C,"A",E:E)
--
Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"MA" wrote:

Hi experts,

I need to sum multiple columns in a range which meets a criteria in one of
the columns of the range.

For example
C1 C2 C3
R1 A 10 10
R2 B 4 5
R3 A 2 1

I need to sum columns C2&C3 if value in column C1 is equal to A. In this
case the result should be 23.

thanks





  #5  
Old April 15th, 2010, 01:40 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Sumif with multiple sum ranges in a sheet

=SUMPRODUCT((A1:A3="A")*B1:C3)


"MA" wrote:

Hi experts,

I need to sum multiple columns in a range which meets a criteria in one of
the columns of the range.

For example
C1 C2 C3
R1 A 10 10
R2 B 4 5
R3 A 2 1

I need to sum columns C2&C3 if value in column C1 is equal to A. In this
case the result should be 23.

thanks





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.