Hello Statalist members,
I’m trying to import an Excel dataset into Stata, but my variable names span multiple rows instead of being in a single row. I want to keep the information for each disease. My dataset looks like below.

My questions are:
I’m trying to import an Excel dataset into Stata, but my variable names span multiple rows instead of being in a single row. I want to keep the information for each disease. My dataset looks like below.
My questions are:
- How can I combine multiple rows into a single row of variable names in Stata?
- How can I skip unnecessary rows and import the dataset correctly?

Comment