ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Formula Needed : Sum on Conditions (https://www.excelbanter.com/excel-programming/423041-formula-needed-sum-conditions.html)

K[_2_]

Formula Needed : Sum on Conditions
 
Row A B C…….columns
1 FTB YRT STX
2 USA CAN UAE
3 33 66 33
4 STX FTB YRT
5 UAE USA CAN
6 44 88 69
7 YRT STX FTB
8 CAN UAE USA
9 66 77 88

Hi all, I want smallest formula in cell D1 which should show SUM of
figures which are in Range("A1:C9") (as shown above) after working out
something like this (see below)

=SUM(A1:C9="FTB")+(A1:C9="USA)+(A1:C9)

In other words I want formula to find "FTB" in given range and then if
there is "USA" on row below then sum the figure in row below the
"USA". I hope I was able to explain my question. Please can any
friend can help.

joel

Formula Needed : Sum on Conditions
 
=SUMProduct(--(A1:C7="FTB"),--(A2:C8="USA),(A3:C9))


"K" wrote:

Row A B C€¦€¦.columns
1 FTB YRT STX
2 USA CAN UAE
3 33 66 33
4 STX FTB YRT
5 UAE USA CAN
6 44 88 69
7 YRT STX FTB
8 CAN UAE USA
9 66 77 88

Hi all, I want smallest formula in cell D1 which should show SUM of
figures which are in Range("A1:C9") (as shown above) after working out
something like this (see below)

=SUM(A1:C9="FTB")+(A1:C9="USA)+(A1:C9)

In other words I want formula to find "FTB" in given range and then if
there is "USA" on row below then sum the figure in row below the
"USA". I hope I was able to explain my question. Please can any
friend can help.


K[_2_]

Formula Needed : Sum on Conditions
 
On Jan 27, 3:11*pm, Joel wrote:
=SUMProduct(--(A1:C7="FTB"),--(A2:C8="USA),(A3:C9))



"K" wrote:
Row *A * * * *B * * * *C…….columns
1 * * * FTB * YRT * STX
2 * * * USA * CAN * UAE
3 * * * 33 * * * 66 * * *33
4 * * * STX * FTB * YRT
5 * * * UAE * USA * CAN
6 * * * 44 * * *88 * * * 69
7 * * * YRT * STX * FTB
8 * * * CAN * UAE * USA
9 * * * 66 * * *77 * * * 88


Hi all, *I want smallest formula in cell D1 which should show SUM of
figures which are in Range("A1:C9") (as shown above) after working out
something like this (see below)


*=SUM(A1:C9="FTB")+(A1:C9="USA)+(A1:C9)


In other words I want formula to find "FTB" in given range and then if
there is "USA" on row below then sum the figure in row below the
"USA". *I hope I was able to explain my question. *Please can any
friend can help.- Hide quoted text -


- Show quoted text -


Thanks lot Joel. Its brilliant


All times are GMT +1. The time now is 10:35 PM.

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