Converting a Date into a number consisting of the number of full months and a percentage of the partial month

Austin-L

New Member
Joined
Aug 16, 2013
Messages
9
Hello, the title pretty much says it all! I am trying to convert an excel spreadsheet for income calculation for my boss. She wants me to convert a date format into a number format consisting of the total number of full months year to date, and the percentage of the number of days in the current month divided by the total number of days in the month (rounded up to 2 decimal places). --- For example: 8/16/2013 should read as 7.52 -- 2/5/2013 should read as 1.18 --- 11/11/2013 should read as 10.37. Thank you for your help!
 
I just tested it and it looks like it is working as expected. If I enter 8/1/2013 in box G11, G12 returns 7.03 which is the desired result. If I enter 8/31/2013, G12 returns 8.00 which is also working fine.

Good. Just wanted to be sure that was the behaviour you were expecting.

Matty
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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