Split Number Across Cells - Evenly

Agbarker

New Member
Joined
May 17, 2021
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi all

Its stumped me this one,

Column A will have random numbers (4 Cells) - range would be between 1-1000
A1=5
A2 = 5
A3 = 56
A4 = 78

these need to be split out amongst the adjacent cells B1,C1,D1 and E1 evenly and so on for each row.

have attached images before and after

I am using this currently, =MIN(IF(COLUMN()=3,$B40,$B40-SUM($C40:OFFSET(C40,0,-1))), ROUNDUP($B40/(SUMPRODUCT(NOT($36:$36=0)*1)-2),0))

however its not splitting the numbers out quite how would want.

for example this is what i get

5 split out = 2 / 2 / 1 / 0

what I would like is

5 split out = 2 / 1 / 1 / 1

if that makes sense.

any help would be appreciated.
 

Attachments

  • before.JPG
    before.JPG
    17.8 KB · Views: 48
  • after.JPG
    after.JPG
    17.8 KB · Views: 48

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Mr Excel Playground 3.xlsm
ABCDE
141111
252111
35614141414
47821191919
Sheet28
Cell Formulas
RangeFormula
B1:B4B1=A1-SUM(C1:E1)
C1:E4C1=INT($A1/4)


The way you had 78 split up doesn't seem quite right to me.
 
Upvote 0
If you want a single formula solution, then put this formula in cell B1 and copy it across to cell E1, then copy the range B1:E1 down to the bottom of your data...

=INT($A1/4)+MAX(0,MOD($A1,4)>=COLUMNS($B1:B1))
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,784
Members
449,049
Latest member
greyangel23

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