A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
https://dl.dropboxusercontent.com/u/51684362/Workbook%20before%20corruption.xlsm
The workbook works fine in Excel 2010 but throws the error in Excel 2013
I can not agree, I was able to reproduce the issue in Excel 2010 too.
The exact reason is not clear to me, but the it is the call to Application.Volatilein Function Eval which is used in the hidden column C "PGM Time (Mins)".If you don't call Application.Volatilethe issue is gone.
BTW, why so complicated and use a mix of a long formula with calls to different UDF's? It is much easier if you call only one UDF:
=CalcMins([@[PGM Time]])
Function CalcMins(ByVal S As String) As Variant
If InStr(S, "h") > 0 Then
S = Replace(S, "h", ":")
CalcMins = CDate(S) * 24 * 60
Else
CalcMins = Application.Evaluate("=" & S)
End If
End Function
Andreas.