I suspect that it may be that, when you calculate the row, you end up with a zero. So, for example, you may be referring to, say, cell A0 ... which doesn't exist.