#1   Report Post  
Posted to microsoft.public.excel.misc
TLAngelo
 
Posts: n/a
Default FORMULA

I am trying to create a formula that will subtract 14.5 hours from the total
hours in one cell if the date in cell J4 is greater than the date in cell F4.
Can anyone help?

Here is what I was trying, please don't laugh, I'm pretty new at excell :)

=IF(J4F4,=+(J4+K4)-(F4+G4)-14.5,=+(J4+K4)-(F4+G4))

Note: =+(J4+K4)-(F4+G4) is the formula that is calculating the total that I
want to subtract 14.5 hours from.


  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default FORMULA

If the values are excel time values like 8:30 etc

=IF(J4F4,(J4+K4)-(F4+G4)-(14.5/24),(J4+K4)-(F4+G4))

if decimal values like 8.5

=IF(J4F4,(J4+K4)-(F4+G4)-14.5,(J4+K4)-(F4+G4))

having said that, what are in F, G, J and K?

Are you subtracting hours worked after midnight?

=MOD((end-start)-(in-out),1)

or

=end-start+(startend)-(in-out)


where end is end of work, start is start of work, in is end of break and out
start of break


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"TLAngelo" wrote in message
...
I am trying to create a formula that will subtract 14.5 hours from the
total
hours in one cell if the date in cell J4 is greater than the date in cell
F4.
Can anyone help?

Here is what I was trying, please don't laugh, I'm pretty new at excell :)

=IF(J4F4,=+(J4+K4)-(F4+G4)-14.5,=+(J4+K4)-(F4+G4))

Note: =+(J4+K4)-(F4+G4) is the formula that is calculating the total that
I
want to subtract 14.5 hours from.




  #3   Report Post  
Posted to microsoft.public.excel.misc
TLAngelo
 
Posts: n/a
Default FORMULA

Oh, thank you so much! The first formula you provided solved my problem! I
am shocked that I was so close too! You asked: "having said that, what are
in F, G, J and K? Are you subtracting hours worked after midnight?" F
contains the date a product left our shop, G contains the time it left our
shop, J & K contain the date and time it came back. Our working hours are
7:00am to 4:30pm, we wanted to calculate the total hours that it took the
product to be returned for final processing but from 4:30pm (end of shift) to
7:00am (next day shift begins) don't count in the total holding time. So I
wanted to subtract the 14.5 hours that don't count if say we sent the product
out at 2:30pm and didn't get it back until 10:30am the next day. Whew! Hope
that makes sense! Again thanks so much for your help!

Tania


"Peo Sjoblom" wrote:

If the values are excel time values like 8:30 etc

=IF(J4F4,(J4+K4)-(F4+G4)-(14.5/24),(J4+K4)-(F4+G4))

if decimal values like 8.5

=IF(J4F4,(J4+K4)-(F4+G4)-14.5,(J4+K4)-(F4+G4))

having said that, what are in F, G, J and K?

Are you subtracting hours worked after midnight?

=MOD((end-start)-(in-out),1)

or

=end-start+(startend)-(in-out)


where end is end of work, start is start of work, in is end of break and out
start of break


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"TLAngelo" wrote in message
...
I am trying to create a formula that will subtract 14.5 hours from the
total
hours in one cell if the date in cell J4 is greater than the date in cell
F4.
Can anyone help?

Here is what I was trying, please don't laugh, I'm pretty new at excell :)

=IF(J4F4,=+(J4+K4)-(F4+G4)-14.5,=+(J4+K4)-(F4+G4))

Note: =+(J4+K4)-(F4+G4) is the formula that is calculating the total that
I
want to subtract 14.5 hours from.





  #4   Report Post  
Posted to microsoft.public.excel.misc
TLAngelo
 
Posts: n/a
Default FORMULA

Hi! I am still working on my spreadsheet that you helped with before. I
have realized that if a product comes in on a Friday afternoon I do not want
to count the hours of the weekend when we aren't working. I want to begin
counting the time from 7am Monday morning again. Is there a way to do this?
Can excel recognize that something has come in on a Friday and subtract the
total weekend hours... I suspect that it can since it does recognize what day
of the week a date is in any given year.

With your help, here is what I have now:

=IF(J4F4,(J4+K4)-(F4+G4)-(14.5/24),(J4+K4)-(F4+G4))



"Peo Sjoblom" wrote:

If the values are excel time values like 8:30 etc

=IF(J4F4,(J4+K4)-(F4+G4)-(14.5/24),(J4+K4)-(F4+G4))

if decimal values like 8.5

=IF(J4F4,(J4+K4)-(F4+G4)-14.5,(J4+K4)-(F4+G4))

having said that, what are in F, G, J and K?

Are you subtracting hours worked after midnight?

=MOD((end-start)-(in-out),1)

or

=end-start+(startend)-(in-out)


where end is end of work, start is start of work, in is end of break and out
start of break


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"TLAngelo" wrote in message
...
I am trying to create a formula that will subtract 14.5 hours from the
total
hours in one cell if the date in cell J4 is greater than the date in cell
F4.
Can anyone help?

Here is what I was trying, please don't laugh, I'm pretty new at excell :)

=IF(J4F4,=+(J4+K4)-(F4+G4)-14.5,=+(J4+K4)-(F4+G4))

Note: =+(J4+K4)-(F4+G4) is the formula that is calculating the total that
I
want to subtract 14.5 hours from.





  #5   Report Post  
Posted to microsoft.public.excel.misc
vpanang
 
Posts: n/a
Default FORMULA


=IF(J4F4,(J4+K4)-(F4+G4)-14.5,(J4+K4)-(F4+G4))

this should work...


--
vpanang
------------------------------------------------------------------------
vpanang's Profile: http://www.excelforum.com/member.php...o&userid=33915
View this thread: http://www.excelforum.com/showthread...hreadid=537021



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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 04:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"