A bit of cleanup.  make cell location dynamic with that of the formula being parsed, and change .sheet to .sheetIndex for all cells for more clarification.