ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumif with multiple sum ranges in a sheet (https://www.excelbanter.com/excel-worksheet-functions/261574-sumif-multiple-sum-ranges-sheet.html)

MA

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






Duke Carey

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






John[_22_]

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







MS-Exl-Learner

Sumif with multiple sum ranges in a sheet
 
Copy the below formula and paste it in F1 cell.
=SUMIF(C:C,"A",D: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






Teethless mama

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







All times are GMT +1. The time now is 03:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com