Equally split column list to a section of people

thedeadzeds

Active Member
Joined
Aug 16, 2011
Messages
442
Office Version
  1. 365
Platform
  1. Windows
Guys, im pretty sure this is not possible but wanted to check. I have a list of vehicles in column A and a list of 4 names in D1:D4 (dave, bob, jim and steve). I was wondering if it is possible to allocate the vehicles equally to the people named in D1:D4 so each person has an equal amount of vans, cars, bus and bikes. The results would be shown in column B. I do realise that it cannot always be an equally split but as close to as possible would be ok. Hope this makes sense. Thanks

Dave
Jim
Steve
Bob

<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>
</tbody>

<tbody>
</tbody>

VehAllocated
van
van
van
van
van
van
Car
Car
Car
Car
Car
Car
Car
Car
Car
Car
Car
bus
bus
bike
bike
bike
bike
bike
bike
bike
bike
bike

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Thanks for this, the test works fine. However, when i apply it to my real data it doesn't seem to like it. I have changed the formula to
Code:
=INDEX(Allocate!$F$2:$F$20,AGGREGATE(15,6,(ROW(Allocate!$F$2:$F$20)-ROW(Allocate!$F$2)+1)/(LEN(Allocate!$F$2:$F$20)>0),1+MOD(COUNTIFS($L$2:$L2,L2)-1,COUNTA(Allocate!$F$2:$F$20))))

Column F also has the formula
Code:
=IF(E3<>0, D3, "")

The results are showing as per table results below with #NUM! errors. Sorry about this


Names table in the 'Allocate' Tab
DEF
1Name 1CountName 2
2Angela R50Angela R
3Bethan M50Bethan M
4Chloe W
5Debi C
6Dominika H
7Donna W
8Joanne S
9Lewis W
10Lorna Y
11Louise B
12Luke
13Nicholas L50Nicholas L
14Nicole F50Nicole F
15Nicole M50Nicole M
16Payam N50Payam N
17Sonia P50Sonia P
18Danielle B50Danielle B
19Spare 150Spare 1
20Spare 250Spare 2

<tbody>
</tbody>


Results

Angela R
Angela R
Bethan M
Angela R
Nicholas L
Nicole F
Nicole M
Angela R
Bethan M
Nicholas L
Nicole F
Payam N
Angela R
Sonia P
Bethan M
Bethan M
Danielle B
Nicholas L
Spare 1
Spare 2
#NUM!
#NUM!
#NUM!
#NUM!
Nicole F
Nicole M

<tbody>
</tbody>
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Column F also has the formula
Code:
=IF(E3<>0, D3, "")

Hi, try changing this part of the formula:

COUNTA(Allocate!$F$2:$F$20)

to...

COUNTIFS(Allocate!$F$2:$F$20,"?*")
 
Last edited:
Upvote 0
Unbelievable, works like a treat. Can't thank you enough its very much appreciated.
Regards
 
Upvote 0

Forum statistics

Threads
1,214,668
Messages
6,120,825
Members
448,990
Latest member
rohitsomani

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top