$ 0 0 Try using the names option to export both the row and column names of a matrix.putexcel B2 = matrix(ci1_`V') , names