5
1
How can I create a resuable function/formula I can use in formulas in a spreadsheet? In particular I need a very simple DateDiff formula and would like a way to encapsulate this function:
=(((HOUR(B3) * 60) * 60) + (MINUTE(B3) * 60) + SECOND(B3)) - (((HOUR(A3) * 60) * 60) + (MINUTE(A3) * 60) + SECOND(A3))
(Thanks to Phil Winstanley)
This is called a UDF, user-defined function. – Lance Roberts – 2009-09-22T15:12:17.407
Sounds perfect, trying it now. – C. Ross – 2009-09-22T15:32:38.787