cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

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

I want change the numbers, 1 ~ 9 to 01 ~ 09 in column

Hello,

 

I have two column, Lot and wafer as shown below.

How can I make wafer_rev column, where the single digit values (1~9) are changed to double digits (ex, 01, 02, ,,,,09. No change in 11~20)

 

Is there a simple script for this ?

Please advise me.

 

Lot

wafer

Wafer_rev

DA1

1

01

FA2

3

03

UJ3

11

11

DS2

9

03

 

Thank you in advance

1 REPLY 1
txnelson
Super User

Re: I want change the numbers, 1 ~ 9 to 01 ~ 09 in column

If what you are attempting to do, is to get your data to order correctly, the easiest thing to do, is to just change the Data Type of the wafer column to numeric.

But if you need it for other reasons, a simple formula to use for the Water_rev column is:

Substr( "0", Length( :Wafer ) ) || :Wafer
Jim

Recommended Articles