Adding time to a MOD function formula

TAPS_MikeDion

Well-known Member
Joined
Aug 14, 2009
Messages
622
Office Version
  1. 2011
Platform
  1. MacOS
Hi all,
How can you add time (2 hours in my case) to time calculated by the MOD function?

I'm currently using the formula =MOD(J2-H2,1) to get my time, in hours, from start time (column H) and end time (column J) columns. The formula works fine, but I need to add 2 hours to the calculated hours without changing the start and end times. Is there something I can add to my formula to do this?

Thank you!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try just:

Excel Formula:
=(J2-H2)+("2:00")

or
Excel Formula:
=(MOD(J2-H2,1))+("2:00")
 
Upvote 0
Solution
Another option
Excel Formula:
=MOD(J2-H2,1)+TIME(2,0,0)
 
Upvote 0
Thank you both, both solutions worked!!!

The forum will only allow me to mark one post as the solution. DanteAmor's post was first so I selected that one, but you're both awesome!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,235
Members
449,092
Latest member
SCleaveland

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top