rashid67

New Member
Joined
Oct 22, 2013
Messages
14
I want take Pivot table total and divide it by count of days in the month and spread amount across by date. Here is example

# of days count = 10 *** # of days count will change each week so the formula should adjust accordingly
Amount = 5000 **** $50,000/10 should be spread only up to Apr 10 in this example, onward it should zero

4/01/184/02/184/03/184/04/184/05/184/06/184/07/184/08/184/09/184/10/184/11/184/12/184/13/184/14/184/15/18
500050005000500050005000500050005000500000000

Thanks,
Rashid
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Assuming your data looks something like this:
50000 4/1/20184/2/20184/3/20184/4/20184/5/20184/6/20184/7/20184/8/20184/9/20184/10/20184/11/20184/12/2018
4/10/2018 500050005000500050005000500050005000500000

<colgroup><col><col span="10"><col span="3"></colgroup><tbody>
</tbody>

you can do this in cell C2 and copy across.

=IF(C1<=$A$2,$A$1/DAY($A$2),0)
 
Upvote 0

Forum statistics

Threads
1,215,004
Messages
6,122,659
Members
449,091
Latest member
peppernaut

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