<?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 Conditional Formatting in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Excel-Conditional-Formatting/m-p/753522#M237507</link>
    <description>&lt;P&gt;Generic answer: Yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A format can be applied to a style element based on the value displayed, such as backgroundcolor. The documentation for Proc report has some limited examples. If you want each value to have its own background color you will need to spend some time to get the values and create a format. Pretty easy to create a format for ranges of values, such as each 5, or 5%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details in your case provide example data in the form of a data step, the proc report code and rules for coloring.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2021 15:16:24 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-07-12T15:16:24Z</dc:date>
    <item>
      <title>Excel Conditional Formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Conditional-Formatting/m-p/753518#M237505</link>
      <description>&lt;P&gt;Hello, is it possible to do a 'conditional formatting' of values (lowest to highest) in proc report? thanks.&lt;/P&gt;
&lt;P&gt;Light to dark color range.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Conditional Formatting" style="width: 74px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61135iD45D1470F5FC3EA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sample Format.PNG" alt="Conditional Formatting" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Conditional Formatting&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 15:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Conditional-Formatting/m-p/753518#M237505</guid>
      <dc:creator>Eugenio211</dc:creator>
      <dc:date>2021-07-12T15:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Conditional Formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Conditional-Formatting/m-p/753522#M237507</link>
      <description>&lt;P&gt;Generic answer: Yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A format can be applied to a style element based on the value displayed, such as backgroundcolor. The documentation for Proc report has some limited examples. If you want each value to have its own background color you will need to spend some time to get the values and create a format. Pretty easy to create a format for ranges of values, such as each 5, or 5%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details in your case provide example data in the form of a data step, the proc report code and rules for coloring.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 15:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Conditional-Formatting/m-p/753522#M237507</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-12T15:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Conditional Formatting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Conditional-Formatting/m-p/753529#M237513</link>
      <description>&lt;P&gt;here are the codes that I am using.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data Step:&lt;/P&gt;
&lt;P&gt;Data Test1; set Test;&lt;BR /&gt;Current_Total = Current_PDL_IL_Count + Current_LOC_Count;&lt;BR /&gt;Perc_of_Book_Converted = Current_LOC_Count/Launch_Date_PDL_IL_Count;&lt;BR /&gt;Drop_in_PDL_IL = Current_PDL_IL_Count - Launch_Date_PDL_IL_Count;&lt;BR /&gt;Perc_Drop_in_PDL_IL = Drop_in_PDL_IL / Launch_Date_PDL_IL_Count;&lt;BR /&gt;Increase_Overall = Current_Total - Launch_Date_PDL_IL_Count;&lt;BR /&gt;Perc_Increase = Increase_Overall/Launch_Date_PDL_IL_Count;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Report:&lt;/P&gt;
&lt;P&gt;proc report data=Test1;&lt;BR /&gt;columns rd dm location Launch_Date_PDL_IL_Count Current_PDL_IL_Count &lt;BR /&gt;Current_LOC_Count Current_Total Perc_of_Book_Converted&lt;BR /&gt;Drop_in_PDL_IL Perc_Drop_in_PDL_IL Increase_Overall Perc_Increase;&lt;BR /&gt;define rd/'RD' style(column)=[cellwidth=3cm];&lt;BR /&gt;define dm/'DM' style(column)=[cellwidth=3cm];&lt;BR /&gt;define Location/group 'Location';&lt;BR /&gt;define Launch_Date_PDL_IL_Count/'Launch Date PDL Count';&lt;BR /&gt;define Current_PDL_IL_Count/'Current PDL Count';&lt;BR /&gt;define Current_LOC_Count/'Current LOC Count';&lt;BR /&gt;define Current_Total/'Current Total';&lt;BR /&gt;define Perc_of_Book_Converted/'%of Book Converted' Format= Percent8.2;&lt;BR /&gt;define Drop_in_PDL_IL/'Drop in PDL';&lt;BR /&gt;define Perc_Drop_in_PDL_IL/'%Drop in PDL' Format= Percent8.2;&lt;BR /&gt;define Increase_Overall/'Increase Overall';&lt;BR /&gt;define Perc_Increase/'%Increase' Format= Percent8.2;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to do the conditional formatting in the '%Increase' column.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 15:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Conditional-Formatting/m-p/753529#M237513</guid>
      <dc:creator>Eugenio211</dc:creator>
      <dc:date>2021-07-12T15:27:09Z</dc:date>
    </item>
  </channel>
</rss>

