Hello,
Scenario-1:
Make sure to read the excel data including column names from excel file into collection.
Scenario-2:
You manually create column names in excel file and use write collection action by using the cell reference as "A2" (as first row has column names, write to the same excel file by opening it using MS Excel VBO).
Good Luck.