View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Convert hrs into # of yrs/mths/days

With the date in A1 and the number of hours in B1:

=A1-((B1/7)/24)

Days are whole numbers and hours are 1/24th of a day.

Give the cell a date format.





dkuz wrote:

I was not clear in my question.....

What I want to do is subtract hours from todays date to get a new
date:

For example if today is Feb 14, 2006 and someone has worked 12354 hrs,
and they work 7 hours a day......I want to convert every 7 hrs into a
"day" and subtract the "days" from the current date in order to give me
a date that the person started work. Thanks!

--
dkuz
------------------------------------------------------------------------
dkuz's Profile: http://www.excelforum.com/member.php...o&userid=31536
View this thread: http://www.excelforum.com/showthread...hreadid=512279


--

Dave Peterson