A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

lunch break!! well..how to figure



 
 
Thread Tools Display Modes
  #1  
Old March 8th, 2009, 02:49 AM posted to microsoft.public.excel.worksheet.functions
acetoolguy
external usenet poster
 
Posts: 11
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  
Old March 8th, 2009, 03:15 AM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
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  
Old March 8th, 2009, 03:36 AM posted to microsoft.public.excel.worksheet.functions
acetoolguy
external usenet poster
 
Posts: 11
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  
Old March 8th, 2009, 03:57 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
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  
Old March 8th, 2009, 04:13 AM posted to microsoft.public.excel.worksheet.functions
acetoolguy
external usenet poster
 
Posts: 11
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  
Old March 8th, 2009, 03:48 PM posted to microsoft.public.excel.worksheet.functions
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
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...





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:40 AM.


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