Data Split based on dates

Sahitya

New Member
Joined
May 29, 2018
Messages
27
I have to populate the amount based on the value per month in the respective columns (Jan-18, Feb-18) based on the value 'Per Month' only for the duration provided (Start and End).



[TABLE="class: grid, width: 1255"]
<tbody>[TR]
[TD]Start[/TD]
[TD]End[/TD]
[TD]Value[/TD]
[TD]Value[/TD]
[TD]Value[/TD]
[TD][/TD]
[TD][/TD]
[TD]Total Value[/TD]
[TD]Total Months[/TD]
[TD]Per Month[/TD]
[TD][/TD]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Mar-18[/TD]
[TD]Apr-18[/TD]
[TD]May-18[/TD]
[TD]Jun-18[/TD]
[/TR]
[TR]
[TD]5/3/2018[/TD]
[TD]10/6/2020[/TD]
[TD="align: right"]$100,000.00[/TD]
[TD="align: right"]$180,000.00[/TD]
[TD="align: right"]$295,000.00[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]$575,000.00[/TD]
[TD="align: right"]29[/TD]
[TD="align: right"]$19,827.59[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
[Table="width:, class:head"][tr=bgcolor:#E0E0F0][th] [/th][th]
A
[/th][th]
B
[/th][th]
C
[/th][th]
D
[/th][th]
E
[/th][th]
F
[/th][th]
G
[/th][th]
H
[/th][th]
I
[/th][th]
J
[/th][th]
K
[/th][th]
L
[/th][th]
M
[/th][th]
N
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
1
[/td][td]tart[/td][td]End[/td][td]Value[/td][td]Value[/td][td]Value[/td][td]Total Value[/td][td]Total Months[/td][td]Per Month[/td][td]
18-Jan​
[/td][td]
18-Feb​
[/td][td]
18-Mar​
[/td][td]
18-Apr​
[/td][td]
18-May​
[/td][td]
18-Jun​
[/td][/tr]


[tr=bgcolor:#FFFFFF][td=bgcolor:#E0E0F0]
2
[/td][td]
5/3/2018​
[/td][td]
10/6/2020​
[/td][td]
$100,000.00​
[/td][td]
$180,000.00​
[/td][td]
$295,000.00​
[/td][td]
$575,000.00​
[/td][td]
29​
[/td][td]
$19,827.59​
[/td][td][/td][td][/td][td][/td][td][/td][td]
19827.59​
[/td][td]
19827.59​
[/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: Sheet61[/td][/tr][/table]

Formula in cell I2:

=IF(MEDIAN($A2,$B2,EOMONTH(I1,0))-MEDIAN($A2,$B2,I1),$H$2,"")
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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