def mergevalues(m, col, row, valuecell)
      if valuecell != nil
        valuecell.xlcoords=(col.col_name)+(row+1).to_s
        m[row, col]=valuecell
        return m, valuecell
      else
        valuecell=Cell.new
        valuecell.xlcoords=(col.col_name)+(row+1).to_s
        m[row, col]=valuecell
        return m, valuecell
      end
    end
def mergevalues(m, col, row, valuecell)
      if valuecell != nil
        valuecell.xlcoords=(col.col_name)+(row+1).to_s
        m[row, col]=valuecell
        return m, valuecell
      else
        valuecell=Cell.new
        valuecell.xlcoords=(col.col_name)+(row+1).to_s
        m[row, col]=valuecell
        return m, valuecell
      end
    end
Replace the empty values of the mergegroup with cell values or nil.
 @param [Matrix] m the Sheet object
 @param [Integer] col Column of the actual cell
 @param [Integer] row Row of the actual cell
 @param [Cell] valuecell A Cell containing the value to be copied over the mergegroup
 @return [Matrix, Cell] the sheet and the new (empty) cell or nil.