Let me explain the requirement in better way.
I am just looking for a function or a way which would return the list of all the column names present in an excel sheet
By default it should return A, B, C ... so and so forth. Or if they are changed it will return the column names that are actually set.