Formula to minus 3 Hours from Days, Hours & Minutes

Stef9910

Board Regular
Joined
Nov 2, 2022
Messages
72
Office Version
  1. 2010
Platform
  1. Windows
Hello, Awesome people of this forum,

Please can someone help me with a formula to minus 3 hours from Days, Hours & Minutes?

I use the below formula to calculate the difference between two times and dates, but now also require it to minus 3 hours from the result,

=INT(K28-K27)& " Days " &HOUR(K28-K27) & " Hrs " &MINUTE(K28-K27)& " Mins "

Any ideas?

Thank you in advance

Stef
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
1 day is represented by 1 and therefore an hour is 1/24.
Since it can impact all 3 calculations you will need to apply it to all 3 elements.


Excel Formula:
=INT(K28-K27-3/24)& " Days " &HOUR(K28-K27-3/24) & " Hrs " &MINUTE(K28-K27-3/24)& " Mins "

If you had MS 365 or 2021 or later you could pull out the common part, so that it only needs to calculate once.

Excel Formula:
=LET(adjustedDuration,(K28-K27-3/24),
          INT(adjustedDuration)&" Days "&HOUR(adjustedDuration)&" Hrs "&MINUTE(adjustedDuration)&" Mins ")
 
Upvote 0
Solution

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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