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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,215,219
Messages
6,123,680
Members
449,116
Latest member
HypnoFant

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