Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default lunch break!! well..how to figure

I was a row that looks this..

Arrival Departure Lunch total hours
7:00 am 5:00 pm .5 9.5

I cant seem to get the 1/2 hour lunch to deduct. I have 5 pm - 7am =10 ok

Its a line on an invoice so it also needs to be clear, no military time for
example.
Thanks for any help...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default lunch break!! well..how to figure

Your problem is that you are mixing decimal hours with times. Had you showed
the formula you are using, it would have been much easier to point you in
the proper direction of a solution. Without it, my guess is you want:
=(a2-a1)*24-a3
Format as general or a number.

Regards,
Fred.

"acetoolguy" wrote in message
...
I was a row that looks this..

Arrival Departure Lunch total hours
7:00 am 5:00 pm .5 9.5

I cant seem to get the 1/2 hour lunch to deduct. I have 5 pm - 7am =10 ok

Its a line on an invoice so it also needs to be clear, no military time
for
example.
Thanks for any help...


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default lunch break!! well..how to figure

when i tried that all i get is the value in cell A. in my example a 7, where
i want total hours for the day which is 91/2 or 9.5 or even 930 might work. I
can do it by hand if I have too.

"Fred Smith" wrote:

Your problem is that you are mixing decimal hours with times. Had you showed
the formula you are using, it would have been much easier to point you in
the proper direction of a solution. Without it, my guess is you want:
=(a2-a1)*24-a3
Format as general or a number.

Regards,
Fred.

"acetoolguy" wrote in message
...
I was a row that looks this..

Arrival Departure Lunch total hours
7:00 am 5:00 pm .5 9.5

I cant seem to get the 1/2 hour lunch to deduct. I have 5 pm - 7am =10 ok

Its a line on an invoice so it also needs to be clear, no military time
for
example.
Thanks for any help...



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default lunch break!! well..how to figure

Since you have your data laid out horizontally, I think Fred meant to write
his formula this way (he gave you the formula as if your data were laid out
vertically)...

=(B1-A1)*24-C1

--
Rick (MVP - Excel)


"acetoolguy" wrote in message
...
when i tried that all i get is the value in cell A. in my example a 7,
where
i want total hours for the day which is 91/2 or 9.5 or even 930 might
work. I
can do it by hand if I have too.

"Fred Smith" wrote:

Your problem is that you are mixing decimal hours with times. Had you
showed
the formula you are using, it would have been much easier to point you in
the proper direction of a solution. Without it, my guess is you want:
=(a2-a1)*24-a3
Format as general or a number.

Regards,
Fred.

"acetoolguy" wrote in message
...
I was a row that looks this..

Arrival Departure Lunch total hours
7:00 am 5:00 pm .5 9.5

I cant seem to get the 1/2 hour lunch to deduct. I have 5 pm - 7am =10
ok

Its a line on an invoice so it also needs to be clear, no military time
for
example.
Thanks for any help...




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default lunch break!! well..how to figure

I am new at this but I should have caught that too....works perfectly, thanks
to you both.

"Rick Rothstein" wrote:

Since you have your data laid out horizontally, I think Fred meant to write
his formula this way (he gave you the formula as if your data were laid out
vertically)...

=(B1-A1)*24-C1

--
Rick (MVP - Excel)


"acetoolguy" wrote in message
...
when i tried that all i get is the value in cell A. in my example a 7,
where
i want total hours for the day which is 91/2 or 9.5 or even 930 might
work. I
can do it by hand if I have too.

"Fred Smith" wrote:

Your problem is that you are mixing decimal hours with times. Had you
showed
the formula you are using, it would have been much easier to point you in
the proper direction of a solution. Without it, my guess is you want:
=(a2-a1)*24-a3
Format as general or a number.

Regards,
Fred.

"acetoolguy" wrote in message
...
I was a row that looks this..

Arrival Departure Lunch total hours
7:00 am 5:00 pm .5 9.5

I cant seem to get the 1/2 hour lunch to deduct. I have 5 pm - 7am =10
ok

Its a line on an invoice so it also needs to be clear, no military time
for
example.
Thanks for any help...






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default lunch break!! well..how to figure

As you've found out, if you want an exact formula, you need to tell us what
cells your data is in. Without cell addresses, we can only provide a guide,
and most people like me simply start with A1. We assume the user can adjust
the addresses to suit their situation.

Glad you got it working,
Fred.

"acetoolguy" wrote in message
...
I am new at this but I should have caught that too....works perfectly,
thanks
to you both.

"Rick Rothstein" wrote:

Since you have your data laid out horizontally, I think Fred meant to
write
his formula this way (he gave you the formula as if your data were laid
out
vertically)...

=(B1-A1)*24-C1

--
Rick (MVP - Excel)


"acetoolguy" wrote in message
...
when i tried that all i get is the value in cell A. in my example a 7,
where
i want total hours for the day which is 91/2 or 9.5 or even 930 might
work. I
can do it by hand if I have too.

"Fred Smith" wrote:

Your problem is that you are mixing decimal hours with times. Had you
showed
the formula you are using, it would have been much easier to point you
in
the proper direction of a solution. Without it, my guess is you want:
=(a2-a1)*24-a3
Format as general or a number.

Regards,
Fred.

"acetoolguy" wrote in message
...
I was a row that looks this..

Arrival Departure Lunch total hours
7:00 am 5:00 pm .5 9.5

I cant seem to get the 1/2 hour lunch to deduct. I have 5 pm - 7am
=10
ok

Its a line on an invoice so it also needs to be clear, no military
time
for
example.
Thanks for any help...





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
Time and lunch breaks mndpy Excel Worksheet Functions 5 September 4th 07 09:54 PM
Break up my URLs? Can't figure it out... sunzfan Excel Worksheet Functions 2 May 13th 06 11:32 PM
How to substract for lunch on =MOD function jcc31 Excel Worksheet Functions 4 March 9th 06 07:30 PM
Overtime computation and lunch break formula with IF and AND navychef Excel Worksheet Functions 4 December 8th 05 07:06 AM
Assumed Lunch Jeff Excel Discussion (Misc queries) 2 March 20th 05 05:35 AM


All times are GMT +1. The time now is 08:51 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"