Split QTY equally by number of cells(variable) and also round off if uneven.

ziggyfo

New Member
Joined
Mar 24, 2021
Messages
24
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Hi All,

I am after a formula that could help me get the following;

1. Cell "B1" is the source and will be a variable value. This value should be divided by the amount of order numbers and then split equally between the amount of orders (also variable)
2. Cell "C5:C14" must contain an equal amount
3. Cell "C15" must total the same amount as "B1" so I suspect some rounding would be required (see example scenario on the right of the image in "G15"

I don't always know how many orders there will be, but I always need to split the value in B1 equally between all orders and round it up at the bottom total to ensure its an even number and not 6.99 as below (this may occur if the value that's being divided doesn't quite total up to the same due to the decimals)

A:C and E:G are the same thing, I just gave two different examples of how the data might change and look.

4445.JPG


Appreciate any help :)
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
In C5

=if(A5>0,$B$1/COUNT($A$5:$A$14),"")

and copy down

In C15

=ROUND(SUM(C5:C14),0)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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