Hello,
Have not seen this posted before so I hope it is not a stupid question.
If I have a column with numbers and I wanted to return the sum of combinations of every 2 numbers I can do the following:
Of course these have duplicates off either side of the diagonal- I would just ignore one side and can analyze the other (haven't figured out a way to return only unique values in the table).
But what if I wanted to take it a step further and return the sums for every unique combination of sets of three numbers instead? I can't figure out how to do this in excel except manually which is very time consuming and prone to mistakes. Is this possible? This is just an example but my actual dataset would be about 150 numbers and I need to add them up in 3s or even 4s or 5s. Is there a general formula I can use to do this?
Thanks for any help/ ideas- appreciated as usual!!
Have not seen this posted before so I hope it is not a stupid question.
If I have a column with numbers and I wanted to return the sum of combinations of every 2 numbers I can do the following:
Book1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
3 | 11977 | 6562 | 1679 | 6642 | 6623 | 3953 | 5755 | |||
4 | 11977 | 23954 | 18539 | 13656 | 18619 | 18600 | 15930 | 17732 | ||
5 | 6562 | 18539 | 13124 | 8241 | 13204 | 13185 | 10515 | 12317 | ||
6 | 1679 | 13656 | 8241 | 3358 | 8321 | 8302 | 5632 | 7434 | ||
7 | 6642 | 18619 | 13204 | 8321 | 13284 | 13265 | 10595 | 12397 | ||
8 | 6623 | 18600 | 13185 | 8302 | 13265 | 13246 | 10576 | 12378 | ||
9 | 3953 | 15930 | 10515 | 5632 | 10595 | 10576 | 7906 | 9708 | ||
10 | 5755 | 17732 | 12317 | 7434 | 12397 | 12378 | 9708 | 11510 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B4:H10 | B4 | =$A$4:$A$10+TRANSPOSE($A$4:$A$10) |
Dynamic array formulas. |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
B7:AT8,B9:K15,R9:AT15,M16:Q22,F46:AT46,AK16:AT45,B4:L6,R4:AT6,M47:AT48 | Cell Value | =$A$2 | text | NO |
B7:AT8,B9:K15,R9:AT15,M16:Q22,F46:AT46,AK16:AT45,B4:L6,R4:AT6,M47:AT48 | Cell Value | duplicates | text | NO |
Of course these have duplicates off either side of the diagonal- I would just ignore one side and can analyze the other (haven't figured out a way to return only unique values in the table).
But what if I wanted to take it a step further and return the sums for every unique combination of sets of three numbers instead? I can't figure out how to do this in excel except manually which is very time consuming and prone to mistakes. Is this possible? This is just an example but my actual dataset would be about 150 numbers and I need to add them up in 3s or even 4s or 5s. Is there a general formula I can use to do this?
Thanks for any help/ ideas- appreciated as usual!!