Fix range calculation with cell refs are different lengths