BiocideJ
Well-known Member
- Joined
- Jan 23, 2012
- Messages
- 1,734
Formulas look good to me with one exception that you may or may not care about. If you enter Number of Cuts = 0 (i.e. the original cube) the results are incorrect. These formulas correct that (if you care about case 0)
Editted cells are B7:B11 (using MIN) which basically just makes sure that your resultant counts for each query cannot be larger than the total number of cubes you have.
Excel 2007 | ||||
---|---|---|---|---|
A | B | |||
1 | CUBE QUIT | |||
2 | No of cuts | 0 | ||
3 | No of segments | 1 | ||
4 | Total resulting cubes | 1 | ||
5 | ||||
6 | Atleast 2 different colours | 1 | ||
7 | Exactly 2 different colours | 0 | ||
8 | Exactly 2 specific colours | 0 | ||
9 | Atleast 3 different colours | 1 | ||
10 | Only one face painted | 0 | ||
11 | No paint at all | 0 | ||
12 | Total Nos of Squares | 6 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B3 | =B2+1 | |
B4 | =B3^3 | |
B6 | =B4-B10-B11 | |
B7 | =(B3-MIN(B4,2))*8 | |
B8 | =(B3-MIN(B4,2))*4 | |
B9 | =MIN(B4,8) | |
B10 | =(B3-MIN(B4,2))^2*6 | |
B11 | =(B3-MIN(B4,2))^3 | |
B12 | =SUMPRODUCT(ROW(INDIRECT("$A$1:$A$" & B3))^2)*6 |
Editted cells are B7:B11 (using MIN) which basically just makes sure that your resultant counts for each query cannot be larger than the total number of cubes you have.
Last edited: