<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: problème importation date à partir d'excel in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/probl%C3%A8me-importation-date-%C3%A0-partir-d-excel/m-p/601264#M80458</link>
    <description>&lt;P&gt;From what I see, the first column Input date format is not standardized from the Excel file.&lt;/P&gt;&lt;P&gt;Maybe you can standardize the first column Input date before import.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_1-1676443051272.png" style="width: 290px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50167iCF3280F03C0CE711/image-dimensions/290x354?v=v2" width="290" height="354" role="button" title="WebDesignesCrow_1-1676443051272.png" alt="WebDesignesCrow_1-1676443051272.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I faced similar problems.&lt;/P&gt;&lt;P&gt;I noticed that Excel can read both numeric dates.&lt;/P&gt;&lt;P&gt;I found out if I divide the JMP Numeric "44...." with factor "0.0000119633880658225" --&amp;gt; then convert to Date M/D/YYYY hh:mm:ss AM/PM, I get almost similar date with what Excel read (but not exact).&lt;/P&gt;&lt;P&gt;This happens when there's a break in the rows of dataset. In my case, there're few empty cells between rows.&lt;/P&gt;&lt;P&gt;I'm sure there're some calculation on this but I couldn't figure out.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_0-1677470697547.png" style="width: 700px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50491i461C2A0DC954C9D4/image-dimensions/700x182?v=v2" width="700" height="182" role="button" title="WebDesignesCrow_0-1677470697547.png" alt="WebDesignesCrow_0-1677470697547.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 04:05:15 GMT</pubDate>
    <dc:creator>WebDesignesCrow</dc:creator>
    <dc:date>2023-02-27T04:05:15Z</dc:date>
    <item>
      <title>problème importation date à partir d'excel</title>
      <link>https://community.jmp.com/t5/Discussions/probl%C3%A8me-importation-date-%C3%A0-partir-d-excel/m-p/600819#M80419</link>
      <description>&lt;P&gt;bjr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;j'ai ce fichier excel avec 2 colonnes date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;quand j'importe directement dans Jmp, la prévisualisation donne ceci:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="capture 1.JPG" style="width: 754px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50132iCEE8BCAC09E4F3DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture 1.JPG" alt="capture 1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;quand j'importe, j'ai ceci:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture 2.JPG" style="width: 458px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50133i9561BEBD8C0CD82C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture 2.JPG" alt="Capture 2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;si je passe par un script comme ceci:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
	dt1 =	Open(
			"/E:/Pb date.xlsx",
			Worksheets( "Feuil1" ),
			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( "-" )
			)
		);


Column( dt1, "Date de fab 2022" ) &amp;lt;&amp;lt; data type( Numeric ) &amp;lt;&amp;lt; Modeling Type( Ordinal ) &amp;lt;&amp;lt; Format( "d/m/y", "-1", "NO", "" );
Column( dt1, "Date de fab" ) &amp;lt;&amp;lt; data type( Numeric ) &amp;lt;&amp;lt; Modeling Type( Ordinal ) &amp;lt;&amp;lt; Format( "d/m/y", "-1", "NO", "" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;j'obtiens ceci:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture 3.JPG" style="width: 601px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50134i752D39450E25E82B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture 3.JPG" alt="Capture 3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;j'ai essayé en changeant les formats dans le script. je ne suis pas arrivé à bien importer la seconde colonne date en format numérique, continue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;je ne comprends pas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;si quelqu'un a la solution....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cordialement.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:36:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/probl%C3%A8me-importation-date-%C3%A0-partir-d-excel/m-p/600819#M80419</guid>
      <dc:creator>Françoise</dc:creator>
      <dc:date>2023-06-08T16:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: problème importation date à partir d'excel</title>
      <link>https://community.jmp.com/t5/Discussions/probl%C3%A8me-importation-date-%C3%A0-partir-d-excel/m-p/600847#M80421</link>
      <description>&lt;P&gt;Bonjour&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9761"&gt;@Françoise&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Votre première colonne de date sur le fichier Excel ne contient bien que des valeurs numériques au format date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Le problème de la seconde colonne semble porter sur la formule Excel contenue dans les cellules. Il y a une formule faisant référence à un emplacement B:\ et à un autre fichier Excel dans cette colonne, donc elle ne contient pas directement les valeurs au bon format. Un moyen de s'en assurer est de copier cette colonne sur Excel et réaliser un "collage spécial" avec les valeurs uniquement sur une autre colonne, ce qui donne le même résultat que ce que vous avez sur JMP (valeur 44927 sans format spécifique). Du coup, les scripts réalisés après portent soit sur une formule Excel non prise en compte dans JMP (et donnent un résultat "valeur manquante" : les points), ou un résultat de valeur comme on peut avoir sous Excel en copiant uniquement les valeurs (:44927).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pour importer correctement cette colonne il faudrait plutôt réaliser une jointure avec le fichier source et/ou éviter les formules dans les cellules.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;En espérant que cette réponse vous aide,&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 12:31:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/probl%C3%A8me-importation-date-%C3%A0-partir-d-excel/m-p/600847#M80421</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2023-02-14T12:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: problème importation date à partir d'excel</title>
      <link>https://community.jmp.com/t5/Discussions/probl%C3%A8me-importation-date-%C3%A0-partir-d-excel/m-p/600859#M80423</link>
      <description>&lt;P&gt;bjr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;merci pour cette réponse.&lt;/P&gt;&lt;P&gt;en fait, j'ai 2 BDD (2022 et 2023).= bdd année civile.&lt;/P&gt;&lt;P&gt;pour le message, j'ai copié collé&amp;nbsp; les2 colonnes dans un fichier excel pour exemple.&lt;/P&gt;&lt;P&gt;je n'ai pas de problème avec 2022, par contre avec la BDD 2023, je n'arrive pas à importer la date au bon format malgré plusieurs essais de formats et en formattant au même format les colonnes dates dans les 2 BDD excel.&lt;/P&gt;&lt;P&gt;le résultat que je montre est le même&amp;nbsp; que quand j'importe directement à partir de la BDD 2023.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cdlt&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 12:44:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/probl%C3%A8me-importation-date-%C3%A0-partir-d-excel/m-p/600859#M80423</guid>
      <dc:creator>Françoise</dc:creator>
      <dc:date>2023-02-14T12:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: problème importation date à partir d'excel</title>
      <link>https://community.jmp.com/t5/Discussions/probl%C3%A8me-importation-date-%C3%A0-partir-d-excel/m-p/601264#M80458</link>
      <description>&lt;P&gt;From what I see, the first column Input date format is not standardized from the Excel file.&lt;/P&gt;&lt;P&gt;Maybe you can standardize the first column Input date before import.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_1-1676443051272.png" style="width: 290px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50167iCF3280F03C0CE711/image-dimensions/290x354?v=v2" width="290" height="354" role="button" title="WebDesignesCrow_1-1676443051272.png" alt="WebDesignesCrow_1-1676443051272.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I faced similar problems.&lt;/P&gt;&lt;P&gt;I noticed that Excel can read both numeric dates.&lt;/P&gt;&lt;P&gt;I found out if I divide the JMP Numeric "44...." with factor "0.0000119633880658225" --&amp;gt; then convert to Date M/D/YYYY hh:mm:ss AM/PM, I get almost similar date with what Excel read (but not exact).&lt;/P&gt;&lt;P&gt;This happens when there's a break in the rows of dataset. In my case, there're few empty cells between rows.&lt;/P&gt;&lt;P&gt;I'm sure there're some calculation on this but I couldn't figure out.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_0-1677470697547.png" style="width: 700px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50491i461C2A0DC954C9D4/image-dimensions/700x182?v=v2" width="700" height="182" role="button" title="WebDesignesCrow_0-1677470697547.png" alt="WebDesignesCrow_0-1677470697547.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 04:05:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/probl%C3%A8me-importation-date-%C3%A0-partir-d-excel/m-p/601264#M80458</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2023-02-27T04:05:15Z</dc:date>
    </item>
  </channel>
</rss>

