Excel import: Identifying number of series

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

elias41
Posts: 25
Joined: Mon Jun 10, 2013 1:20 am

Excel import: Identifying number of series

Postby elias41 » Mon Jun 10, 2013 1:39 am

Hi,

What are the commands to count the number of imported time series from an excel file?


Best regards,
Elias

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Excel import: Identifying number of series

Postby EViews Gareth » Mon Jun 10, 2013 8:21 am

That's actually pretty tricky. If you're not doing a merged import (i.e. over-writing existing series), then something like:

Code: Select all

group g1 * !countbefore = g1.@count import myfile.xls group g2 * !countafter = g2.@count !imported = !countafter - !countbefore

elias41
Posts: 25
Joined: Mon Jun 10, 2013 1:20 am

Re: Excel import: Identifying number of series

Postby elias41 » Mon Jun 10, 2013 8:36 am

Many thanks.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest