<?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: Calculating Mean for Specific Range of Imported Data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539435#M74072</link>
    <description>That's not how SAS works, you can't access specific cells easily. Usually, you reference a column or row at the same time. You can also specify to treat groups consistently. I suggest you post some actual data that shows what you have and what you want out of that.</description>
    <pubDate>Thu, 28 Feb 2019 18:37:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-02-28T18:37:08Z</dc:date>
    <item>
      <title>Calculating Mean for Specific Range of Imported Data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539420#M74067</link>
      <description>&lt;P&gt;I imported my .xlsx file into SAS and have no problem calculating the mean for the entire sheet using the below code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC MEANS DATA=WORK.MYDATA;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But what code do I add if I want to calculate the mean just for a specified range of cells (e.g. A2-A50)? I'm working with version 9.2.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 18:12:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539420#M74067</guid>
      <dc:creator>amir17</dc:creator>
      <dc:date>2019-02-28T18:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Mean for Specific Range of Imported Data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539422#M74068</link>
      <description>&lt;P&gt;List your variable names in the var statement in proc means&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;PROC&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;MEANS&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;WORK&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;MYDATA mean&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;var A2--A50;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Feb 2019 18:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539422#M74068</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-28T18:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Mean for Specific Range of Imported Data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539425#M74069</link>
      <description>Do you know the names of your variables?  If they are actually named a1-a99 for example you could add before the RUN statement:&lt;BR /&gt;&lt;BR /&gt;var a2-numeric-a50;</description>
      <pubDate>Thu, 28 Feb 2019 18:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539425#M74069</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-28T18:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Mean for Specific Range of Imported Data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539431#M74070</link>
      <description>&lt;P&gt;I don't have any variables actually named "A2" or "A50." I meant the cells A2, A3, A4, etc. within an Excel spreadsheet. Any advice on this?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 18:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539431#M74070</guid>
      <dc:creator>amir17</dc:creator>
      <dc:date>2019-02-28T18:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Mean for Specific Range of Imported Data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539434#M74071</link>
      <description>&lt;P&gt;run a proc contents on your imported dataset&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;PROC&lt;/SPAN&gt; contents &lt;SPAN class="token procnames"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;WORK&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;MYDATA&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you should be able to get the name of the&amp;nbsp; variables to list in the var statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 18:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539434#M74071</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-28T18:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Mean for Specific Range of Imported Data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539435#M74072</link>
      <description>That's not how SAS works, you can't access specific cells easily. Usually, you reference a column or row at the same time. You can also specify to treat groups consistently. I suggest you post some actual data that shows what you have and what you want out of that.</description>
      <pubDate>Thu, 28 Feb 2019 18:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539435#M74072</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-28T18:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Mean for Specific Range of Imported Data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539437#M74073</link>
      <description>I see. Thanks for the info. Much appreciated.</description>
      <pubDate>Thu, 28 Feb 2019 18:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-Mean-for-Specific-Range-of-Imported-Data/m-p/539437#M74073</guid>
      <dc:creator>amir17</dc:creator>
      <dc:date>2019-02-28T18:41:02Z</dc:date>
    </item>
  </channel>
</rss>

