Dear All,
I need to append together more than 200 excel files. All of them have the same structure: the first 5 rows contain a description of each file and the number of columns are equal. However the number of rows is different and at the end of each dataset there are two rows with a further description of the data. An example is below:

While I can use cellrange to skip the first five rows, I am wondering if there is any chance to ask Stata to import only data, skipping the last to rows at the end (notice that the last two rows after the data have the same content).
Thanks in advance for your help.
Dario
EDIT: It might be better to add the data rather than pics:
I need to append together more than 200 excel files. All of them have the same structure: the first 5 rows contain a description of each file and the number of columns are equal. However the number of rows is different and at the end of each dataset there are two rows with a further description of the data. An example is below:
While I can use cellrange to skip the first five rows, I am wondering if there is any chance to ask Stata to import only data, skipping the last to rows at the end (notice that the last two rows after the data have the same content).
Thanks in advance for your help.
Dario
EDIT: It might be better to add the data rather than pics:
Code:
Albania FDI stock abroad, by geographical destination (Millions of US dollars) Reporting Country 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 Argentina - - - - - - - - - - Australia - - - - - - - - - - Austria - 0 0 0 0 0 0 - 5 0 0 - Azerbaijan 0 0 0 0 0 0 0 0 0 - Bangladesh - - - - - - - - - - Barbados - - - - - - - - - - Belarus - - - - - - - 0 - 0 Belgium - - - 3 - - 1 1 0 0 1 - Benin - - - - - - - - - - Bolivia, Plurinational State of - - - - - - - - - - Bosnia and Herzegovina 0 0 0 0 0 2 4 5 6 - Botswana - - - - - - - - - - Source: UNCTAD, FDI/MNE database. Note: Data are based on information reported by the economies listed above.
Code:
Algeria FDI stock abroad, by geographical destination (Millions of US dollars) Reporting Country 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 Argentina - - 0 0 0 0 0 1 1 - Australia 0 0 0 0 0 0 0 0 0 - Austria 0 0 1 1 1 0 0 0 0 - Azerbaijan - - - - 0 0 0 0 1 - Bahrain - - - - - - - - 0 - 0 - 0 Bangladesh - - - - 0 0 0 0 0 0 - Barbados - - - - - - - - - - Belarus - - - - - - 0 - - - Belgium 0 - 0 2 4 - 23 0 0 0 - Benin - - - - - - - - - - Bolivia, Plurinational State of - - - - - - - - - - Bosnia and Herzegovina 0 0 0 0 0 0 0 0 0 - Botswana - - - - - - - - - - Brazil - 1 - 0 - 0 - 0 - - 0 0 0 0 - Bulgaria 1 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 Burkina Faso - - - - - 12 - - - - Cabo Verde - - - - - - - - - - Cambodia - - - - - - - - - - Canada - - - - - - - - - - Chile - - - - - - - - - - China 12 8 9 8 2 3 7 8 9 - Costa Rica - - - - - - - - - - Source: UNCTAD, FDI/MNE database. Note: Data are based on information reported by the economies listed above.

Comment