<?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: ENCODE EXCEL FORMULA IN SAS in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ENCODE-EXCEL-FORMULA-IN-SAS/m-p/190214#M14590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HHi &lt;/P&gt;&lt;P&gt;i will provide sample data then I can better understand I think &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 17:48:59 GMT</pubDate>
    <dc:creator>chennupriya</dc:creator>
    <dc:date>2015-03-03T17:48:59Z</dc:date>
    <item>
      <title>ENCODE EXCEL FORMULA IN SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ENCODE-EXCEL-FORMULA-IN-SAS/m-p/190211#M14587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;hI i HAVE An EXCEL FORMULA WHICH I NEED TO BUILD UP IN SAS&lt;/P&gt;&lt;P&gt;CAN U PLS LET M EKNOW THE CODING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF (FL2=0,0 ,VLOOKUP(V2,'XY SPLIT' !$A$4:$F$11,6,FALSE))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 16:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ENCODE-EXCEL-FORMULA-IN-SAS/m-p/190211#M14587</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2015-03-03T16:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODE EXCEL FORMULA IN SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ENCODE-EXCEL-FORMULA-IN-SAS/m-p/190212#M14588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming you want to convert the Excel formula to SAS code?&lt;/P&gt;&lt;P&gt;Basically, there isn't a direct formula to match the Excel formula.&amp;nbsp; This appears to be a lookup and there are many ways to accomplish this in SAS, two common ways are a Table Join and a Format. The lookup table doesn't look too big, 7 values, so you could also build a set of it/then statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would create a format from the data in A4-F11 which is a lookup table. &lt;/P&gt;&lt;P&gt;Then would use a if/then to apply the format.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more help you'll need to provide sample data/output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 16:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ENCODE-EXCEL-FORMULA-IN-SAS/m-p/190212#M14588</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-03T16:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODE EXCEL FORMULA IN SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ENCODE-EXCEL-FORMULA-IN-SAS/m-p/190213#M14589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So VLOOKUP allows you to index into a particular row in a table and pull the value from a particular column in that table.&lt;/P&gt;&lt;P&gt;Your example appears to want to use the value in cell V2 as the index value and it wants to take the value from the 6th column.&lt;/P&gt;&lt;P&gt;You can convert the values of column1 and column6 in your lookup table into the START and LABEL values for a format.&amp;nbsp; Then you could use the PUT() function to generate the value that the format returns for that value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUT(V2,myfmt.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could convert the values in your VLOOKUP table into a SAS dataset with an index and use the SET statement with the KEY= option to index into the proper row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ENCODE-EXCEL-FORMULA-IN-SAS/m-p/190213#M14589</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-03-03T17:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: ENCODE EXCEL FORMULA IN SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ENCODE-EXCEL-FORMULA-IN-SAS/m-p/190214#M14590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HHi &lt;/P&gt;&lt;P&gt;i will provide sample data then I can better understand I think &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ENCODE-EXCEL-FORMULA-IN-SAS/m-p/190214#M14590</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2015-03-03T17:48:59Z</dc:date>
    </item>
  </channel>
</rss>

