Importing date from excel spreadsheet
Posted: Wed Jul 07, 2010 9:40 am
Hello. I am a new Eviews 7 user although I have used previous versions before at the University.
I have a question about importing dates data from an excel spreadsheet. The thing is that I created an unstructured workfile with different pages and then I want one of the series to be read from excel to be the date id for structuring the page I will be using.
When I did this, the excel sheet had date formats as "1/2/98" ("month/day/year"), and Eviews assigns each of these dates a number. However, when I try to change this format to an alpha series, it does not match the date between the Excel and Eviews. For example, in excel, the number 35797 corresponds to 1/2/98 (month/day/year), and when I use in Eviews the command @datestr(35797, "mm/dd/yyyy"), it throws 1/4/99 (month/day/year).
Do you know if there is any way to solve this? I know it can be done by a little programming, but I was thinking there is a more intelligent way to "tell" Eviews the format date I am importing from excel.
Thanks a lot.
Regards.
I have a question about importing dates data from an excel spreadsheet. The thing is that I created an unstructured workfile with different pages and then I want one of the series to be read from excel to be the date id for structuring the page I will be using.
When I did this, the excel sheet had date formats as "1/2/98" ("month/day/year"), and Eviews assigns each of these dates a number. However, when I try to change this format to an alpha series, it does not match the date between the Excel and Eviews. For example, in excel, the number 35797 corresponds to 1/2/98 (month/day/year), and when I use in Eviews the command @datestr(35797, "mm/dd/yyyy"), it throws 1/4/99 (month/day/year).
Do you know if there is any way to solve this? I know it can be done by a little programming, but I was thinking there is a more intelligent way to "tell" Eviews the format date I am importing from excel.
Thanks a lot.
Regards.