Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing from Excel

Status
Not open for further replies.

tarena

IS-IT--Management
Nov 28, 2005
70
US
I have a report run from one program and it lists times that employees clock in and out. It gives me all the info I need but it lists all of it in columns. I need to import this into a table and calculate it as follows. (TIME IN minus TIME OUT)minus (LUNCH IN minus LUNCH OUT). How can I do this? Can I do this?

Thanks again
Tarena
 
Import into a table and then use a query.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hey Skip,
I imported the data into a table, used a query to seperate the "ins" from the "outs" and now I need to calculate these but I can't bring them together to do this.
 
Alright Skip, I'm obviously a dummy here...what does that mean?

Thanks
 



The Absolute difference between the IN Date/Time and the OUT Date/Time is the ELAPSED Time.

Skip,

[glasses] [red][/red]
[tongue]
 



...or you could say, more generally, the absolute difference between any two Date/Time values, is the Elapsed Time in that defined interval.

Skip,

[glasses] [red][/red]
[tongue]
 



...forthermore, the UNITS of the Elapsed Time, is DAYS, where any fractional part of a day, can be expressed in houes, minutes and seconds.

In fact, ANY Date/Time value, can be expressed in ANY Date/Time UNIT: Millenia, Centuries, Years, Months (somewhat tricky), Fortnights, Weeks, Days, Hours, Minutes, Seconds.


Skip,

[glasses] [red][/red]
[tongue]
 
What have you as input data and which code have you tried ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top