#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default TIME CALCULATION

I HAVE EXCEL SHEET TO CALCULATE TIME FOR WORKING HOURS, USEING FROM TO AND TOTAL TIME AS FOLLOWING:
FROM (A2), TO (B2) , TOTAL (C2)
SHIFT HOURS FROM 06:00AM TO NEXT DAY 06:00AM AS 24HRS FORMAT CELL
THE PROBLEM IS AFTER PASSING 24:00 MIDNIGHT (FROM 01:00AM TO 06:00AM) TOTAL IS NOT SHOWING BECAUSE ITS LESS THAN 24.
PLEASE HELP.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 829
Default TIME CALCULATION

"FEVOOO" wrote:
I HAVE EXCEL SHEET TO CALCULATE TIME FOR WORKING HOURS

[....]
FROM (A2), TO (B2) , TOTAL (C2)
SHIFT HOURS FROM 06:00AM TO NEXT DAY 06:00AM AS 24HRS
FORMAT CELL THE PROBLEM IS AFTER PASSING 24:00 MIDNIGHT
(FROM 01:00AM TO 06:00AM) TOTAL IS NOT SHOWING BECAUSE
ITS LESS THAN 24.


First, the format of the cell does not matter.

Second, to avoid the problem with computing negative time, use the following
formula:

=B2-A2+(A2B2)

formatted as Time or whatever you want.

  #3   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by FEVOOO View Post
I HAVE EXCEL SHEET TO CALCULATE TIME FOR WORKING HOURS, USEING FROM TO AND TOTAL TIME AS FOLLOWING:
FROM (A2), TO (B2) , TOTAL (C2)
SHIFT HOURS FROM 06:00AM TO NEXT DAY 06:00AM AS 24HRS FORMAT CELL
THE PROBLEM IS AFTER PASSING 24:00 MIDNIGHT (FROM 01:00AM TO 06:00AM) TOTAL IS NOT SHOWING BECAUSE ITS LESS THAN 24.
PLEASE HELP.
Try this in C2:

=IF(B2<A2,(B2+1)-A2,B2-A2)
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default TIME CALCULATION

Hi,

or try:
=MOD(B2-A2,1)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default TIME CALCULATION

On Sunday, December 23, 2012 11:37:22 AM UTC+3, joeu2004 wrote:
"FEVOOO" wrote:

I HAVE EXCEL SHEET TO CALCULATE TIME FOR WORKING HOURS


[....]

FROM (A2), TO (B2) , TOTAL (C2)


SHIFT HOURS FROM 06:00AM TO NEXT DAY 06:00AM AS 24HRS


FORMAT CELL THE PROBLEM IS AFTER PASSING 24:00 MIDNIGHT


(FROM 01:00AM TO 06:00AM) TOTAL IS NOT SHOWING BECAUSE


ITS LESS THAN 24.




First, the format of the cell does not matter.



Second, to avoid the problem with computing negative time, use the following

formula:



=B2-A2+(A2B2)



formatted as Time or whatever you want.


Thank you so muuuuuch, its working perfectly :)


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default TIME CALCULATION

On Sunday, December 23, 2012 3:51:47 PM UTC+3, Spencer101 wrote:
FEVOOO;1608199 Wrote:

I HAVE EXCEL SHEET TO CALCULATE TIME FOR WORKING HOURS, USEING FROM TO


AND TOTAL TIME AS FOLLOWING:


FROM (A2), TO (B2) , TOTAL (C2)


SHIFT HOURS FROM 06:00AM TO NEXT DAY 06:00AM AS 24HRS FORMAT CELL


THE PROBLEM IS AFTER PASSING 24:00 MIDNIGHT (FROM 01:00AM TO 06:00AM)


TOTAL IS NOT SHOWING BECAUSE ITS LESS THAN 24.


PLEASE HELP.




Try this in C2:



*=IF(B2<A2,(B2+1)-A2,B2-A2)*









--

Spencer101


yeeeees, I was tring all the night fo IF formula appreciate
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default TIME CALCULATION

On Sunday, December 23, 2012 4:46:19 PM UTC+3, Claus Busch wrote:
Hi,



or try:

=MOD(B2-A2,1)





Regards

Claus Busch

--

Win XP PRof SP2 / Vista Ultimate SP2

Office 2003 SP2 /2007 Ultimate SP2


thnaks alot for your efforts
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
VBA time calculation Nancy T. Excel Programming 5 October 22nd 09 07:11 PM
Stop time - start time calculation squack21 Excel Worksheet Functions 5 December 10th 07 03:20 PM
Time calculation (Subraction of Idle Time) Ajay Excel Discussion (Misc queries) 6 March 4th 07 11:54 AM
Ignoring Time in a Date Time Calculation nmp Excel Worksheet Functions 3 November 23rd 05 08:32 PM
time calculation with military time Ron Thetford Excel Worksheet Functions 8 July 29th 05 07:24 PM


All times are GMT +1. The time now is 09:29 PM.

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"