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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
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,224,828
Messages
6,181,201
Members
453,022
Latest member
RobertV1609

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