I have situation where the data I need to analyze in JMP is stored somewhat haphazardly in in an Excel file. I fortunately can easily get a list of the Excel cells that the data is in, and I would like to automate with JSL importing those values. I am looking for ideas on how to do this effectively and efficiently.
For example, let's say the data I need in a single column in JMP is stored in these excel cells
E284,E400,E507,D615,E727,D852,E1003,E1114,D1220,D1339,E1493
I tried using Open() and specifying the worksheet, starting Row, Ending Row, Starting Column, Ending Column to just get each value in a JMP file with a single row/column, e.g.
Open(
"C:\temp\worksheet.xlsx",
Worksheets( "sheet1" ),
Use for all sheets( 0 ),
Concatenate Worksheets( 0 ),
Create Concatenation Column( 0 ),
Worksheet Settings(
1,
Has Column Headers( 0 ),
Number of Rows in Headers( 1 ),
Headers Start on Row( 1 ),
Data Starts on Row( 284 ), // get data on row 284
Data Starts on Column( 5 ), // get data on column "E" (the fifth column)
Data Ends on Row( 284 ), // get data on row 284
Data Ends on Column( 5 ), // get data on column "E" (the fifth column)
Replicated Spanned Rows( 1 ),
Replicated Spanned Headers( 0 ),
Suppress Hidden Rows( 1 ),
Suppress Hidden Columns( 1 ),
Suppress Empty Columns( 1 ),
Treat as Hierarchy( 0 ),
Multiple Series Stack( 0 ),
Import Cell Colors( 0 ),
Limit Column Detect( 0 ),
Column Separator String( "-" )
)
)
I would then get a separate data file for each value I want to retrieve from a specific cell and then gather the values in the separate JMP files all together in to one data table in one column.
One problem I am facing is that it seems that when you open an excel file, all the blank rows at the top of the excel worksheet are ignored? So row 1 is not really row 1 unless there is some data in row 1. Is that true?
Any other ideas would be helpful.