Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default need to subtract .50 from a cell if it is over 6.00

Here is the formula it works but I need it to also subtract .50 from I5 if I5
is greater then 6.00 after it is divided by 24 at the end, it is for a time
sheet to take out .30 min for lunch.


=IF(H5="P",G5+12-F5,IF(H5="A",G5-F5,(I5/24))))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 464
Default need to subtract .50 from a cell if it is over 6.00

See your other post.

=IF(H5="P",G5+12-F5,IF(H5="A",G5-F5,(IF(I56,I5-0.5,I5)/24)))



--
Regards
Dave Hawley
www.ozgrid.com
"Jeff Brown" wrote in message
...
Here is the formula it works but I need it to also subtract .50 from I5 if
I5
is greater then 6.00 after it is divided by 24 at the end, it is for a
time
sheet to take out .30 min for lunch.


=IF(H5="P",G5+12-F5,IF(H5="A",G5-F5,(I5/24))))


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default need to subtract .50 from a cell if it is over 6.00

Try this...

A1 = start time = 6:30 AM
B1 = end time = 3:00 PM

=MOD(B1-A1,1)-(MOD(B1-A1,1)0.25)*30/1440

Format as [h]:mm

--
Biff
Microsoft Excel MVP


"Jeff Brown" wrote in message
...
Here is the formula it works but I need it to also subtract .50 from I5 if
I5
is greater then 6.00 after it is divided by 24 at the end, it is for a
time
sheet to take out .30 min for lunch.


=IF(H5="P",G5+12-F5,IF(H5="A",G5-F5,(I5/24))))



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default need to subtract .50 from a cell if it is over 6.00

Great Job Thanks Alot
--
Chris


"T. Valko" wrote:

Try this...

A1 = start time = 6:30 AM
B1 = end time = 3:00 PM

=MOD(B1-A1,1)-(MOD(B1-A1,1)0.25)*30/1440

Format as [h]:mm

--
Biff
Microsoft Excel MVP


"Jeff Brown" wrote in message
...
Here is the formula it works but I need it to also subtract .50 from I5 if
I5
is greater then 6.00 after it is divided by 24 at the end, it is for a
time
sheet to take out .30 min for lunch.


=IF(H5="P",G5+12-F5,IF(H5="A",G5-F5,(I5/24))))



.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default need to subtract .50 from a cell if it is over 6.00

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Chris" wrote in message
...
Great Job Thanks Alot
--
Chris


"T. Valko" wrote:

Try this...

A1 = start time = 6:30 AM
B1 = end time = 3:00 PM

=MOD(B1-A1,1)-(MOD(B1-A1,1)0.25)*30/1440

Format as [h]:mm

--
Biff
Microsoft Excel MVP


"Jeff Brown" wrote in message
...
Here is the formula it works but I need it to also subtract .50 from I5
if
I5
is greater then 6.00 after it is divided by 24 at the end, it is for a
time
sheet to take out .30 min for lunch.


=IF(H5="P",G5+12-F5,IF(H5="A",G5-F5,(I5/24))))



.



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
subtract one cell from each cell in a range and count instances tworrall Excel Worksheet Functions 2 October 15th 09 05:31 PM
trying to subtract a range from a cell Angel Woman Excel Worksheet Functions 1 March 26th 09 08:26 PM
why cant i subtract one cell from another? Awes1 Excel Worksheet Functions 3 April 2nd 08 04:45 AM
subtract from numeric cell when alpha cell is occupied Keith Excel Worksheet Functions 0 March 28th 07 01:04 AM
Subtract text in one cell from another? BigIan Excel Worksheet Functions 3 July 7th 05 09:21 AM


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