I can't seem to resolve this issue. I have 76 numbers which range from -7 to 25. There are some duplicates. I am trying to form 19 groups of 4 with as close to the same total as possible. Any help would be greatly appreciated.
I can't seem to resolve this issue. I have 76 numbers which range from -7 to 25. There are some duplicates. I am trying to form 19 groups of 4 with as close to the same total as possible. Any help would be greatly appreciated.
It would help if you attached a sample Excel workbook - the second yellow banner at the top of the screen explains how you can do this.
Hope this helps.
Pete
I hope that I attached it correctly
The following approach gets you somewhere near to what you want, but the totals have a greater spread than in your example. I used columns I onwards, with these formulae in the cells stated:
I2: =INDEX($A:$A,COLUMNS($E:E)+1)
I3: =INDEX($A:$A,40-COLUMNS($E:E))
I4: =INDEX($A:$A,38+COLUMNS($E:E)+1)
I5: =INDEX($A:$A,78-COLUMNS($E:E))
I7: =SUM(I2:I5)
Column I represents Group 1, and you can then copy those formulae to the right, up to and including column AA, to give you the 19 groups. The formulae on row 7 show the totals for each group, varying from 38 to 45, although 9 of them are either 40 or 41 as you requested.
Hope this helps.
Pete
Thank you very much.
You're welcome. If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.
You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).
Pete
Thank you again for your prompt response/help. I was hoping to get another idea/formula that more closely put my groups closer to the average of 40/41. Should I clear this one and create another?
No, stay with this one, and you can certainly leave the thread open for a while in the hope of further replies.
Pete
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks