<?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 sumif not blank in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sumif-not-blank/m-p/609558#M177484</link>
    <description>&lt;P&gt;I am currently trying to create a new variable in my data set called called 'points'. The variable 'points' is the sum of multiple variables. My current code is working fine to sum the data, however I have a problem: I only want to sum the data when all the variables are not blank.&lt;/P&gt;&lt;PRE&gt;Score = sum(300, 
			A,
                        B,
			C,
			D);&lt;/PRE&gt;&lt;P&gt;How can I modify my code so that I only sum the data when A, B, C &amp;amp; D are&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 22:33:15 GMT</pubDate>
    <dc:creator>sasprogramming</dc:creator>
    <dc:date>2019-12-04T22:33:15Z</dc:date>
    <item>
      <title>sumif not blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sumif-not-blank/m-p/609558#M177484</link>
      <description>&lt;P&gt;I am currently trying to create a new variable in my data set called called 'points'. The variable 'points' is the sum of multiple variables. My current code is working fine to sum the data, however I have a problem: I only want to sum the data when all the variables are not blank.&lt;/P&gt;&lt;PRE&gt;Score = sum(300, 
			A,
                        B,
			C,
			D);&lt;/PRE&gt;&lt;P&gt;How can I modify my code so that I only sum the data when A, B, C &amp;amp; D are&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 22:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sumif-not-blank/m-p/609558#M177484</guid>
      <dc:creator>sasprogramming</dc:creator>
      <dc:date>2019-12-04T22:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: sumif not blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sumif-not-blank/m-p/609559#M177485</link>
      <description>&lt;PRE&gt;if nmiss(  A, B, C, D) = 0 then Score = sum(300, A, B,C,	D);&lt;/PRE&gt;
&lt;P&gt;alternatively&lt;/P&gt;
&lt;PRE&gt;Score = 300 + a +b +c +d;
&lt;/PRE&gt;
&lt;P&gt;will return missing if any of a, b, c or d are missing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 22:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sumif-not-blank/m-p/609559#M177485</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-04T22:41:35Z</dc:date>
    </item>
  </channel>
</rss>

