Good Afternoon,
I'm trying to assign values (whole number > 0 but <= 5) to each side of a four-sided polygon (sides a, b, c, d) in which the values add up to the same total, such as 12. However, the polygon must be unique regardless of orientation.
One way I was visualizing this using Excel was to think of each row as a single polygon with Columns A, B, C, D as sides (making up a single array). However, I'm running into two basic problems:
- I am uncertain how to compare these arrays easily. If I use more columns to simulate a single rotation clockwise three additional times (columns E, F, G, H; I, J, K, L; M, N, O, P), I can compare across the four sets, looking for unique values. This seems like a very clunky way to accomplish this, and I haven't gotten in to work.
- Likewise, manually inputting in each value, hoping not to miss one, seems awfully arduous.
For example:
Row 4 is not unique because it is the same as Row 3.
I appreciate any help anyone can offer in finding an easier way to accomplish this task (hopefully without VBA).
I'm trying to assign values (whole number > 0 but <= 5) to each side of a four-sided polygon (sides a, b, c, d) in which the values add up to the same total, such as 12. However, the polygon must be unique regardless of orientation.
One way I was visualizing this using Excel was to think of each row as a single polygon with Columns A, B, C, D as sides (making up a single array). However, I'm running into two basic problems:
- I am uncertain how to compare these arrays easily. If I use more columns to simulate a single rotation clockwise three additional times (columns E, F, G, H; I, J, K, L; M, N, O, P), I can compare across the four sets, looking for unique values. This seems like a very clunky way to accomplish this, and I haven't gotten in to work.
- Likewise, manually inputting in each value, hoping not to miss one, seems awfully arduous.
For example:
A | B | C | D | |
1 | 3 | 3 | 3 | 3 |
2 | 3 | 3 | 2 | 4 |
3 | 3 | 3 | 4 | 2 |
4 | 4 | 2 | 3 | 3 |
I appreciate any help anyone can offer in finding an easier way to accomplish this task (hopefully without VBA).