<?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: READEXCEL in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719544#M195009</link>
    <description>&lt;P&gt;You should (ALWAYS) attach THE worksheet, or at least A worksheet, that demonstrates the problem.&lt;/P&gt;
&lt;P&gt;Anyway, I can see that you DID NOT type the opening square bracket before ORIGIN. It isn't there for nothing.&lt;/P&gt;
&lt;P&gt;This is what you should get,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1616072087147.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39064i3F7F51E3420F142F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1616072087147.png" alt="LucMeekes_0-1616072087147.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and attached Prime file has the expression as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ORIGIN is not a function, but a Mathcad/Prime system variable that defines the origin of indexing in matrices and vectors (arrays). By default it is set to 0 (meaning that the first element of vector V is V&lt;FONT size="2"&gt;0&lt;/FONT&gt;, but it can be set to any value (in real Mathcad ) or to 0 or 1 (in Prime).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 13:01:28 GMT</pubDate>
    <dc:creator>LucMeekes</dc:creator>
    <dc:date>2021-03-18T13:01:28Z</dc:date>
    <item>
      <title>READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719459#M194995</link>
      <description>&lt;P&gt;Hi all I am using the readexcel function in mathcad prime 6.0.0.0 and to even read in a number it comes in as not a scaler. is there a set format in excel that i am missing as you can see the number below comes in in brackets [1] as an example. I have tried both .xlsx and .xlsm file types both give me the same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;note: the if function below is just an example to show I cant use the data brought in because of the [1] (brackets).&amp;nbsp;&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="BG_9641770_0-1616059781592.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39042iE15FA92676EC42D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BG_9641770_0-1616059781592.png" alt="BG_9641770_0-1616059781592.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 09:30:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719459#M194995</guid>
      <dc:creator>BG_9641770</dc:creator>
      <dc:date>2021-03-18T09:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719494#M195000</link>
      <description>&lt;P&gt;(Apparently) READEXCEL reads in the data from the excel file as an array (or a 'vector' if you will). If you only read in a single number, it will be a on-element vector in Prime. That's what the square brackets indicate.&lt;/P&gt;
&lt;P&gt;If you take the first element of that vector, you have your number.&lt;/P&gt;
&lt;P&gt;If you type&lt;/P&gt;
&lt;P&gt;[ORIGIN&lt;/P&gt;
&lt;P&gt;At the end of calling the READEXCEL function, so immediatley after the closing bracket ) and before the&amp;nbsp; =&lt;/P&gt;
&lt;P&gt;that should do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively you can take the element in your little program, by adding the [ORIGIN to the variable A.&lt;/P&gt;
&lt;P&gt;Note that if you have a vector, you cannot compare it to a scalar (=single number).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 10:33:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719494#M195000</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2021-03-18T10:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719496#M195001</link>
      <description>&lt;P&gt;Thanks Luc&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it hasn't appeared to work, still getting the [1]&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="BG_9641770_0-1616063805615.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39047iDF0F4E5BC3BBBB58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BG_9641770_0-1616063805615.png" alt="BG_9641770_0-1616063805615.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 10:37:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719496#M195001</guid>
      <dc:creator>BG_9641770</dc:creator>
      <dc:date>2021-03-18T10:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719499#M195002</link>
      <description>&lt;P&gt;Doesn't work outside the bracket either&amp;nbsp;&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="BG_9641770_0-1616064142113.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39048i354E6202803313D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BG_9641770_0-1616064142113.png" alt="BG_9641770_0-1616064142113.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 10:42:31 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719499#M195002</guid>
      <dc:creator>BG_9641770</dc:creator>
      <dc:date>2021-03-18T10:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719507#M195003</link>
      <description>&lt;P&gt;You should type&lt;/P&gt;
&lt;P&gt;[ORIGIN&lt;/P&gt;
&lt;P&gt;(Exactly that! A square bracket followed by&amp;nbsp; ORIGIN)&lt;/P&gt;
&lt;P&gt;Immediately AFTER the ) of the expression, and BEFORE the =&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result should look like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1616066164572.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39052i9E5A0C27B5EF9B20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1616066164572.png" alt="LucMeekes_0-1616066164572.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Essentially what it does is indexing the vector obtained by the READEXCEL call, and taking/pointing to, the very first element of that vector.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 11:16:18 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719507#M195003</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2021-03-18T11:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719513#M195005</link>
      <description>&lt;P&gt;Hi Luc&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried the various combinations below and it doesn't appear to work, it returns the number as 0 when the actual input is 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the ORIGIN before or after returns 0 but the excel cell is 1 as shown below&amp;nbsp;&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="BG_9641770_0-1616066539277.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39053iFC81BB33AA3123F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BG_9641770_0-1616066539277.png" alt="BG_9641770_0-1616066539277.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;ben&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 11:23:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719513#M195005</guid>
      <dc:creator>BG_9641770</dc:creator>
      <dc:date>2021-03-18T11:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719517#M195006</link>
      <description>&lt;P&gt;Thanks Luc&lt;/P&gt;
&lt;P&gt;its giving me an error below;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BG_9641770_0-1616067702377.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39055i9A57EE9540CAD577/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BG_9641770_0-1616067702377.png" alt="BG_9641770_0-1616067702377.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;can you attach a sheet?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;Ben&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 11:42:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719517#M195006</guid>
      <dc:creator>BG_9641770</dc:creator>
      <dc:date>2021-03-18T11:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719544#M195009</link>
      <description>&lt;P&gt;You should (ALWAYS) attach THE worksheet, or at least A worksheet, that demonstrates the problem.&lt;/P&gt;
&lt;P&gt;Anyway, I can see that you DID NOT type the opening square bracket before ORIGIN. It isn't there for nothing.&lt;/P&gt;
&lt;P&gt;This is what you should get,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LucMeekes_0-1616072087147.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39064i3F7F51E3420F142F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LucMeekes_0-1616072087147.png" alt="LucMeekes_0-1616072087147.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and attached Prime file has the expression as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ORIGIN is not a function, but a Mathcad/Prime system variable that defines the origin of indexing in matrices and vectors (arrays). By default it is set to 0 (meaning that the first element of vector V is V&lt;FONT size="2"&gt;0&lt;/FONT&gt;, but it can be set to any value (in real Mathcad ) or to 0 or 1 (in Prime).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 13:01:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719544#M195009</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2021-03-18T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: READEXCEL</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719546#M195010</link>
      <description>&lt;P&gt;Thanks Luc&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thats Great!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 13:02:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/READEXCEL/m-p/719546#M195010</guid>
      <dc:creator>BG_9641770</dc:creator>
      <dc:date>2021-03-18T13:02:25Z</dc:date>
    </item>
  </channel>
</rss>

