Subtract 30 minutes from Formula

K

Karen

I have a cell that calculates my time with the following formula:
=TEXT(C205-B205,"[h] \h\r\s: m \m\i\n\s")

I want to subtract 30 minutes for lunch. How would I adjust the formula to
calculate that?

Thanks, Karen
 
R

Ron Coderre

Try something like this:
=TEXT(C205-B205-TIME(,30,),"[h] \h\r\s: m \m\i\n\s")

Is that something you can work with?
***********
Regards,
Ron

XL2003, WinXP
 
J

John C

Assuming C205 and B205 are valid times....
change your formula to this:
....C205-B205-30/60/24,...

Hope this helps.
 
K

Karen

Thank you for your help
Karen

Ron Coderre said:
Try something like this:
=TEXT(C205-B205-TIME(,30,),"[h] \h\r\s: m \m\i\n\s")

Is that something you can work with?
***********
Regards,
Ron

XL2003, WinXP


Karen said:
I have a cell that calculates my time with the following formula:
=TEXT(C205-B205,"[h] \h\r\s: m \m\i\n\s")

I want to subtract 30 minutes for lunch. How would I adjust the formula to
calculate that?

Thanks, Karen
 
K

Karen

Thank you for your help
Karen

John C said:
Assuming C205 and B205 are valid times....
change your formula to this:
...C205-B205-30/60/24,...

Hope this helps.
--
John C


Karen said:
I have a cell that calculates my time with the following formula:
=TEXT(C205-B205,"[h] \h\r\s: m \m\i\n\s")

I want to subtract 30 minutes for lunch. How would I adjust the formula to
calculate that?

Thanks, Karen
 
K

Karen

Thank you for your help
Karen

T. Valko said:
Try this:

=TEXT(C205-B205-TIME(0,30,0),"[h] \h\r\s: m \m\i\n\s")

--
Biff
Microsoft Excel MVP


Karen said:
I have a cell that calculates my time with the following formula:
=TEXT(C205-B205,"[h] \h\r\s: m \m\i\n\s")

I want to subtract 30 minutes for lunch. How would I adjust the formula to
calculate that?

Thanks, Karen
 
K

Karen

What formula do I use if I want to convert 8 hrs: 45 mins to 8.75?
Thanks again, Karen

Ron Coderre said:
Try something like this:
=TEXT(C205-B205-TIME(,30,),"[h] \h\r\s: m \m\i\n\s")

Is that something you can work with?
***********
Regards,
Ron

XL2003, WinXP


Karen said:
I have a cell that calculates my time with the following formula:
=TEXT(C205-B205,"[h] \h\r\s: m \m\i\n\s")

I want to subtract 30 minutes for lunch. How would I adjust the formula to
calculate that?

Thanks, Karen
 
R

Rick Rothstein \(MVP - VB\)

Assuming your hours and minutes are in the standard hh:mm format (that is,
8:45 is in the cell), then use...

=24*A1

and format the cell A1 as General.

Rick


Karen said:
What formula do I use if I want to convert 8 hrs: 45 mins to 8.75?
Thanks again, Karen

Ron Coderre said:
Try something like this:
=TEXT(C205-B205-TIME(,30,),"[h] \h\r\s: m \m\i\n\s")

Is that something you can work with?
***********
Regards,
Ron

XL2003, WinXP


Karen said:
I have a cell that calculates my time with the following formula:
=TEXT(C205-B205,"[h] \h\r\s: m \m\i\n\s")

I want to subtract 30 minutes for lunch. How would I adjust the formula
to
calculate that?

Thanks, Karen
 
T

T. Valko

You're welcome!

--
Biff
Microsoft Excel MVP


Karen said:
Thank you for your help
Karen

T. Valko said:
Try this:

=TEXT(C205-B205-TIME(0,30,0),"[h] \h\r\s: m \m\i\n\s")

--
Biff
Microsoft Excel MVP


Karen said:
I have a cell that calculates my time with the following formula:
=TEXT(C205-B205,"[h] \h\r\s: m \m\i\n\s")

I want to subtract 30 minutes for lunch. How would I adjust the formula
to
calculate that?

Thanks, Karen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top