<?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: Similar function same as excel &amp;lt;FLOOR(S2,&amp;quot;3:00&amp;quot;)&amp;gt; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/370031#M61981</link>
    <description>&lt;P&gt;I think you want to floor the time to the same value for each 3 hour range.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works&amp;nbsp; by&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Floor( :date / (3 * 60 * 60) ) * (3 * 60 * 60)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;assuming :date is the original column.&lt;/P&gt;&lt;P&gt;First the original date is divided so that 1 is a step of 3 hours (3 hours x 60 min x 60 s, JMP calculates in seconds), than floor is applied, than it is calculated back to the original range.&lt;/P&gt;</description>
    <pubDate>Sat, 20 Mar 2021 18:23:31 GMT</pubDate>
    <dc:creator>Georg</dc:creator>
    <dc:date>2021-03-20T18:23:31Z</dc:date>
    <item>
      <title>Similar function same as excel &lt;FLOOR(S2,"3:00")&gt;</title>
      <link>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/369342#M61908</link>
      <description>&lt;P&gt;Need help on similar function for grouping date/time on new column same as excel &amp;lt;FLOOR(S2,"3:00")&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:27:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/369342#M61908</guid>
      <dc:creator>bhpan</dc:creator>
      <dc:date>2023-06-10T23:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Similar function same as excel &lt;FLOOR(S2,"3:00")&gt;</title>
      <link>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/369397#M61912</link>
      <description>&lt;P&gt;Here is one way to handle it, assuming that the S2 value is in a column called Column 1 in the JMP Data table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Informat( Short Date( :Column 1 ), "mm/dd/yyyy" )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is another&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Date MDY( Month( :Column 1 ), Day( :Column 1 ), Year( :Column 1 ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t1.PNG" style="width: 633px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31378iE4F5F226AACF18C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="t1.PNG" alt="t1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 03:43:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/369397#M61912</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-03-19T03:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Similar function same as excel &lt;FLOOR(S2,"3:00")&gt;</title>
      <link>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/369511#M61917</link>
      <description>&lt;P&gt;I assume you mean round to the date so you can tabulate over it.&lt;/P&gt;&lt;P&gt;formula:&amp;nbsp;:Column1- Time Of Day( :Column1 )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or: right click on the column header --&amp;gt; New Formula Column --&amp;gt; Date Time --&amp;gt; Date will do the same&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="date.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31382i280E70AA3B6AF499/image-size/medium?v=v2&amp;amp;px=400" role="button" title="date.png" alt="date.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 08:56:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/369511#M61917</guid>
      <dc:creator>Mauro_Gerber</dc:creator>
      <dc:date>2021-03-19T08:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Similar function same as excel &lt;FLOOR(S2,"3:00")&gt;</title>
      <link>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/370031#M61981</link>
      <description>&lt;P&gt;I think you want to floor the time to the same value for each 3 hour range.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works&amp;nbsp; by&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Floor( :date / (3 * 60 * 60) ) * (3 * 60 * 60)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;assuming :date is the original column.&lt;/P&gt;&lt;P&gt;First the original date is divided so that 1 is a step of 3 hours (3 hours x 60 min x 60 s, JMP calculates in seconds), than floor is applied, than it is calculated back to the original range.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 18:23:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/370031#M61981</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2021-03-20T18:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Similar function same as excel &lt;FLOOR(S2,"3:00")&gt;</title>
      <link>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/370243#M61999</link>
      <description>&lt;P&gt;This choice is perhaps a matter of personal preference, but JMP provides many functions for date and time values, which can present difficult boundary conditions. (For example, think leap years. Not to worry in this case, but a general caution.) So this case might use this function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Floor( :date / In Hours( 3 ) ) * In Hours( 3 ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 12:30:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Similar-function-same-as-excel-lt-FLOOR-S2-quot-3-00-quot-gt/m-p/370243#M61999</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-03-22T12:30:59Z</dc:date>
    </item>
  </channel>
</rss>

