Apr 05 2020 03:07 AM
I'd like the result to be either the sum of the parts, or, if the parts exceed 100, 100. I've tried multiple variations of IF statements to get there, and tried including MIN/MAX within the IF statement, to no avail.
Col A | Col B | Col C |
CATEGORY | PERCENTAGE | |
A | 24 | |
B | 15 | |
C | 10 | |
D | 8 | |
E | 34 | |
F | 11 | |
SUM | 102 | Result should be actual SUM if less than 100, if more than 100, 100. |
Apr 05 2020 03:16 AM
Apr 05 2020 03:29 AM
Apr 05 2020 03:32 AM
@Sergei Baklan Of course!! My fingers just didn't do what my mind was thinking :)
Apr 05 2020 03:46 AM
Thanks for the quick reply. In my actual file, the MIN statement provided would look like this:
=MIN(100,SUM(D3,D6,D9,D12,D15,D18)). But the result is still 112%, when I want to limit it to 100%. If I use MAX instead, the result is 10000% Using MAX and adding /100 of the formula gets the result desired, but don't believe that's the right way to go about it.
Apr 05 2020 04:01 AM
@Sergei Baklan and @Riny_van_Eekelen
A slight change to the MIN statement provided solved the problem. Instead of using
=MIN(100,SUM(D3,D6,D9,D12,D15,D18)), the cell range in my actual file, changing the 100 to 1 did the trick. So the properly constructed, working formula is now =MIN(1,SUM(D3,D6,D9,D12,D15,D18)), which caps the percentage at 100% or returns the actual summed result that is less than 100%.
Many thanks!
Apr 05 2020 04:01 AM
Your values are in %. Replace the 100 with 1.