Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Dear Excel Expert,
I am trying to figure out a formula for a prison length. I have a set sentence length which is a number of months (format 00.0), for example, 5 months. I want to give the prisoner a credit of 5 days a month (.1645/day). If I multiply 5 months x 5 days, the prisoner will get 25 days credit. This is not correct, because the prisoner is released after 5 months with no credit. The credited time has to be calculated so that he is released before 5 months. I don't know how to get the number of months to calculate the 5 day credit for this - DO YOU? THANK YOU!!!!!! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
With your start date in A1
=TEXT(EDATE(A1,5)-(5*5),"mm/dd/yyyy") if you want to use a cell reference when you put the number of months, assume B1 =TEXT(EDATE(A1,B1)-(B1*5),"mm/dd/yyyy") -- Regards, Peo Sjoblom "Mary" wrote in message ... Dear Excel Expert, I am trying to figure out a formula for a prison length. I have a set sentence length which is a number of months (format 00.0), for example, 5 months. I want to give the prisoner a credit of 5 days a month (.1645/day). If I multiply 5 months x 5 days, the prisoner will get 25 days credit. This is not correct, because the prisoner is released after 5 months with no credit. The credited time has to be calculated so that he is released before 5 months. I don't know how to get the number of months to calculate the 5 day credit for this - DO YOU? THANK YOU!!!!!! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you very much, but I don't have any dates, just a spreadsheet with
months and days. I am trying to figure out how many prisoner days I can save with implementing a monthly jail credit. I have a frequency table of the number of prisoners for respective months of sentence length. "Peo Sjoblom" wrote: With your start date in A1 =TEXT(EDATE(A1,5)-(5*5),"mm/dd/yyyy") if you want to use a cell reference when you put the number of months, assume B1 =TEXT(EDATE(A1,B1)-(B1*5),"mm/dd/yyyy") -- Regards, Peo Sjoblom "Mary" wrote in message ... Dear Excel Expert, I am trying to figure out a formula for a prison length. I have a set sentence length which is a number of months (format 00.0), for example, 5 months. I want to give the prisoner a credit of 5 days a month (.1645/day). If I multiply 5 months x 5 days, the prisoner will get 25 days credit. This is not correct, because the prisoner is released after 5 months with no credit. The credited time has to be calculated so that he is released before 5 months. I don't know how to get the number of months to calculate the 5 day credit for this - DO YOU? THANK YOU!!!!!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Target cell reference moves when target is cut and pasted | Excel Discussion (Misc queries) | |||
Calculating Time with a number value | Excel Worksheet Functions | |||
Calculating number of workdays | Excel Worksheet Functions | |||
Calculating volume and number. | Excel Worksheet Functions | |||
Text number to number value for calculating | Excel Worksheet Functions |