Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default What formula can i use to add time?

example Punch in 6:45AM , Punch out 5:30PM

What formula can I use to add the total time worked by quarter hours? like
10.45
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 623
Default What formula can i use to add time?

To me, you are subtracting times, not adding them. If 5:30pm is in B1, and
6:45am is in A1, the difference between these two is:

=b1-a1

Format the result as a time, and you'll get 10:45

If you want the result in decimal hours, multiply by 24 (because Excel stores
times as fractions of a day), as in:

=(b1-a1)*24

Format as a number, and you'll get 10.75

--
Regards,
Fred


"lili" wrote in message
...
example Punch in 6:45AM , Punch out 5:30PM

What formula can I use to add the total time worked by quarter hours? like
10.45



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default What formula can i use to add time?

This does not work from PM to AM

"Fred Smith" wrote:

To me, you are subtracting times, not adding them. If 5:30pm is in B1, and
6:45am is in A1, the difference between these two is:

=b1-a1

Format the result as a time, and you'll get 10:45

If you want the result in decimal hours, multiply by 24 (because Excel stores
times as fractions of a day), as in:

=(b1-a1)*24

Format as a number, and you'll get 10.75

--
Regards,
Fred


"lili" wrote in message
...
example Punch in 6:45AM , Punch out 5:30PM

What formula can I use to add the total time worked by quarter hours? like
10.45




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default What formula can i use to add time?

Put a space before the AM or PM.
5:30 pm is in B1, and 6:45 am in A1
=B1-A1 format as h:mm, or as [h]:mm if you're going to need to sum values
beyong 24 hours.
--
David Biddulph

"lili" wrote in message
...
This does not work from PM to AM

"Fred Smith" wrote:

To me, you are subtracting times, not adding them. If 5:30pm is in B1,
and
6:45am is in A1, the difference between these two is:

=b1-a1

Format the result as a time, and you'll get 10:45

If you want the result in decimal hours, multiply by 24 (because Excel
stores
times as fractions of a day), as in:

=(b1-a1)*24

Format as a number, and you'll get 10.75

--
Regards,
Fred


"lili" wrote in message
...
example Punch in 6:45AM , Punch out 5:30PM

What formula can I use to add the total time worked by quarter hours?
like
10.45






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default What formula can i use to add time?

This does not work from PM to AM

For all times, including those that cross midnight use:

=MOD(B1-A1,1)

To round it to the nearest 15 minutes use:

=ROUND(MOD(B1-A1,1)/(0.25/24),0)*(0.25/24)

To round each time to the nearest 15 minutes before subtracting them use:

=MOD(ROUND(B1/(0.25/24),0)*(0.25/24)-ROUND(A1/(0.25/24),0)*(0.25/24),1)

Note that this may be uo to 30 minures different depending on the
Clock-on/Clock-off times.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"lili" wrote in message
...
This does not work from PM to AM

"Fred Smith" wrote:

To me, you are subtracting times, not adding them. If 5:30pm is in B1,
and
6:45am is in A1, the difference between these two is:

=b1-a1

Format the result as a time, and you'll get 10:45

If you want the result in decimal hours, multiply by 24 (because Excel
stores
times as fractions of a day), as in:

=(b1-a1)*24

Format as a number, and you'll get 10.75

--
Regards,
Fred


"lili" wrote in message
...
example Punch in 6:45AM , Punch out 5:30PM

What formula can I use to add the total time worked by quarter hours?
like
10.45








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default What formula can i use to add time?

A1: start time
B1: end time

=(B1-A1)*24


"lili" wrote:

example Punch in 6:45AM , Punch out 5:30PM

What formula can I use to add the total time worked by quarter hours? like
10.45

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
Formula to find Stop Time from Start Time and Total Minutes Jonathan Bickett Excel Worksheet Functions 5 March 7th 07 05:22 PM
template or formula for start time -finish time -total hours ple cc New Users to Excel 1 March 27th 06 06:06 PM
Help with time formula so the time will not change. Joker Excel Discussion (Misc queries) 1 February 17th 06 09:04 AM
How do I set up a formula on a time sheet to calculate time in 1/. gschmid Excel Discussion (Misc queries) 2 January 18th 05 01:48 PM
Time / Formula to look at time difference carl Excel Worksheet Functions 5 November 8th 04 06:59 PM


All times are GMT +1. The time now is 12:46 PM.

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

About Us

"It's about Microsoft Excel"