Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get rows from a second table in the same spreadsheet with the same header? #260

Closed
THPubs opened this issue Oct 13, 2015 · 3 comments

Comments

@THPubs
Copy link

THPubs commented Oct 13, 2015

In my spreadsheet, (I have attached a sample) I have two tables. Both have similar headings. When I run xl.parse(:id => 'SKU Code') it returns rows from the first table. But how to get data from the second table?

https://drive.google.com/file/d/0B_qbiPxuAyj7MTJkdms4M2M1Vm8/view?usp=sharing

@stevendaniels
Copy link
Contributor

You need to switch to the other sheet.

xl.default_sheet = xl.sheets.last
xl.parse(:id => 'SKU Code')

@THPubs
Copy link
Author

THPubs commented Oct 13, 2015

@stevendaniels Unfortunately it's in the same sheet!

@stevendaniels
Copy link
Contributor

@THPubs I see what you mean. Unfortunately, Roo doesn't support such a capability. 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants