<?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: Rearranging Data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Rearranging-Data/m-p/876088#M103929</link>
    <description>&lt;P&gt;My suggestions to reformat the Excel sheets you are importing in the first place.&amp;nbsp; I suggest to my clients who all use excel is to create the data table the way you want in JMP and then export it into excel to be populated.&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2025 14:53:17 GMT</pubDate>
    <dc:creator>statman</dc:creator>
    <dc:date>2025-05-23T14:53:17Z</dc:date>
    <item>
      <title>Rearranging Data</title>
      <link>https://community.jmp.com/t5/Discussions/Rearranging-Data/m-p/876043#M103926</link>
      <description>&lt;P&gt;I have a data set that comes in from Excel whereby several key pieces of information are arranged in individual cells.&amp;nbsp; To make this data useful in JMP, I came up with a scheme to populate the data systematically in columns using lag statements.&amp;nbsp; I have some consistency in the layout which allows me to use fixed lag values.&amp;nbsp; I included an example for rearranging the data contained in the cell to the right of "Recipe".&amp;nbsp; I suspect that what I'm doing is more cumbersome than necessary if anyone has a better suggestion?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SpannerHead_0-1748008474617.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76168i2545C60B44FAEB15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SpannerHead_0-1748008474617.png" alt="SpannerHead_0-1748008474617.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SpannerHead_1-1748008651141.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76169iD652D8BFF8060F7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SpannerHead_1-1748008651141.png" alt="SpannerHead_1-1748008651141.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	New Column("Recipe2", Character, "Nominal", Formula(If(!Is Missing(:Column 7), If(:Column 1 == "Recipe", :Column 2, Lag(:Recipe2, 1)))));
	New Column("Recipe", Character, "Nominal", Formula(If(!Is Missing(:Column 7), If(Is Missing(:"Recipe2"n), Lag(:"Recipe2"n, -4), :"Recipe2"n))));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 May 2025 13:58:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rearranging-Data/m-p/876043#M103926</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-05-23T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rearranging Data</title>
      <link>https://community.jmp.com/t5/Discussions/Rearranging-Data/m-p/876075#M103927</link>
      <description>&lt;P&gt;Split and join/update could potentially be enough but difficult to say without seeing your data. For example from here&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1748009217541.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76172iC54DB2043FEF24AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1748009217541.png" alt="jthi_0-1748009217541.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can split your data and get clean single row which you could possibly join/update to your data&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1748009238377.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76173i1685242915F60FC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1748009238377.png" alt="jthi_1-1748009238377.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With multiple groups? you could add running number to the groups and use that as group in split&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 14:08:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rearranging-Data/m-p/876075#M103927</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-05-23T14:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rearranging Data</title>
      <link>https://community.jmp.com/t5/Discussions/Rearranging-Data/m-p/876088#M103929</link>
      <description>&lt;P&gt;My suggestions to reformat the Excel sheets you are importing in the first place.&amp;nbsp; I suggest to my clients who all use excel is to create the data table the way you want in JMP and then export it into excel to be populated.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 14:53:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rearranging-Data/m-p/876088#M103929</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2025-05-23T14:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rearranging Data</title>
      <link>https://community.jmp.com/t5/Discussions/Rearranging-Data/m-p/876142#M103933</link>
      <description>&lt;P&gt;I came up with a simplification of the approach I'm already using to eliminate the need for pairs of columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	New Column("Recipe", Character, "Nominal", Formula(If(!Is Missing(:Column 7), If(Lag(:Column 1, -4) == "Recipe", Lag(:Column 2, -4), Lag(:Recipe, 1)))));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 May 2025 18:26:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rearranging-Data/m-p/876142#M103933</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-05-23T18:26:10Z</dc:date>
    </item>
  </channel>
</rss>

