# determining monthly amounts based on date

#### snoozing

##### New Member
i have a listing of contracts with start & end dates. each contract has a set amount. im trying to create a sheet that would track how much is earned each month based on the dates of the contracts. is this possible with a formula & not vba? below is what im trying to accomplish

 Amount Start End Jan Feb Mar Apr 100,000 1/1/12 4/30/12 25,000 25,000 25,000 25,000 40,000 2/1/12 3/31/12 0 20,000 20,000 0

<TBODY>
</TBODY>

### Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
nevermind, i figured a workaround

thanks!

bah...my workaround didnt work the way i wanted it too

I think I was able to accomplish what you needed by adding a helper row above the months,entering the following formula in cell D3 and dragging it out:

Code:
``[/B]=IF(AND(MONTH(\$B3)<=D\$1,MONTH(\$C3)>=D\$1),\$A3/(MONTH(\$C3)-MONTH(\$B3)+1),0)[B]``

Excel 2007
ABCDEFG
11234
2amountstartendJanFebMarApr
3100,0001/1/20124/30/201225000250002500025000
440,0002/1/20123/31/20122000020000

</tbody>
Sheet1

this works beautifully!!!!

only problem is that my contracts have dates extending beyond a year so now i have manually adjust those

but thanks!

Replies
0
Views
248
Replies
2
Views
329
Replies
3
Views
388
Replies
4
Views
479
Replies
3
Views
302

1,211,696
Messages
6,103,354
Members
447,861
Latest member
LllopezXC

### 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.

### Which adblocker are you using?

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

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