![]() |
|
#1
|
|||
|
|||
![]() How do Iget date diff in hours or minutes. Can only get days difference =DATEDIF(INDIRECT(H1),INDIRECT(I1),"d") Surly "h" and "mm" should work here.. Also need to divide by rows difference. |
#2
|
|||
|
|||
![]() Code:
=INDIRECT(I1)-INDIRECT(H1) 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. |
#3
|
|||
|
|||
![]()
when I format custom "[h]:mm" it display esxactly that
"[h]:mm" Ok remove the quotes What I need is to divide by the number of rows selected by =INDIRECT(I1)-INDIRECT(H1) |
#4
|
|||
|
|||
![]() Quote:
Code:
=(INDIRECT(I1) - INDIRECT(H1))/(ROW(INDIRECT(I1))-ROW(INDIRECT(H1))+1) Last edited by ArviLaanemets; 06-23-2018 at 04:36 AM. |
#5
|
|||
|
|||
![]()
=DATEDIF(INDIRECT(H1),INDIRECT(I1),"d")/(ROW(INDIRECT(I1))-ROW(INDIRECT(H1))+1)
Datediff doesn't do hours and minutes |
#6
|
|||
|
|||
![]()
Oops!
Copied formula from wrong post! (Correcting my previous post now.) |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
TimTDP | Excel | 3 | 07-18-2012 12:50 AM |