<?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: Skip Blank Rows in READEXCEL in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614161#M186142</link>
    <description>&lt;P&gt;I had a similar problem but in the columns, which is easier.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe READEXCEL stops when it hits a zero row.&amp;nbsp; I would start with the following steps.&lt;/P&gt;
&lt;P&gt;Try reading the entire excel worksheet&lt;/P&gt;
&lt;P&gt;Count the rows in Prime&lt;/P&gt;
&lt;P&gt;Start a new READEXCEL starting at A:row+1.&amp;nbsp; Prime origin is one less than Excel&lt;/P&gt;
&lt;P&gt;Stack the two matrices&lt;/P&gt;
&lt;P&gt;Count the rows in Prime.&lt;/P&gt;
&lt;P&gt;Start a new READEXCEL starting at A:row+2&lt;/P&gt;
&lt;P&gt;Continue this process until you get a matrix that is all zeros or row equals 1.&lt;/P&gt;
&lt;P&gt;The one concern is if the Excel data has two rows that are zeros.&lt;/P&gt;
&lt;P&gt;With 500,000 data rows, it may be worth the time to write a program to read the excel sheet&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 15:24:32 GMT</pubDate>
    <dc:creator>tietjee</dc:creator>
    <dc:date>2019-06-14T15:24:32Z</dc:date>
    <item>
      <title>Skip Blank Rows in READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614061#M186133</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on a Mathcad Prime 5.0.0 worksheet. My goal is to import data from Excel, and later in my worksheet run data analysis for the found set.&amp;nbsp; I am struggling a bit to emulate the behavior for CSVs where the imported data is limited to non-blank rows and columns (once it finds the empty rows and columns it automatically stops importing). The &lt;A target="_blank" rel="noopener"&gt;help&lt;/A&gt; indicates a way to command READEXCEL to "stop" on a blank row. The problem is that I cannot get it to work. Maybe the previous emptyfill parameter where you fill blanks with something is preventing the "stop" on blank? I cannot figure out how to make it work, and all of the examples use only the most basic inputs.&amp;nbsp; Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The screenshot shown below shows that though I try to "stop" on blankrows, it is persisting; I get all 500010 rows even though there are only 180k lines of data.&amp;nbsp; Perhaps the substitute of NaN is the issue? I have also specified "" as the emptyfill and gotten the same result.&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="Import.PNG" style="width: 676px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/17073i036FDB90ECD4F9E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Import.PNG" alt="Import.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:19:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614061#M186133</guid>
      <dc:creator>Theo_Gagner</dc:creator>
      <dc:date>2019-06-14T12:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Blank Rows in READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614065#M186134</link>
      <description>&lt;P&gt;Is FilterNAN what you're looking for?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 01:48:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614065#M186134</guid>
      <dc:creator>DJF</dc:creator>
      <dc:date>2019-06-14T01:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Blank Rows in READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614074#M186135</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample excel imported into Mathcad.&amp;nbsp; It shows what happens with Nan's and "stop"&amp;nbsp; You can easily see using this sample file what READEXCEL does.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/17077i983E8369352B0936/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&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="Capture-2.PNG" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/17078i6CB8E1424A127CAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture-2.PNG" alt="Capture-2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 04:57:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614074#M186135</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2019-06-14T04:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Blank Rows in READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614078#M186136</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the entire row is blank including row headers "stop" works as an option in READEXCEL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 05:29:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614078#M186136</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2019-06-14T05:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Blank Rows in READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614128#M186137</link>
      <description>&lt;P&gt;I don't think so. I want to define a wide range of both rows and columns, and have the import, at least for rows, stop once it runs out of data.&amp;nbsp; That is, even though I have defined 500k rows, if blank rows start at 180k the import should stop.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:21:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614128#M186137</guid>
      <dc:creator>Theo_Gagner</dc:creator>
      <dc:date>2019-06-14T12:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Blank Rows in READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614134#M186138</link>
      <description>&lt;P&gt;Terry,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like your solution is substituting the string "stop" as emptyfill, and I see the program doing that; filling the empty cells with a string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For my program, I would like to specify a fairly unbound end row. My current code shows 500k but even better would be 10M. I want the data import to auto stop at the first empty row, and not actually run out to the range I specified.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:45:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614134#M186138</guid>
      <dc:creator>Theo_Gagner</dc:creator>
      <dc:date>2019-06-14T12:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Blank Rows in READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614153#M186140</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ability to "stop" on an empty row seems to work with this small sample file. N is only two rows.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/17096i825A1F2812CACDE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture-2.PNG" style="width: 975px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/17097i5A09E66AF39008A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture-2.PNG" alt="Capture-2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:45:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614153#M186140</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2019-06-14T14:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Blank Rows in READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614161#M186142</link>
      <description>&lt;P&gt;I had a similar problem but in the columns, which is easier.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe READEXCEL stops when it hits a zero row.&amp;nbsp; I would start with the following steps.&lt;/P&gt;
&lt;P&gt;Try reading the entire excel worksheet&lt;/P&gt;
&lt;P&gt;Count the rows in Prime&lt;/P&gt;
&lt;P&gt;Start a new READEXCEL starting at A:row+1.&amp;nbsp; Prime origin is one less than Excel&lt;/P&gt;
&lt;P&gt;Stack the two matrices&lt;/P&gt;
&lt;P&gt;Count the rows in Prime.&lt;/P&gt;
&lt;P&gt;Start a new READEXCEL starting at A:row+2&lt;/P&gt;
&lt;P&gt;Continue this process until you get a matrix that is all zeros or row equals 1.&lt;/P&gt;
&lt;P&gt;The one concern is if the Excel data has two rows that are zeros.&lt;/P&gt;
&lt;P&gt;With 500,000 data rows, it may be worth the time to write a program to read the excel sheet&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 15:24:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614161#M186142</guid>
      <dc:creator>tietjee</dc:creator>
      <dc:date>2019-06-14T15:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Blank Rows in READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614178#M186147</link>
      <description>&lt;P&gt;The syntax you use is correct and should work (and indeed does so in a small example file I created)&lt;/P&gt;
&lt;P&gt;basically Terrys lat post shows that, too. You may replace the string "blank" in his example by NaN.&lt;/P&gt;
&lt;P&gt;So if it does not work with your Excel sheet, it might be that the row you think is empty in reality contains some hidden data and so is not seen as empty by Mathcad.&lt;/P&gt;
&lt;P&gt;You should create a smaller sample Excel file and post it here along with your Prime worksheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 17:09:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614178#M186147</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2019-06-14T17:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Skip Blank Rows in READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614183#M186148</link>
      <description>&lt;P&gt;It was not, but thanks for mentioning it! It definitely came in use later in the sheet to clean up the data (the columns have different lengths).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 17:32:32 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Skip-Blank-Rows-in-READEXCEL/m-p/614183#M186148</guid>
      <dc:creator>Theo_Gagner</dc:creator>
      <dc:date>2019-06-14T17:32:32Z</dc:date>
    </item>
  </channel>
</rss>

