<?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: Excel formula in SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605781#M17290</link>
    <description>&lt;P&gt;Did you put a variable called month into the "have" dataset?&lt;/P&gt;
&lt;P&gt;Because my code as posted works, see this log:&lt;/P&gt;
&lt;PRE&gt;73         data have;
 74         input id :$5. stage date :date9.;
 75         format date yymmddd10.;
 76         idvar = put(date,monname.);
 77         datalines;
 
 NOTE: The data set WORK.HAVE has 36 observations and 4 variables.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 114        ;
 115        
 116        proc sort data=have;
 117        by id date;
 118        run;
 
 NOTE: There were 36 observations read from the data set WORK.HAVE.
 NOTE: The data set WORK.HAVE has 36 observations and 4 variables.
 NOTE:  Verwendet wurde: PROZEDUR SORT - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 119        
 120        data getmonth;
 121        set have;
 122        by id;
 123        retain change month;
 124        length month $9;
 125        l_stage = lag(stage);
 126        if first.id
 127        then do;
 128          change = 0;
 129          month = '';
 130        end;
 131        else if l_stage ne stage then change = 1;
 132        if stage in (2,3) and not last.id and (l_stage not in (2,3) or first.id) then month = idvar;
 133        if last.id;
 134        if change = 0 then month = '';
 135        keep id month;
 136        run;
 
 NOTE: There were 36 observations read from the data set WORK.HAVE.
 NOTE: The data set WORK.GETMONTH has 6 observations and 2 variables.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 
 137        
 138        proc transpose data=have out=trans (drop=_name_);
 139        by id;
 140        var stage;
 141        id idvar;
 142        run;
 
 NOTE: There were 36 observations read from the data set WORK.HAVE.
 NOTE: The data set WORK.TRANS has 6 observations and 7 variables.
 NOTE:  Verwendet wurde: PROZEDUR TRANSPOSE - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.01 seconds
       
 
 143        
 144        data want;
 145        merge
 146          trans
 147          getmonth
 148        ;
 149        by id;
 150        run;
 
 NOTE: There were 6 observations read from the data set WORK.TRANS.
 NOTE: There were 6 observations read from the data set WORK.GETMONTH.
 NOTE: The data set WORK.WANT has 6 observations and 8 variables.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 151        
 152        proc print data=want noobs;
 153        run;
 
 NOTE: There were 6 observations read from the data set WORK.WANT.
 NOTE:  Verwendet wurde: PROZEDUR PRINT - (Gesamtverarbeitungszeit):
       real time           0.04 seconds
       cpu time            0.03 seconds
&lt;/PRE&gt;</description>
    <pubDate>Wed, 20 Nov 2019 15:25:55 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-11-20T15:25:55Z</dc:date>
    <item>
      <title>Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605684#M17247</link>
      <description>&lt;P&gt;Hi can someone help me how to write excel formula in SAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g., below formula i need to be implemented in SAS&lt;/P&gt;&lt;P&gt;=IF(G8&amp;lt;3,IFERROR(INDEX($B$1:$F$1,MATCH(3,B8:F8,0)),IF(G8&amp;lt;2,IFERROR(INDEX($B$1:$D$1,MATCH(2,B8:E8,0)),""),"")),"")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 11:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605684#M17247</guid>
      <dc:creator>kishoresamineni</dc:creator>
      <dc:date>2019-11-20T11:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605685#M17248</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42061"&gt;@kishoresamineni&lt;/a&gt;&amp;nbsp;no doubt that the overall logic can be implemented in SAS. Seems like some kind of lookup.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, Excel and SAS are widely different. Thus, you should describe your problem in more detail and not just with an Excel formula you want translated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 11:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605685#M17248</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-20T11:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605690#M17249</link>
      <description>&lt;P&gt;Hi draycut,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actually i looking for a month name to populate if last six month are in stage 2 0r 3&lt;/P&gt;&lt;P&gt;e.g. 3 3 3 2 2 2 then Month Name should be May&lt;/P&gt;&lt;P&gt;1 1 2 2 1 1 then Month Name should be July&lt;/P&gt;&lt;P&gt;2 2 2 2 2 2 then Month should be Blank&lt;/P&gt;&lt;P&gt;3 3 3 3 3 3 then Month should be Blank&lt;/P&gt;&lt;P&gt;2 2 2 1 1 1 then Month should be Blank&lt;/P&gt;&lt;P&gt;3 2 2 2 2 2 then Month should be May&lt;/P&gt;&lt;P&gt;1 1 1 1 2 2 then Month should be Blank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;formula what i have in excel does above conditions, now i need similar conditions to be implemented in SAS&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 11:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605690#M17249</guid>
      <dc:creator>kishoresamineni</dc:creator>
      <dc:date>2019-11-20T11:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605692#M17250</link>
      <description>&lt;P&gt;What is the logic here? Why is month name='July' in the second obs but blank in the third?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605692#M17250</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-20T12:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605702#M17251</link>
      <description>&lt;P&gt;we see the data for last six months only,&lt;/P&gt;&lt;P&gt;if everything is in stage 2 then it should be blank&lt;/P&gt;&lt;P&gt;similarly if every month is in stage 3 then it should be blank&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605702#M17251</guid>
      <dc:creator>kishoresamineni</dc:creator>
      <dc:date>2019-11-20T12:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605705#M17253</link>
      <description>&lt;P&gt;Doesn't answer why&amp;nbsp;&lt;SPAN&gt;2 2 2 1 1 1 yields a blank? Or how the months are determined when they should not be blank?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605705#M17253</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-20T12:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605707#M17255</link>
      <description>&lt;P&gt;data temp(drop= p_id p_stage); /*temp*/&lt;BR /&gt;set month_fmt;&lt;BR /&gt;by id;&lt;BR /&gt;p_id = lag(id);&lt;BR /&gt;p_stage = lag(stage);&lt;BR /&gt;if p_id = id then do;&lt;BR /&gt;if p_stage &amp;lt; stage then output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table temp1 as /*temp1*/&lt;BR /&gt;select id, max(stage) as stage,&lt;BR /&gt;max(date) as Month format date9d. from temp&lt;BR /&gt;group by id;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;proc transpose data=month_fmt out=input1(drop= _name_); /*input1*/&lt;BR /&gt;by id;&lt;BR /&gt;var Stage;&lt;BR /&gt;id date;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table input2 as select a.*,b.Month as Month /*input2*/&lt;BR /&gt;format = MONNAME9. from input1 as a left join temp1 as b&lt;BR /&gt;on a.id=b.id;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the programs that i have used, i am getting the Month names but not meeting all the conditions&lt;/P&gt;&lt;P&gt;e.g.,&amp;nbsp;1 1 1 1 2 2 should be blank but i am getting Month as September&lt;/P&gt;&lt;P&gt;2 3 3 3 3 3 should be blank but i am getting Month as June&lt;/P&gt;&lt;P&gt;3 3 3 1 2 2 should be May but i am getting September&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help me in solving the above issues.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605707#M17255</guid>
      <dc:creator>kishoresamineni</dc:creator>
      <dc:date>2019-11-20T12:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605708#M17256</link>
      <description>&lt;P&gt;From where do you deduct the month names?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605708#M17256</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-20T12:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605711#M17259</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42061"&gt;@kishoresamineni&lt;/a&gt;&amp;nbsp;If you want us to help you, then help us help you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to be specific about:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- What your initial data looks like&lt;/P&gt;
&lt;P&gt;- The logic that you want to implement&lt;/P&gt;
&lt;P&gt;- The desired result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605711#M17259</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-20T12:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605717#M17263</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id Stage Date&lt;BR /&gt;22313 2 31MAY2019&lt;BR /&gt;22314 1 31MAY2019&lt;BR /&gt;22315 3 31MAY2019&lt;BR /&gt;22316 3 31MAY2019&lt;BR /&gt;22317 1 31MAY2019&lt;BR /&gt;22318 2 31MAY2019&lt;BR /&gt;22313 2 30JUN2019&lt;BR /&gt;22314 1 30JUN2019&lt;BR /&gt;22315 3 30JUN2019&lt;BR /&gt;22316 3 30JUN2019&lt;BR /&gt;22317 1 30JUN2019&lt;BR /&gt;22318 2 30JUN2019&lt;BR /&gt;22313 2 31JUL2019&lt;BR /&gt;22314 2 31JUL2019&lt;BR /&gt;22315 3 31JUL2019&lt;BR /&gt;22316 2 31JUL2019&lt;BR /&gt;22317 1 31JUL2019&lt;BR /&gt;22318 2 31JUL2019&lt;BR /&gt;22313 1 31AUG2019&lt;BR /&gt;22314 2 31AUG2019&lt;BR /&gt;22315 2 31AUG2019&lt;BR /&gt;22316 2 31AUG2019&lt;BR /&gt;22317 1 31AUG2019&lt;BR /&gt;22318 2 31AUG2019&lt;BR /&gt;22313 1 30SEP2019&lt;BR /&gt;22314 1 30SEP2019&lt;BR /&gt;22315 2 30SEP2019&lt;BR /&gt;22316 2 30SEP2019&lt;BR /&gt;22317 1 30SEP2019&lt;BR /&gt;22318 2 30SEP2019&lt;BR /&gt;22313 1 31OCT2019&lt;BR /&gt;22314 1 31OCT2019&lt;BR /&gt;22315 2 31OCT2019&lt;BR /&gt;22316 2 31OCT2019&lt;BR /&gt;22317 2 31OCT2019&lt;BR /&gt;22318 2 31OCT2019&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Expeted Results:&lt;BR /&gt;ID May June July August September October Month&lt;BR /&gt;22313 2 2 2 1 1 1 May&lt;BR /&gt;22314 1 1 2 2 1 1 July&lt;BR /&gt;22315 3 3 3 2 2 2 May&lt;BR /&gt;22316 3 3 2 2 2 2 May&lt;BR /&gt;22317 1 1 1 1 1 2 &amp;lt;BLANK&amp;gt;&lt;BR /&gt;22318 2 2 2 2 2 2 &amp;lt;BLANK&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605717#M17263</guid>
      <dc:creator>kishoresamineni</dc:creator>
      <dc:date>2019-11-20T13:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605718#M17264</link>
      <description>&lt;P&gt;i have date column in my input data&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605718#M17264</guid>
      <dc:creator>kishoresamineni</dc:creator>
      <dc:date>2019-11-20T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605722#M17266</link>
      <description>&lt;P&gt;And from where do calculate WHICH of the 6 dates you have for every ID to take?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605722#M17266</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-20T13:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605723#M17267</link>
      <description>&lt;P&gt;in my input data i have DATE column as:&lt;/P&gt;
&lt;P&gt;31MAY2019&lt;/P&gt;
&lt;P&gt;30JUN2019&lt;/P&gt;
&lt;P&gt;31JUL2019&lt;/P&gt;
&lt;P&gt;31AUG2019&lt;/P&gt;
&lt;P&gt;30SEP2019&lt;/P&gt;
&lt;P&gt;31OCT2019&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;these dates will be there for every ID&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605723#M17267</guid>
      <dc:creator>kishoresamineni</dc:creator>
      <dc:date>2019-11-20T13:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605728#M17269</link>
      <description>&lt;P&gt;Ok. Please explain exactly how the month variable is calculated? Why is month=July for id=&lt;SPAN&gt;22314 and blank for id=22317?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605728#M17269</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-20T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605730#M17270</link>
      <description>&lt;P&gt;You have &lt;FONT size="6"&gt;&lt;STRONG&gt;SIX&lt;/STRONG&gt;&lt;/FONT&gt; dates in there. &lt;FONT size="6"&gt;&lt;STRONG&gt;WHICH&lt;/STRONG&gt;&lt;/FONT&gt; of these is the one to take?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605730#M17270</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-20T13:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605736#M17272</link>
      <description>&lt;P&gt;Hi draycut,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is the business rule they follow:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;id=&lt;/SPAN&gt;&lt;SPAN&gt;22314 is July because ID moved from 1 to 2&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;business rule: any ID within last six month moves from stage 1 to 2 or 3 then that Month name should be populated and till sep'19 if any ID in stage 1 and in OCT'19 if it moves to stage 2 or 3 then Month should be blank(ID=22317)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you see from my program even after applying lag function Month condition is not applying for some scenarios&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 14:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605736#M17272</guid>
      <dc:creator>kishoresamineni</dc:creator>
      <dc:date>2019-11-20T14:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605737#M17273</link>
      <description>&lt;P&gt;all the six dates should be considered, because i want the report for last 6 months of data&lt;/P&gt;
&lt;P&gt;and every account has six months data.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 14:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605737#M17273</guid>
      <dc:creator>kishoresamineni</dc:creator>
      <dc:date>2019-11-20T14:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605738#M17274</link>
      <description>&lt;P&gt;excel formula is doing the same thing&lt;/P&gt;
&lt;P&gt;=IF(G4&amp;lt;3,IFERROR(INDEX($B$1:$F$1,MATCH(3,B4:F4,0)),IF(G4&amp;lt;2,IFERROR(INDEX($B$1:$D$1,MATCH(2,B4:E4,0)),""),"")),"")&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 14:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605738#M17274</guid>
      <dc:creator>kishoresamineni</dc:creator>
      <dc:date>2019-11-20T14:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605739#M17275</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42061"&gt;@kishoresamineni&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;all the six dates should be considered, because i want the report for last 6 months of data&lt;/P&gt;
&lt;P&gt;and every account has six months data.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That would mean that your target variable would contain the string "MayAprilJuneJulyAugustSeptember", but it only contains &lt;STRONG&gt;ONE&lt;/STRONG&gt; month name.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;HOW DO YOU DETERMINE THIS MONTH NAME?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 14:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605739#M17275</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-20T14:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Excel formula in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605742#M17277</link>
      <description>&lt;P&gt;Is this correct:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Considering only months may to september. If all states are constant 1 1 1 1 1 or 2 2 2 2 2, then the month should be blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, then the month should be the month where the state has the highest value. If there are multiple states that has the same value, month should be the first month where this value occurs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 14:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Excel-formula-in-SAS/m-p/605742#M17277</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-20T14:20:01Z</dc:date>
    </item>
  </channel>
</rss>

