It's not an Excel problem, it's the problem of closedxml's 'AddWorksheet' method. Evidently, it converts null to an empty string. You can look at another library if this issue is critical.