cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Françoise
Level V

problème import date excel

bonjour,Capture 3003 XLS.PNGCapture 3003 JMP.PNG

 

je n'arrive pas pas à importer les bonnes dates à partir d'un fichier excel.

j'ai mis au bon format la colonne date excel.

j'ai essayé plusieurs formats dates dans Jump.

 

Jump n'importe pas toutes les dates et pas au bon format.

 

en jaune: le fichier excel.

 

est-ce que quelqu'un a une solution?

 

cordialement

5 REPLIES 5

Re: problème import date excel

Difficult to say without having the actual files. Perhaps you could put the Excel file here, but only with the first two columns? Also, how are you trying to get the data into JMP? Are you using the Excel wizard? That will allow you to try different things to ensure that you get the data to come in properly.

 

My best guess is that the format of the dates is causing issues. It looks like you have this as dd/mm/yy. However, the first 16 rows or so could easily be interpreted as mm/dd/yy format. JMP is likely picking up that and setting the rest of that column to that format. In JMP, try looking at the column properties for your date column. Make sure that the format and the Input format are both d/m/y. Perhaps that will solve the issue.

Dan Obermiller
Françoise
Level V

Re: problème import date excel

bonjour,

 

merci pour votre réponse rapide.

j’utilise l’assistant d’importation Excel et je récupère le script d’importation pour construire des dashboards.

le fichier Excel qui pose problème appartient à un groupe de 10 fichiers Excel qui ont la même fonction (= fichier de calibration d’analyse pour des matières différentes) . Je n’ai pas de problème avec les 9 autres fichiers pour importer les dates. 

J’ai fait des essais de formatage de colonnes pour excel et Jmp (j’utilise Jmp depuis la version 3).

Je continue à vérifier pour le fichier excel....

 

Thierry_S
Super User

Re: problème import date excel

Hi Francoise,

It looks like the dates that do not fit the US date format (Month/Day/Year) are ignored because your input is in an international format (Day/Month/Year). As Dan suggested, I recommend using the Excel import wizard to help JMP figure out the date format.

 

Also, when I encounter similar problems, I import the dates as text and then change the column format to Numerical with an Input Format "dd/mm/yyyy" and an output format (Date) of your choosing.

 

Let us know if that helps.

 

Best,

TS

Thierry R. Sornasse
Françoise
Level V

Re: problème import date excel

Hi,

 faut-il faire ceci:

Column( dtMAT, "Date" ) << data type( Character ) << Modeling Type( "Nominal" );
Column( dtMAT, "Date" ) << Set name( "Date origine XLS" );

Col = New Column( "Date" ) << Set data type( Numeric ) << Set Modeling Type( "Continuous" ) << << Input Format( "dd/md/yyyy", 15 ) << Output Format( "dd/mm/yy" ) << Formula( (:Date origine XLS) ); 

JMP importe toutes les dates en character nominal mais pas possible d'avoir le format numérique continu

 

cdlt

 

 

Françoise
Level V

Re: problème import date excel

Hi,

 

problème résolu avec "Informat":

Column( dt, "Date" ) << Data Type( "Numeric", Informat( "d/m/y" ), Format( "d/m/y" ) ) <<
Modeling Type( "Continuous" );

 

cordialement