cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
aaronjiang
Level I

JMP import Excel from columns that are not continuous

My example here is: I have an excel table currently with 50 columns and is continuously growing. I only want to import first 4 column and last 5 column at any time. How do I achieve that with JMP script.

1 REPLY 1
txnelson
Super User

Re: JMP import Excel from columns that are not continuous

I am not aware of being able to input just a specified list of columns from an Excel spreadsheet. (but I am not an Excel expert).  However, if you place this JSL as the first statements after reading in the spreadsheet it will delete the unwanted columns.

Names Default To Here( 1 );
dt = Current Data Table();
dt << delete columns(index(5,ncols(dt)-5));

 

Jim

Recommended Articles