Hi! I would be very grateful if you could help me in following. I need a formula prorating certain amount depending on calendar days (only 30 days, but not 28,29 or 31). And Return me blank cell in case if there is no date at all, following formulas don't work
C2=(DATE(YEAR(B2),MONTH(B2)+1,0)-B2+1)/DAY(DATE(YEAR(B2),MONTH(B2)+1,0))*A2
C2=A2*(DAY(EOMONTH(B2,0))-DAY(B2)+1)/DAY(EOMONTH(B2,0))
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Amount[/TD]
[TD]Start date[/TD]
[TD]ProRate Amt[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]4.41[/TD]
[TD]09/01/2016
[/TD]
[TD]4.41[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]4.41[/TD]
[TD] -[/TD]
[TD] -[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]4.41[/TD]
[TD]09/06/2016[/TD]
[TD]3.68[/TD]
[/TR]
</tbody>[/TABLE]
C2=(DATE(YEAR(B2),MONTH(B2)+1,0)-B2+1)/DAY(DATE(YEAR(B2),MONTH(B2)+1,0))*A2
C2=A2*(DAY(EOMONTH(B2,0))-DAY(B2)+1)/DAY(EOMONTH(B2,0))
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Amount[/TD]
[TD]Start date[/TD]
[TD]ProRate Amt[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]4.41[/TD]
[TD]09/01/2016
[/TD]
[TD]4.41[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]4.41[/TD]
[TD] -[/TD]
[TD] -[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]4.41[/TD]
[TD]09/06/2016[/TD]
[TD]3.68[/TD]
[/TR]
</tbody>[/TABLE]