I am out of the office this morning but if you are interested, I will write some guidance later today.
The immediate question that comes to mind if you are copying formulas to a different workbook is have you defined the names 'comments', 'detected', 'restored', 'start', 'dd', 'mm' and 'hh'? This is done in Name Manager. The references are all mixed in that they apply to a particular column (the letter is prefixed by a '$' as in =Sheet1!$F3 which defines the name 'comments') but the row is relative (in this case it is the row in which the formula is evaluated).