add negative check to row and col for CellToIndex, return -1