Hi,
I have been using the following command to import an excel spreadsheet for a few years now, without any problems.
However, recently the 257th column, which first row (column header) is "Q35" produces an error, because the column header is "if" (following from ia, ib, ic, id, ie) instead of "Q35", which is not allowed as a varname. Therefore, the import produces an error, which I posted about before, here: https://www.statalist.org/forums/for...ting-xlsx-file
Before this problem occurred, my columns were not A, B, C, etc., but the original first row column headers (i.e. Q1, Q2, Q3, or var1, var2, var3 in case of a conflict).
Why is the first row of the excel workmap no longer recognized as the header, and why is A, B, C used instead? How do I solve this, so that I can import the excel file again.
Also important of note is that, if I convert the file to *.csv and import it using the following command, it works perfectly fine and the first row are recognised as varnames:
I just don't want to have to convert the excel file to *.csv all the time.
Thank you so much.
I have been using the following command to import an excel spreadsheet for a few years now, without any problems.
Code:
import excel "/Users/Rob/Documents/Participant data list_no format.xlsx", sheet("All_data") firstrow case(lower) clear
Before this problem occurred, my columns were not A, B, C, etc., but the original first row column headers (i.e. Q1, Q2, Q3, or var1, var2, var3 in case of a conflict).
Why is the first row of the excel workmap no longer recognized as the header, and why is A, B, C used instead? How do I solve this, so that I can import the excel file again.
Also important of note is that, if I convert the file to *.csv and import it using the following command, it works perfectly fine and the first row are recognised as varnames:
Code:
insheet using "/Users/Rob/Documents/PhD Exercise Science/Participant data list_no format.csv", comma clear
Thank you so much.
Comment