I would like to sum Total Value Column conditioned by Selection.
- If Selection is Yes sum all yes's in Total Value
- If Selection is No find highest No value in Total Value
- Add Yes sum and No (single max value) together
Illustrated:
<table><tbody><tr><th>Selection</th><th>Total Value</th></tr><tr><td>No</td><td>17.80</td></tr><tr><td>Yes</td><td>5.00</td></tr><tr><td>Yes</td><td>2.50</td></tr><tr><td>Yes</td><td>2.50</td></tr><tr><td>Yes</td><td>5.00</td></tr><tr><td>Yes</td><td>5.00</td></tr><tr><td>Yes</td><td>5.00</td></tr><tr><td>Yes</td><td>1.50</td></tr><tr><td>No</td><td>16.60</td></tr></tbody></table>
- Yes's sum = 26.50
- No = 17.80
- Total Value = 44.30
solution needs to be native google sheet formula, i.e. sumifs(), if(), etc.
Thank You.