tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,907
- Office Version
- 365
- 2019
- Platform
- Windows
I have a row of six numbers: 100, 200, 300, 350, 80, 90.
This sums to 1120.
I would like to find all the combinations that exceed 50% of the total, ie 560.
So the result should be:
Does anybody have some VBA code to achieve this?
Thanks
This sums to 1120.
I would like to find all the combinations that exceed 50% of the total, ie 560.
So the result should be:
100 | 200 | 300 | |||
100 | 200 | 350 | |||
300 | 350 | ||||
100 | 300 | 350 | |||
200 | 300 | 350 | |||
100 | 200 | 300 | 350 | ||
200 | 300 | 80 | |||
100 | 200 | 300 | 80 | ||
200 | 350 | 80 | |||
100 | 200 | 350 | 80 | ||
300 | 350 | 80 | |||
100 | 300 | 350 | 80 | ||
200 | 300 | 350 | 80 | ||
100 | 200 | 300 | 350 | 80 | |
200 | 300 | 90 | |||
100 | 200 | 300 | 90 | ||
200 | 350 | 90 | |||
100 | 200 | 350 | 90 | ||
300 | 350 | 90 | |||
100 | 300 | 350 | 90 | ||
200 | 300 | 350 | 90 | ||
100 | 200 | 300 | 350 | 90 | |
100 | 300 | 80 | 90 | ||
200 | 300 | 80 | 90 | ||
100 | 200 | 300 | 80 | 90 | |
100 | 350 | 80 | 90 | ||
200 | 350 | 80 | 90 | ||
100 | 200 | 350 | 80 | 90 | |
300 | 350 | 80 | 90 | ||
100 | 300 | 350 | 80 | 90 | |
200 | 300 | 350 | 80 | 90 | |
100 | 200 | 300 | 350 | 80 | 90 |
Does anybody have some VBA code to achieve this?
Thanks