Formula to divide evenly

macroos

New Member
Joined
May 30, 2018
Messages
45
Hi,

I need a formula in column C to divide the number in C9 by the count of numbers in column B.
There are 6 cells with numbers in column B, so it would be 41/6.
I only want the result to be two decimal numbers and it has to equal the number in C9.
Since 41 cannot be divided evenly, some numbers in column C will be 6.83 and the rest 6.84.
What is a formula that can do this?

Right now, I have =IF(C1<>"",C9/COUNT(C1:C7),"")
Cell in column C will be blank if column B does not have a number.

Thank you in advance.

ABC
1No 1 17.506.83
2No 2
3No 316.006.83
4No 410.006.83
5No 53.506.83
6No 655.006.84
7No 710.006.84
8
9Other Charges41

<tbody>
</tbody>
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Try this formula in cell: C1

and copy it down to cell: C7

=IF($B1="","",IF(ROUNDDOWN($C$9/COUNT($B$1:$B$7),2)*COUNT($B$1:$B$7)=$C$9,ROUNDDOWN($C$9/COUNT($B$1:$B$7),2),IF((ROUNDDOWN($C$9/COUNT($B$1:$B$7),2)*COUNT($B$1:$B1))+ ROUNDUP($C$9/COUNT($B$1:$B$7),2)*(COUNT($B$1:$B$7)-COUNT($B$1:$B1))>=$C$9,ROUNDDOWN($C$9/COUNT($B$1:$B$7),2),ROUNDUP($C$9/COUNT($B$1:$B$7),2))))

Merry Christmas!
 
Upvote 0
Or you could try:

=IF(B1="","",FLOOR(C$9/COUNT(B$1:B$7),0.01)+0.01*(COUNT(B1:B$7)<=ROUND(MOD(C$9*100,COUNT(B$1:B$7)),2)))
 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

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