<?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: How to determine the last cell in Excel using SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-the-last-cell-in-Excel-using-SAS/m-p/135255#M27489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is about the text "D5", then you could calculate it in SAS using the dataset you would like to export:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data A;&lt;BR /&gt;&amp;nbsp; Input X1-X4;&lt;BR /&gt;&amp;nbsp; Datalines;&lt;BR /&gt;1 1 1 1&lt;BR /&gt;1 1 1 1&lt;BR /&gt;1 1 1 1&lt;BR /&gt;1 1 1 1&lt;BR /&gt;;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Data xx;&lt;BR /&gt;&amp;nbsp; Length Text_Col $2.;&lt;BR /&gt;&amp;nbsp; MyFile=Open("A");&lt;BR /&gt;&amp;nbsp; Rows=Attrn(MyFile,"NObs")+1; * including Header;&lt;BR /&gt;&amp;nbsp; Cols=Attrn(MyFile,"NVars");&lt;BR /&gt;&amp;nbsp; If (Cols le 26) Then Text_Col=Byte(64+Cols);&lt;BR /&gt;&amp;nbsp; Else If (Cols ge 27) &amp;amp; (Cols le 676) Then Text_Col=(Byte(64+Int(Cols/26)))!!Byte(64+Mod(Cols,26));&lt;BR /&gt;&amp;nbsp; ExcelCell=Compress(Text_Col!!Put(Rows,Best8.));&lt;BR /&gt;&amp;nbsp; Put "**" ExcelCell "**"; * "D5" is in the log ... ;&lt;BR /&gt;&amp;nbsp; MyFile=Close("A");&lt;BR /&gt;Run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2014 09:15:02 GMT</pubDate>
    <dc:creator>user24feb</dc:creator>
    <dc:date>2014-12-04T09:15:02Z</dc:date>
    <item>
      <title>How to determine the last cell in Excel using SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-the-last-cell-in-Excel-using-SAS/m-p/135253#M27487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have this 4 X 4 table in SAS (it has 4 columns, and 4 rows excluding the headers). &lt;/P&gt;&lt;P&gt;If exported to excel, the range would be translated to A1:D5.&lt;/P&gt;&lt;P&gt;I need help how to get the D5 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 07:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-the-last-cell-in-Excel-using-SAS/m-p/135253#M27487</guid>
      <dc:creator>angeliquec</dc:creator>
      <dc:date>2014-12-04T07:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the last cell in Excel using SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-the-last-cell-in-Excel-using-SAS/m-p/135254#M27488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could manually calculate it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why though? Excel also supports RC notation which may be easier to derive. RC=row/column so A1:D5 would be R1C1:R5C4 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 07:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-the-last-cell-in-Excel-using-SAS/m-p/135254#M27488</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-04T07:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the last cell in Excel using SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-the-last-cell-in-Excel-using-SAS/m-p/135255#M27489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is about the text "D5", then you could calculate it in SAS using the dataset you would like to export:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data A;&lt;BR /&gt;&amp;nbsp; Input X1-X4;&lt;BR /&gt;&amp;nbsp; Datalines;&lt;BR /&gt;1 1 1 1&lt;BR /&gt;1 1 1 1&lt;BR /&gt;1 1 1 1&lt;BR /&gt;1 1 1 1&lt;BR /&gt;;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;Data xx;&lt;BR /&gt;&amp;nbsp; Length Text_Col $2.;&lt;BR /&gt;&amp;nbsp; MyFile=Open("A");&lt;BR /&gt;&amp;nbsp; Rows=Attrn(MyFile,"NObs")+1; * including Header;&lt;BR /&gt;&amp;nbsp; Cols=Attrn(MyFile,"NVars");&lt;BR /&gt;&amp;nbsp; If (Cols le 26) Then Text_Col=Byte(64+Cols);&lt;BR /&gt;&amp;nbsp; Else If (Cols ge 27) &amp;amp; (Cols le 676) Then Text_Col=(Byte(64+Int(Cols/26)))!!Byte(64+Mod(Cols,26));&lt;BR /&gt;&amp;nbsp; ExcelCell=Compress(Text_Col!!Put(Rows,Best8.));&lt;BR /&gt;&amp;nbsp; Put "**" ExcelCell "**"; * "D5" is in the log ... ;&lt;BR /&gt;&amp;nbsp; MyFile=Close("A");&lt;BR /&gt;Run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 09:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-the-last-cell-in-Excel-using-SAS/m-p/135255#M27489</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-12-04T09:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine the last cell in Excel using SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-determine-the-last-cell-in-Excel-using-SAS/m-p/135256#M27490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the purpose, are you trying to write to a specific range?&amp;nbsp; I fso then you may be better of with libname to Excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 09:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-determine-the-last-cell-in-Excel-using-SAS/m-p/135256#M27490</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-12-04T09:33:03Z</dc:date>
    </item>
  </channel>
</rss>

