<?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 Time values in xls or xlsx, csv, and JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Time-values-in-xls-or-xlsx-csv-and-JMP/m-p/416091#M66537</link>
    <description>&lt;P&gt;Hi all, I have a strange issue with the time values from my excel. I have some data (example is attached here as excel file), the time column is an interest for me and I would add the date and time column together to create a date time column. To analyze the data, I use JMP so I am importing the excel file.&lt;/P&gt;&lt;P&gt;However, I ran into a number of oddities:&lt;/P&gt;&lt;P&gt;1. When I import multiple files (from customers to analyze their data for them), the time values the time values (in seconds) are negative and it is starting from 1899 when I changed the format to mm:dd:yyyy hh:mm:ss. When I save the file as CSV again, then open again with JMP, the time values are correct (as listed on the original excel file).&lt;/P&gt;&lt;P&gt;2. When I change the format of the excel files to CSV, the time values are correct once imported into JMP. For the files that are xls or xlsx, I will need to change them into CSV. Why is that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are notes of my thoughts on what is going on and how I arrived at the two solutions that result in a desired date-time format.&lt;/P&gt;&lt;P&gt;1. Covert the date and time into character strings, then concatenate both columns. Copy the properties, paste into a new column and then change the format back to numeric. But this does not always work!&lt;/P&gt;&lt;P&gt;2. The Second() function extracted negative values…and only Second(), which was interesting.&amp;nbsp;&amp;nbsp;the formula is below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Informat(&lt;BR /&gt;Char( Format( :Date, "mm/dd/yyyy" ) ) || " " ||&lt;BR /&gt;Char( Hour( :Time, 24 ) ) || ":" || Char( Minute( :Time ) ) ||&lt;BR /&gt;":" || Char( 60 + Second( :Time ) ),&lt;BR /&gt;"mm/dd/yyyy HH:mm:ss"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This post has the correct excel data, posted one with a lot of mistakes earlier but can't edit or remove.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:36:38 GMT</pubDate>
    <dc:creator>fliew0410</dc:creator>
    <dc:date>2023-06-10T23:36:38Z</dc:date>
    <item>
      <title>Time values in xls or xlsx, csv, and JMP</title>
      <link>https://community.jmp.com/t5/Discussions/Time-values-in-xls-or-xlsx-csv-and-JMP/m-p/416091#M66537</link>
      <description>&lt;P&gt;Hi all, I have a strange issue with the time values from my excel. I have some data (example is attached here as excel file), the time column is an interest for me and I would add the date and time column together to create a date time column. To analyze the data, I use JMP so I am importing the excel file.&lt;/P&gt;&lt;P&gt;However, I ran into a number of oddities:&lt;/P&gt;&lt;P&gt;1. When I import multiple files (from customers to analyze their data for them), the time values the time values (in seconds) are negative and it is starting from 1899 when I changed the format to mm:dd:yyyy hh:mm:ss. When I save the file as CSV again, then open again with JMP, the time values are correct (as listed on the original excel file).&lt;/P&gt;&lt;P&gt;2. When I change the format of the excel files to CSV, the time values are correct once imported into JMP. For the files that are xls or xlsx, I will need to change them into CSV. Why is that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are notes of my thoughts on what is going on and how I arrived at the two solutions that result in a desired date-time format.&lt;/P&gt;&lt;P&gt;1. Covert the date and time into character strings, then concatenate both columns. Copy the properties, paste into a new column and then change the format back to numeric. But this does not always work!&lt;/P&gt;&lt;P&gt;2. The Second() function extracted negative values…and only Second(), which was interesting.&amp;nbsp;&amp;nbsp;the formula is below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Informat(&lt;BR /&gt;Char( Format( :Date, "mm/dd/yyyy" ) ) || " " ||&lt;BR /&gt;Char( Hour( :Time, 24 ) ) || ":" || Char( Minute( :Time ) ) ||&lt;BR /&gt;":" || Char( 60 + Second( :Time ) ),&lt;BR /&gt;"mm/dd/yyyy HH:mm:ss"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This post has the correct excel data, posted one with a lot of mistakes earlier but can't edit or remove.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:36:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Time-values-in-xls-or-xlsx-csv-and-JMP/m-p/416091#M66537</guid>
      <dc:creator>fliew0410</dc:creator>
      <dc:date>2023-06-10T23:36:38Z</dc:date>
    </item>
  </channel>
</rss>

