cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Florent_M
Level III

Importing Excel Files Containing Mixed Date Formats into JMP results in missing values

Hello!

I am currently facing an issue while importing an Excel file that contains a date column into JMP. This column includes two different formats: "DD/MM/YYYY" and "DD/MM/YYYY hh:mm". The "DD/MM/YYYY" format should be interpreted as midnight, i.e., "DD/MM/YYYY 00:00".

 

However, when I import the file into JMP, whether via script or the GUI, whatever import option used, JMP seems to import missing values for one of these two formats, depending which format is on the second row. Please refer to the attached Excel sample for a better understanding.

 

Florent_M_2-1728897640319.png      Florent_M_3-1728897664052.png

 

My objective is to automate the processing of multiple files using a script that can handle this inconsistency.

 

I would greatly appreciate any assistance or guidance you can provide. Thank you for your support.

 

Kind regards,

Florent

4 REPLIES 4
jthi
Super User

Re: Importing Excel Files Containing Mixed Date Formats into JMP results in missing values

You could for example import your data as characters and then fix it by using JSL or JMPs tools after. You should be able to do this by telling JMP that there are no headers and data starts on row 1

jthi_0-1728899966733.png

jthi_1-1728899974006.png

 

-Jarmo
Florent_M
Level III

Re: Importing Excel Files Containing Mixed Date Formats into JMP results in missing values

It is not straight forward, but it works. 

Many thanks,
Florent

txnelson
Super User

Re: Importing Excel Files Containing Mixed Date Formats into JMP results in missing values

I can not replicate your findings.  I am running on a Windows 11 system and imported your sample file under JMP 18, 16 and 14.  None of these imports read in missing values.  I did have to change the display format to "m/d/y h:m:s" for the times to be displayed.

 

What version of JMP are you using, and on what operating system.

Jim
Florent_M
Level III

Re: Importing Excel Files Containing Mixed Date Formats into JMP results in missing values

I use windows 11 and JMP18.0.1. I send you the jmp table that I have when I open the file with default setting.

Thanks,
Florent