#1   Report Post  
Posted to microsoft.public.excel.misc
dkuz
 
Posts: n/a
Default Not clear


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 a work day is 7 hours......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=512300

  #2   Report Post  
Posted to microsoft.public.excel.misc
vezerid
 
Posts: n/a
Default Not clear

dkuz

12354 hours is 12354/7 days. If the number is not exactly divisible,
then I believe it should be FLOOR(12354/7,1) days.

It would be simple to just subtract this value from a cell containing
the date

=A1-FLOOR(12354/7,1)

However, you probably need to take into account a 5-day working week
and holidays. In this case you should use:

=WORKDAY(A1, -FLOOR(12354/7,1), D3:D9)

where D3:D9 is a range containing holidays.

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Not clear

Maybe this.............

=TEXT(TODAY()-INT(A1/7),"mmm/dd/yyyy")

Put the number of hours worked in A1


Vaya con Dios,
Chuck, CABGx3



"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 a work day is 7 hours......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=512300


  #4   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Not clear

Well then...

If 12354 is in A1 (your hours)
then in C1 put =INT(A1/7) your "days"
In D1 put =TODAY()

Finally in E1 put:
=DATE(YEAR(D1),MONTH(D1),DAY(D1)-C1) whcih gives your date in the past
4/17/2001
--
Gary's Student


"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 a work day is 7 hours......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=512300


  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Not clear

You have a response at your other thread.

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 a work day is 7 hours......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=512300


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto clear when qualification is met Paul987 Excel Discussion (Misc queries) 1 October 10th 05 01:53 PM
Can't Clear Print Area GeorgeF Excel Discussion (Misc queries) 2 August 5th 05 06:10 PM
CLEAR FIND BUFFER UPON CLOSING Chris in NH Excel Worksheet Functions 0 July 6th 05 06:39 PM
How do I clear data in selected cells automatically Jim Train Excel Discussion (Misc queries) 1 May 25th 05 06:45 PM
Using a Macro to clear out check box seletions Mel Excel Worksheet Functions 5 May 20th 05 08:35 PM


All times are GMT +1. The time now is 04:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"