Guild of Project Controls: Compendium | Roles | Assessment | Certifications | Membership

Tips on using this forum..

(1) Explain your problem, don't simply post "This isn't working". What were you doing when you faced the problem? What have you tried to resolve - did you look for a solution using "Search" ? Has it happened just once or several times?

(2) It's also good to get feedback when a solution is found, return to the original post to explain how it was resolved so that more people can also use the results.

Alter of Excel cell

3 replies [Last post]
Hady Shendy, PMP
User offline. Last seen 11 years 38 weeks ago. Offline
Joined: 11 Jun 2006
Posts: 34
Groups: None
Hi All
in excel if I need to custom a cell as a duration value
like if I have a cell for "Period for recovery of investment money" value = 11.16 year
how I convert this figure to year:month:day (i.e. 11y:2m:15d)

Replies

Hady Shendy, PMP
User offline. Last seen 11 years 38 weeks ago. Offline
Joined: 11 Jun 2006
Posts: 34
Groups: None
Many Thanks zhang
keep in tuch
Zhang Haixiang
User offline. Last seen 3 years 29 weeks ago. Offline
Joined: 14 Apr 2005
Posts: 250
Groups: None
you need some formula,
cell A1 = 11.6 then

year: int(a1)
month: int(mod(a1*365,365)/30)
day:: int(mod(a1*365,30))

you can input the following formula in Cell B1

=int(a1)&"y:"&int(mod(a1*365,365)/30)&"m:"&int(mod(a1*365,30))&"d"

But the result is not 100% acurate, as the caculation is based on 365days/year and 30days/month. Only when you have the start date and finish date then you can get the acurate result
Svein Myklebust
User offline. Last seen 15 years 27 weeks ago. Offline
Joined: 27 May 2006
Posts: 25
Why do you need this?

Excels calcualtions on time ar based on days.
Why can’t you just use days?

Svein