Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-23-2018, 12:06 AM
ArviLaanemets ArviLaanemets is offline Datediff() Windows 8 Datediff() Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Code:
=INDIRECT(I1)-INDIRECT(H1)
and format as "[h]:mm".

The result is displayed as the number of full hours and remaining minutes.

NB! The result is really a date!, i.e. 24 hours equals with 1. When you need to use the result as e.g. multipler for some value defined on hour basis, then you have to multiple the result of formula with 24. And when you do this for formula displayed on worksheet, then you have to format the sell as General instead using date/time format.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Datediff() DateDiff gives error when working after 24 hours TimTDP Excel 3 07-18-2012 12:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft