dividing contents from Column A and distribute to all columns evenly?

suicidalporcupine

Board Regular
Joined
Apr 1, 2015
Messages
90
If I have a set of numbers on Column A and I want to distribute it to B C and D evenly. but they must be in orders?
Column AColumn BCD
504504604704
505505605705
506506606802
604
605
606
704
705
802

<tbody>
</tbody>
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
suicidalporcupine,

Always 9 numbers in A or more?

If more then multiples of 3 ?

Numbers in A are always in ascending order?
 
Upvote 0
suicidalporcupine,

Always 9 numbers in A or more?

If more then multiples of 3 ?

Numbers in A are always in ascending order?

Context: These are Room list for the hotel I work at and I need to assign rooms to each housekeeper.

the number varies.. so example if it's 10. It's okay if it looks like 4,3,3 or 4,4,2 sometimes the list will only contain 4. so it can be 2,1,1.

thank you in advance. appreciate any advice

and yes the number is always ascending the last number is 1002. (10th floor)
 
Last edited:
Upvote 0
Try this:-
Actual Data Start "A2", Results Start "B2".
Code:
[COLOR="Navy"]Sub[/COLOR] MG14May39
[COLOR="Navy"]Dim[/COLOR] Rng [COLOR="Navy"]As[/COLOR] Range, Dn [COLOR="Navy"]As[/COLOR] Range, Rws [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]Long,[/COLOR] R [COLOR="Navy"]As[/COLOR] Variant, Ac [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]Long,[/COLOR] c [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]Long[/COLOR]
[COLOR="Navy"]Set[/COLOR] Rng = Range(Range("A2"), Range("A" & Rows.Count).End(xlUp))
Rws = IIf(Rng.Count / 3 = Int(Rng.Count / 3), Rng.Count / 3, Int(Rng.Count / 3 + 1))
Rng.Offset(, 1).Resize(, 3).ClearContents


[COLOR="Navy"]Select[/COLOR] [COLOR="Navy"]Case[/COLOR] Rng.Count Mod 3
    [COLOR="Navy"]Case[/COLOR] 1: R = Array(Rws, Rws - 1, Rws - 1)
    [COLOR="Navy"]Case[/COLOR] 2: R = Array(Rws, Rws, Rws - 1)
    [COLOR="Navy"]Case[/COLOR] 0: R = Array(Rws, Rws, Rws)
[COLOR="Navy"]End[/COLOR] Select


[COLOR="Navy"]For[/COLOR] Ac = 0 To 2
    Cells(2, Ac + 2).Resize(R(Ac)).Value = Rng(1).Offset(c).Resize(R(Ac)).Value
    c = c + R(Ac)
[COLOR="Navy"]Next[/COLOR] Ac
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Regards Mick
 
Upvote 0
I'm sorry, I don't understand your sheet, perhaps some more explanation and an before and after example. !!!
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,215
Members
448,554
Latest member
Gleisner2

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