In the spirit of teaching to fish rather than handing out fish, I'm going to point you in the right direction. First step is to let JMP write the script for you to import the table. Import one of your excel files manually, using Excel Import Wizard if necessary. The resulting table will have a script titled "Source" that contains the script to import the Excel file. It might look something like this:
Open(
"filename.xlsx",
Worksheets( "Sheet 1" ),
Use for all sheets( 1 ),
Concatenate Worksheets( 0 ),
Create Concatenation Column( 0 ),
Worksheet Settings(
1,
Has Column Headers( 1 ),
Number of Rows in Headers( 1 ),
Headers Start on Row( 1 ),
Data Starts on Row( 2 ),
Data Starts on Column( 1 ),
Data Ends on Row( 0 ),
Data Ends on Column( 0 ),
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( "-" )
)
);
This is the start of your own script. Copy it over to a script window. To put a handle on the data table from the imported Excel file, just put a "<var name> = " before "Open(".
Next, you need to do whatever modification to the table contents. You can access a specific value in the desired row and column and set the value using something like this:
dt:<colname>[<row number>] = <desired value>
If the column name has any special characters, then use dt:Name("<column name>")[<row number>].
Last, you need to export the results. There are a few other posts on the community that walk you through saving a JMP table in the .xlsx format. Here's a recent one: https://community.jmp.com/t5/Discussions/Saving-Data-Table-to-Excel-format/td-p/40392
I strongly encourage you to try and put the pieces together on your own. That's the only way you will become proficient at scripting. If you do get stuck on any particular part, we're here to help.
-- Cameron Willden