import from xlsx worksheet

For making suggestions and/or requests for new features you'd like added to EViews.

Moderators: EViews Moderator, EViews Gareth

import from xlsx worksheet

Postby robconsip on Tue May 08, 2012 7:48 am

I'm trying to import data from single cells of Excel 2007/2010 worksheets using, for example, the following syntax:

import Mysheet.xlsx range="Myrange!H35:H35" @freq a 2010 @rename series01 myseries

Unfortunately specifying only the top left cell (H35) the import range is automatically extended to the other non-empty cells adjacent to the H35.
This seems to be a specifice feature of the "range" option.

I wonder if it's possible to specify the range option in an alternative way or if exists a workaround in order to read single cells.

Thank you very much for your help,
Roberto
robconsip
 
Posts: 2
Joined: Wed Oct 20, 2010 6:20 am

Re: import from xlsx worksheet

Postby EViews Chris on Wed May 09, 2012 4:22 pm

You're right. We're not distinguishing between a single cell and a range with the start and end being the same cell.

Here's a way that I think you can do what you want. Read two columns, then toss out the second one:

import Mysheet.xlsx range="Myrange!H35:I35" @freq a 2010 @keep series01 @rename series01 myseries

(I admit this seems kind of awkward, but changing the current behaviour would require some serious thought).
EViews Chris
EViews Developer
 
Posts: 127
Joined: Wed Sep 17, 2008 10:39 am


Return to Suggestions and Requests

Who is online

Users browsing this forum: No registered users and 1 guest