Problem Subtracting 30 Minutes From Value

Ark68

Well-known Member
Joined
Mar 23, 2004
Messages
4,616
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Staff2024.xlsx
ABCDEFGHIJ
471003-May-24FriE1VacantBPABPA07:0015:008.00
Student
Cell Formulas
RangeFormula
C47C47=B47
H47H47=B47+(7/24)
I47I47=B47+(15/24)
J47J47=(I47-H47)*24


Considering the data above, I am struggling to find a solution to reduce the value (hours) in J47 by 30 minutes.

I have tried both
Code:
=((I47-H47)*24)-time(0,30,0)
=((I47-H47)*24)-(30/1440)
with both giving me the same calculated value as 7.98. I was hoping for 7.5.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi, isn't it just :
Excel Formula:
=J47-0.5

EDIT: i.e.
Excel Formula:
=((I47-H47)*24)-0.5
 
Upvote 1
Solution
How about
Excel Formula:
=(I47-H47-TIME(0,30,0))*24
 
Upvote 1
What about
Excel Formula:
=I47-H47-TIME(0,30,0)

24 01 30.xlsm
ABCDEFGHIJ
471003-May-24FriE1VacantBPABPA07:0015:0007:30
30 Mins
Cell Formulas
RangeFormula
C47C47=B47
H47H47=B47+(7/24)
I47I47=B47+(15/24)
J47J47=I47-H47-TIME(0,30,0)
 
Upvote 1
FormR - Yes! This works.
Fluff - Yes! Of course that works to!
Peter - With a slight modification, yours works as well! (=(I47-H47-TIME(0,30,0))*24))

Thank you all for the quick response.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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