Percentage of month since start

ExcelFanatic

Board Regular
Joined
May 22, 2009
Messages
83
I am looking for a formula that will calculate the number of days from a start date to the end of the month and divide that by the length of the month to show a percentage.

example: If the Start date was 8/11/2013, then the percentage of the month would be 68% (21 days / 31 days)
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I am looking for a formula that will calculate the number of days from a start date to the end of the month and divide that by the length of the month to show a percentage.

example: If the Start date was 8/11/2013, then the percentage of the month would be 68% (21 days / 31 days)

Its a bit rough, and doesn't take into account leap years, but

=DAY(K25)/IF(OR(MONTH(K25)=4,MONTH(K25)=6,MONTH(K25)=9,MONTH(K25)=11),30,IF(MONTH(K25)=2,28,31))

Remember to format as a percentage
 
Upvote 0
Its a bit rough, and doesn't take into account leap years, but

=DAY(K25)/IF(OR(MONTH(K25)=4,MONTH(K25)=6,MONTH(K25)=9,MONTH(K25)=11),30,IF(MONTH(K25)=2,28,31))

Remember to format as a percentage

oops... you meant from end..
=(IF(OR(MONTH(K25)=4,MONTH(K25)=6,MONTH(K25)=9,MONTH(K25)=11),30,IF(MONTH(K25)=2,28,31))-DAY(K25)-1)/IF(OR(MONTH(K25)=4,MONTH(K25)=6,MONTH(K25)=9,MONTH(K25)=11),30,IF(MONTH(K25)=2,28,31))

note, november has 30 days, so your example calc is slightly off ;)
 
Upvote 0
Maybe try....
Excel Workbook
AB
208/11/20130.7
Sheet2


Hope that helps.
 
Upvote 0
Hi,

Here's another option, Excel will take care of leap years:


Excel 2010
ABCD
1Start DateDoes not include start date64.52%
28/11/2013Includes start date67.74%
Sheet1
Cell Formulas
RangeFormula
D1=(EOMONTH(A2,0)-A2)/DAY(EOMONTH(A2,0))
D2=(EOMONTH(A2,0)-A2+1)/DAY(EOMONTH(A2,0))
 
Last edited:
Upvote 0
Thanks everyone. Your formulas helped me get my formula juices flowing. Since my spreadsheet has the firs day of the month from Aug 2013 - Dec 2017, I wanted to use that date in the calculation. It does exactly what I needed. Here is the formula I came up with:
=(EOMONTH(B$1,0)-IF($A2<B$1,B$1,$A2)+1)/(DAY(DATE(YEAR(B$1),MONTH(B$1)+1,1)-1))

Thanks
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,937
Members
448,534
Latest member
benefuexx

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