%

% Copyright 2017 The MathWorks, Inc.
function cellLoc = getMissingDataLoc(data, startRow, startCol)
    cellLoc = '';

    if isstring(data)
        fcn = @ismissing;
    else
        fcn = @isnan;
    end

    ind = find(fcn(data));
    if ~isempty(ind)
        ind = ind(1);
        [r,c] = ind2sub(size(data), ind);
        rowLoc = num2str(r + startRow - 1);
        colLoc = xls.internal.colNumberToLetter(c + startCol - 1);
        cellLoc = [colLoc rowLoc];
    end
end
