Skip to main content
Question

Reading specific rows in excel/csv

  • January 29, 2019
  • 4 replies
  • 208 views

Forum|alt.badge.img

Hi All,

Hope you are doing good.

I have an excel sheet containing a set of data wherein i wish to read only a specific set of rows. Test Excel.xlsx

In my case, i wish to read the data below the string (in mass percent) in row 280 from 281 to 296 with 281 as the column names. The whole table is supposed to be read below the above mentioned string. These row numbers may change with different excel sheets. So i need a generalized solution.

Please help. Thanks.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • January 30, 2019

Hi @asabhinavgreats Will the field names always be Carbon, Para, Iso, and Fin? You could read the Excel file, use a Tester to find where column A = (in mass percent), then use an AttributeManager to assign values of columns A-D to Carbon, Para, Iso, and Fin. Continue testing until 'Grand Total:' is found in column A.

 


fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • January 30, 2019

Here's a solution using VariableSetters and VariableRetrievers


fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • January 30, 2019

Hi @asabhinavgreats Will the field names always be Carbon, Para, Iso, and Fin? You could read the Excel file, use a Tester to find where column A = (in mass percent), then use an AttributeManager to assign values of columns A-D to Carbon, Para, Iso, and Fin. Continue testing until 'Grand Total:' is found in column A.

 

Here's a solution using VariableSetters and VariableRetrievers


Forum|alt.badge.img

Here's a solution using VariableSetters and VariableRetrievers

Thanks Dan for the answer. I tried using your method and it worked.