Sum max of 2 rows from a column range with a condition

Abhi1qw1

New Member
Joined
Apr 17, 2023
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I have a table with 3 columns and 5 rows . Col A has "Y" and "N"; Col B and C has values.
Requirement: For each row, When Col A is "Y", i need to consider max of col B and C. I need a single formula to sum the entire range with this condition. In this case, I would need the sum as 15.


Col ACol BCol C
N
1​
5​
Y
2​
6​
N
3​
7​
Y
4​
8​
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I have a table with 3 columns and 5 rows . Col A has "Y" and "N"; Col B and C has values.
Requirement: For each row, When Col A is "Y", i need to consider max of col B and C. I need a single formula to sum the entire range with this condition. In this case, I would need the sum as 15.


Col ACol BCol C
N
1​
5​
Y
2​
6​
N
3​
7​
Y
4​
8​
*Sum as 14
 
Upvote 0
Could you please help me to understand the logic behind this formula?
the formula took 2 sums,
- sum from column C, if column A is Y
- sum from column B, if column A is Y

and the IF formula being applied to compare if the result sum from column C is higher than column B, if is higher, the value will show the sum from column C, if otherwise, column B will be shown.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top