need to subtract .50 from a cell if it is over 6.00

J

Jeff Brown

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))))
 
O

ozgrid.com

See your other post.

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

T. Valko

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
 
C

Chris

Great Job Thanks Alot
--
Chris


T. Valko said:
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 said:
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))))


.
 
T

T. Valko

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


Chris said:
Great Job Thanks Alot
--
Chris


T. Valko said:
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 said:
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))))


.
 

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