If you open the worksheet manually, do you still the #NAME values? The #NAME value indicates 1) a function name is misspelled, or 2) a formula references a range of cells (example A1:Z5) and the colon is missing. I've sometimes seen a period (.) used instead of a colon. If you are providing the cell range as input, check that for typos also.