In JMP 11 the excellent Excel import wizard lets you specify how many rows are to be considered headers and where they are, and then lets you specify where the data is. Doing this interactively or using the script that gets embedded in the resulting JMP file, you can take an Excel sheet that looks like this:
Length Width Weight
ft in lb
1 10 100
2 20 200
3 30 300
4 40 400
5 50 500
6 60 600
and end up with a JMP table that looks like this:
Length-ft | Width-in | Weight-lb |
1 | 10 | 100 |
2 | 20 | 200 |
3 | 30 | 300 |
4 | 40 | 400 |
5 | 50 | 500 |
6 | 60 | 600 |
If that is adequate then you are done. If not then you can run a script something like the following:
dt = Current Data Table();
For( colnum = 1, colnum <= 3, colnum++,
col = Column Name( colnum );
charcol = Char( Column Name( colnum ) );
colname = Word( 1, charcol, "-" );
colunit = Word( 2, charcol, "-" );
newcolname = col << Set Name( colname );
newcolname << Set Property( "Units", Eval( colunit ) );
);
to end up with a JMP table that looks like this:
Length Width Weight
(ft) (in) (lb)
1 10 100
2 20 200
3 30 300
4 40 400
5 50 500
6 60 600
where the text between parentheses are entered into the Units property of each column.