Divide money amount randomly by 12

dilbert72

New Member
Joined
Sep 25, 2013
Messages
3
Hello All I need a macro to take a yearly total and divide it by 12 but with a random number for each month.

Thank You

For example
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
your question is not clear. Could you give an example of how the source data looks like as well as the desired result.
 
Upvote 0
In A1:A12, put
Code:
=RAND()

In B1:B12, put
Code:
=A1 / SUM($A$1:$A$12)

Multiply the annual total with the numbers in B1:B12 (which add up to 1, or 100%), and your total is randomly divided over 12 months :)
 
Upvote 0
your question is not clear. Could you give an example of how the source data looks like as well as the desired result.

The data should look like
Advertising $300.00$25.00$20.00$15.00$19.00$27.00$22.00$45.00$27.00$30.00$29.00$18.00$23.00$300.00

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>
Total
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,824
Members
449,470
Latest member
Subhash Chand

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