View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.programming
Darren Darren is offline
external usenet poster
 
Posts: 137
Default Equal list values.

Hi Helmut, yes your assumption is right. I want 2 teams of equal numbers with
appoximately the same totals. Doing it highs and lows as you suggested gives
more or less the same result as the suggestion by Jacob. The only change
being a few names and a greater difference between the 2 totals. But I still
have to do it manually.

I was looking for a way to somehow sum up the total of colB divide it by 2
then sort through the values in colB so that they equal (or come close to)
half of the colB total referencing the name also.

Is there a code that could be written to do this type of calculation?

"Helmut Meukel" wrote:

Darren,

reading your OP and replies, I assume the number of team members
should be equal too. Yes?

If you have an even total number of team members it's easy:
Sort the list, then put the highest and the lowest into group A
and the second highest and the second lowest into group B
Repeat this until the not jet assigned is <4. If there are 2 unassigned,
sum up both groups and assign accordingly.

Helmut.


"Darren" schrieb im Newsbeitrag
...
Sorry for so many replies. What I can't do is generate the lists manually.
Straight away I'd be accused of 'team fixing'. I need the teams to be as
equal as possible but randomly generated. That way, if there's a query, I can
show that I had no input in the lists.

"Darren" wrote:

Doing it as I presume you mean I have 2 totals. The values are 52,898 and
52,488. As you can see there is a considerable difference between the 2. I
want them to be as close as possible to eachother.

"Darren" wrote:

Thanks for the reply Jacob. The problem I have is that the actual list is
over 200 names. The sort bit I can do (highest to lowest). When you say
assign subsequent rows, do you mean manually drag every other name and
number
to 2 new column sets? I was really hoping for something that would do this
for me. The list of names isn't constant. it changes from month to month,
as
do the values of column B

"Jacob Skaria" wrote:

Sort the list by ColB and assign subsequent rows to each set.

--
Jacob (MVP - Excel)


"Darren" wrote:

I have a list of names in column A with numerical values in column B

Example:
A B
Alan 1234
Darren 2433
Tammi 2055
Carol 1999
Rose 2001
Reese 2411

Is it possible to equally split the list into 2 columns so that the
number
totals (B) are the same (or as near as)?



.