Either you should export the rowheader text or i

somthing like so i would imagine:

xlWorkSheet.Cells(i + 18, j + 1) = (i).ToString()