4
2
I have an input row which contains the cells:
- 30
- 30
- 30
- 50
- 50
- 60
- 100
I want to generate all possible combinations of length 3 from this set. So I would want rows containing 3 populated cells and the elements of each row would contain a unique set independent of order. In other words I would not have a 50, 30, 50 and a 30, 50, 50.
I've done this by hand so this may not be perfect but I believe my output should be:
- 30, 30, 30
- 30, 30, 50
- 30, 30, 60
- 30, 30, 100
- 30, 50, 50
- 30, 50, 60
- 30, 50, 100
- 30, 60, 100
- 50, 50, 60
- 50, 50, 100
- 50, 60, 100
I know that I can generate these with VBA, but I'd like to know: Does Excel have any native commands for generating these rows?
Why not 30 30 100? – Raystafarian – 2016-02-04T17:19:31.763
@Raystafarian Stink, and 30, 30, 60, I have edited. – Jonathan Mee – 2016-02-04T17:22:48.000
Isn't 30 30 60 the same as 30 60 30? – Raystafarian – 2016-02-04T17:23:25.063
@Raystafarian Right again, that should have read 30, 60, 60 – Jonathan Mee – 2016-02-04T17:24:57.830
@Raystafarian wah! There is only 1x60. Whatever, I think it's right now. Thanks. – Jonathan Mee – 2016-02-04T17:26:30.930