Excel - Как разделить значения 70 элементов поровну на 6 групп - PullRequest
0 голосов
/ 12 июля 2020

Итак, я пытаюсь создать таблицу Excel, чтобы разделить значения 70 элементов на шесть групп.

Для справки, это сделано для того, чтобы равномерно разделить состояние моей бабушки для ее шести детей. У меня ок. 70 предметов и их оценочная стоимость в таблице Excel, но не уверены, как go лучше всего об этом. Я надеялся использовать Solver, но не смог его понять. сбалансировать все значения.

Спасибо!

1 Ответ

1 голос
/ 13 июля 2020

Итак, настройте это на основе сложенного набора значений.

enter image description here

Each sumproduct is held to be <= to the (total value / 6)-10. You may want to reduce this to 5 or 2 etc but the smaller you go the harder it is to solve due to the values of the items.</p>

I have done this for 30 items, there is a limit to the number of variables in the Solver - if you hit that then you might consider pairing items, or manually setting some will help, see below.

You might want to add something for sentimental value - I will leave you to consider that.

As for manually setting some items then you can set those items to one, move them to the top or bottom and remove them from the Solver variable cells - that way they won't get changed, but they still need to be included for the value. If the values are similar then they can be taken out if the differences are ignored by the parties.

So, edited the model, see below. Note that 1 item is not allocated. This could be addressed by changing the constraint controlling cells J9:J38 but it comes down to the difficulty of finding an exact solution and that is also why the 10 can be adjusted...

введите описание изображения здесь

...