Formula to allocate amounts by month

thp510

Board Regular
Joined
Oct 19, 2015
Messages
110
Office Version
  1. 365
Platform
  1. Windows
I have the following sales data for 2016, 2017, and 2018:


Column A
Column B
<strike></strike>
Column C
Column D
<strike></strike>
Column
E
Column F
<strike></strike>
Column G
Column H
<strike></strike>
Column I
Column X
Row 1Opportunity Name
Opportunity Close Date (US date)
Opportunity Subscription Months
Amount
Opportunity RecordJan 16Feb 16Mar 16Apr 16All months all the way until Dec 2018
Row 2
<strike></strike>
Company 1
10/11/16
12
$13000
Subscription
?
?
<strike></strike>
?
?
<strike></strike>
Row 3
<strike></strike>
Company 2
11/5/17
12
$12300
Subscription
<strike></strike>
?
?
<strike></strike>
?
?
<strike></strike>
Row 4
<strike></strike>
Company 2
1/1/18
4
$8900
Pilot
<strike></strike>
?
?
<strike></strike>
?
<strike></strike>
?
<strike></strike>
Row 5
<strike></strike>
Company 3
2/5/16
2
$2000
Pilot
<strike></strike>
?
?
<strike></strike>
?
?
<strike></strike>
Row 6
<strike></strike>
Company 3
10/3/17
7
$3051
Subscription
<strike></strike>
?
?
<strike></strike>
?
?
<strike></strike>
Row
7
Company 5
12/1/16
6
$5605
Pilot
?
<strike></strike>
?
?
<strike></strike>
?

<tbody>
</tbody>

Based on this information, is there some formula or strategy here that I can use to break out how much money each of the companies would pay us by month all the way until Dec 2018? Specifically, is there a simple formula or set of formulas I can use to copy across and down (I have several hundred rows). For example, in column F row 2, it would be $0 since this contract doesn't start until 10/11/16. However, in column G row 5, it would be $1000 ($2000/2 = $1000 p/month). Column H row 5 would also be $1000. Then Column I row 5 would $0.

Thoughts? Advice? Please help! Thanks!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Re: Need help with cacluation (simple formula?)!!

Try

In F2 copy down and across

=IF(AND(F$1 > $B3,F$1 < EDATE($B3,$C3)),ROUND($D3/$C3,0),"")<edate($b2,$c2)),round($d2 $c2,0),"")<="" strong="">

</edate($b2,$c2)),round($d2>
<edate($b2,$c2)),round($d2 $c2,0),"")<="" strong="">Remove the spaces before and after > and < </edate($b2,$c2)),round($d2><edate($b2,$c2)),round($d2 $c2,0),"")<="" strong="">
(inserted to get around a posting issue!)
</edate($b2,$c2)),round($d2>
 
Last edited:
Upvote 0
Re: Need help with cacluation (simple formula?)!!

Try

In F2 copy down and across

=IF(AND(F$1 > $B3,F$1 < EDATE($B3,$C3)),ROUND($D3/$C3,0),"")<edate($b2,$c2)),round($d2 strong="" $c2,0),"")<="">

</edate($b2,$c2)),round($d2>
<edate($b2,$c2)),round($d2 strong="" $c2,0),"")<="">Remove the spaces before and after > and < </edate($b2,$c2)),round($d2><edate($b2,$c2)),round($d2 strong="" $c2,0),"")<="">
(inserted to get around a posting issue!)
</edate($b2,$c2)),round($d2>

Thanks Yongle. However, it seems like it didn't work for me. Here's a quick snapshot of my excel function https://imgur.com/3bn8gyT. Also, is there a reason you suggested that I look at the next row of data in the formula? For example, why would F2 pull from data in the 3rd row in the example function you provided? Thanks again for the help!
 
Upvote 0
Re: Need help with cacluation (simple formula?)!!

Yes I stupidly pasted the formula from row 3 in my worksheet
 
Upvote 0
Re: Need help with cacluation (simple formula?)!!

Let's give you the whole solution

The formula for F2 is
=IF(AND(F$1 > $B2,F$1 < EDATE($B2,$C2)),ROUND($D2/$C2,0),"")

To get it working (I should have told you this previously)
- the values in F1, G1 etc must be input as dates
- enter the date in F1 as 1 Jan 2016
- formula in G1 (and copied across)
=EDATE(F1,1)
- format F1 etc with custom format mmm-yy
 
Last edited:
Upvote 0
Re: Need help with cacluation (simple formula?)!!

Let's give you the whole solution

The formula for F2 is
=IF(AND(F$1 > $B2,F$1 < EDATE($B2,$C2)),ROUND($D2/$C2,0),"")

To get it working (I should have told you this previously)
- the values in F1, G1 etc must be input as dates
- enter the date in F1 as 1 Jan 2016
- formula in G1 (and copied across)
=EDATE(F1,1)
- format F1 etc with custom format mmm-yy

Amazing! Thank you so much!!! The power of this msg board :)
 
Upvote 0

Forum statistics

Threads
1,215,182
Messages
6,123,517
Members
449,102
Latest member
admvlad

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