Formula to convert fraction of year to months

Seph

New Member
Joined
Jan 28, 2012
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
I work in a prison. Inmates can apply for pre-release when they have half their minimum sentence served. For example 2 years 6 months. They would have to serve 1 year 3 months. I use this formula =DATE(YEAR(A1)-A5,MONTH(A1)-B5,DAY(A1)-B6) where A1 is half the years, B5 is half the months, and B6 is half the days. The problem is when an inmate is sentenced to a minimum of 3 years and 3 months. The latter formula will not calculate 1.5 years or 1.5 months. It rounds up. What I would like to do is covert the 1.5 years to months and the 1.5 months to days.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
What is in cell A1? Their term? Is it a proper Excel date? (if you go to format that cell, what does it say it's formatted as?)
 
Upvote 0
A1 is their minimum date such as 1/28/2015. If I could figure out how many months then I could just use =DATE(YEAR(A1),MONTH(A1)-B5,DAY(A1)) where the -B5 would be the months.
 
Last edited:
Upvote 0
Then we also need to know when the sentence started being served.
With those two bits of data, as long as all dates are proper Excel dates, then halve the difference and add to the start date:
Excel Workbook
AB
1Jan 28 2015minimum term release date
2
3Jan 28 2012Sentence start
4
5Jul 29 2013Pre-release application date
Sheet
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,013
Members
448,935
Latest member
ijat

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