<?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: I need to colour columns values while sending to excel (ods) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/861004#M340114</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/378763"&gt;@nitink26&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;if you don't mind, could you pls explain the logic(parameters) in the code you used. I know first two parameters -&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;findw(values,strip(a1),,'kd')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The documentation is your friend.&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p16rdsa30vmm43n1ej4936nwa01t.htm" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p16rdsa30vmm43n1ej4936nwa01t.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What it does: Any character that isn't a digit is treated as word delimiter.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1677480397361.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80866i46F2B85C06DC3671/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1677480397361.png" alt="Patrick_0-1677480397361.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_2-1677480435763.png" style="width: 1133px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80868i8E9FEC454A053B04/image-dimensions/1133x41?v=v2" width="1133" height="41" role="button" title="Patrick_2-1677480435763.png" alt="Patrick_2-1677480435763.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatrick_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 06:47:33 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2023-02-27T06:47:33Z</dc:date>
    <item>
      <title>I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860804#M340040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have below data -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 432pt;" border="0" width="576" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="64" height="19" style="height: 14.5pt; width: 48pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;A1&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;A2&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;A3&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;A4&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;A5&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;A6&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;A7&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;VALUES&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;5&lt;/TD&gt;
&lt;TD align="right"&gt;6&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;TD&gt;1,3,5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;8&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;6&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;5&lt;/TD&gt;
&lt;TD align="right"&gt;8&lt;/TD&gt;
&lt;TD class="xl63"&gt;2,8,10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;3&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;8&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;TD&gt;25,30,100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" align="right" style="height: 14.5pt;"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;5&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;5&lt;/TD&gt;
&lt;TD align="right"&gt;6&lt;/TD&gt;
&lt;TD&gt;1,9,15&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID is unique is here and I want to color the cells from A1-A7 if any of the values in&amp;nbsp;&lt;STRONG&gt;Values(column).&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Final Output -&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nitink26_0-1677299620598.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80836iEE333BBC9BECD723/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nitink26_0-1677299620598.png" alt="nitink26_0-1677299620598.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dataset is attached for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2023 04:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860804#M340040</guid>
      <dc:creator>nitink26</dc:creator>
      <dc:date>2023-02-25T04:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860806#M340041</link>
      <description>&lt;P&gt;I just need to know, how to apply condition under compute as&lt;/P&gt;
&lt;P&gt;I am applying below condition but it's giving me an error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compute A1;&lt;BR /&gt;IF A1 IN (VALUES)&lt;BR /&gt;THEN call define('A1', "style", "style=[background=lightgreen]");&lt;/P&gt;
&lt;P&gt;endcomp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2023 06:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860806#M340041</guid>
      <dc:creator>nitink26</dc:creator>
      <dc:date>2023-02-25T06:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860818#M340045</link>
      <description>&lt;P&gt;If you provide a data step creating the sample data and then the full Proc Report code then someone might spend the time to add the logic for conditional formatting. Else search with keywords like: Proc Report Conditional Formatting and you will get hits like below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/New-SAS-User/how-to-provide-conditional-formatting-in-cell-in-proc-report-in/td-p/567573" target="_blank"&gt;https://communities.sas.com/t5/New-SAS-User/how-to-provide-conditional-formatting-in-cell-in-proc-report-in/td-p/567573&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the code snippet you shared: You need to reference the row where you want to highlight cells using syntax like below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1677315459179.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80839i67ED35E050B55B94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1677315459179.png" alt="Patrick_0-1677315459179.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2023 08:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860818#M340045</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-25T08:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860830#M340047</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/378763"&gt;@nitink26&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I just need to know, how to apply condition under compute as&lt;/P&gt;
&lt;P&gt;I am applying below condition but it's giving me an error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;compute A1;&lt;BR /&gt;IF A1 IN (VALUES)&lt;BR /&gt;THEN call define('A1', "style", "style=[background=lightgreen]");&lt;/P&gt;
&lt;P&gt;endcomp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's giving you an error, but you don't tell us what the error is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whenever there is an error, show us what the LOG shows; we need the ENTIRE code in the LOG for this PROC (that's every single line, every single character, 100% of the log for this PROC). Do not show us selected parts of the log for this ROC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; says, a quick search ought to find the answer.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2023 11:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860830#M340047</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-25T11:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860881#M340059</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;Full code&amp;nbsp; which gives an error-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=test;&lt;BR /&gt;column ID A1 A2 A3 A4 A5 A6 A7 VALUES;;&lt;/P&gt;
&lt;P&gt;compute A1;&lt;BR /&gt;IF A1 IN (VALUES)&lt;BR /&gt;THEN call define('A1', "style", "style=[background=lightgreen]");&lt;/P&gt;
&lt;P&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but if I change the compute code below it will work but I don't want this -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=test1;&lt;BR /&gt;column ID A1 A2 A3 A4 A5 A6 A7 VALUES;;&lt;/P&gt;
&lt;P&gt;compute A1;&lt;BR /&gt;IF A1 IN ('1','3','5')&lt;/P&gt;
&lt;P&gt;THEN call define('A1', "style", "style=[background=lightgreen]");&lt;/P&gt;
&lt;P&gt;endcomp;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I want&amp;nbsp;for every row, it will use values from VALUES column and highlight&amp;nbsp; the value in A1 if it matches any of the values of column VALUES. We can use ID as well as it's a unique identifier and for every id, Columns VALUES value are same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sas dataset attached for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 08:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860881#M340059</guid>
      <dc:creator>nitink26</dc:creator>
      <dc:date>2023-02-26T08:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860907#M340075</link>
      <description>&lt;P&gt;Hi Paige,&lt;/P&gt;
&lt;P&gt;Full code&amp;nbsp; which gives an error-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=test;&lt;BR /&gt;column ID A1 A2 A3 A4 A5 A6 A7 VALUES;&lt;/P&gt;
&lt;P&gt;compute A1;&lt;BR /&gt;IF A1 IN (VALUES)&lt;BR /&gt;THEN call define('A1', "style", "style=[background=lightgreen]");&lt;/P&gt;
&lt;P&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but if I change the compute code below it will work but I don't want this -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=test1;&lt;BR /&gt;column ID A1 A2 A3 A4 A5 A6 A7 VALUES;;&lt;/P&gt;
&lt;P&gt;compute A1;&lt;BR /&gt;IF A1 IN ('1','3','5')&lt;/P&gt;
&lt;P&gt;THEN call define('A1', "style", "style=[background=lightgreen]");&lt;/P&gt;
&lt;P&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want&amp;nbsp;for every row, it will use values from VALUES column and highlight&amp;nbsp; the value in A1 if it matches any of the values of column VALUES. We can use ID as well as it's a unique identifier and for every id, Columns VALUES value are same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sas dataset attached for your reference.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 08:36:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860907#M340075</guid>
      <dc:creator>nitink26</dc:creator>
      <dc:date>2023-02-26T08:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860918#M340078</link>
      <description>&lt;P&gt;So the problem to solve here is not conditional formatting but how to compare a value stored in one variable against a list of values stored in another variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax you're trying to use is not valid.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/lrcon/9.4/p00iah2thp63bmn1lt20esag14lh.htm#p0xgxvo2we2mqrn1kteecpv1opx0" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/lrcon/9.4/p00iah2thp63bmn1lt20esag14lh.htm#p0xgxvo2we2mqrn1kteecpv1opx0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1677411397792.png" style="width: 895px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80852i6FC445C16E6B05A9/image-dimensions/895x497?v=v2" width="895" height="497" role="button" title="Patrick_1-1677411397792.png" alt="Patrick_1-1677411397792.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below code that returns what you're after. It also provides the sample data via a SAS data step. If you provide sample data this way then you'll get the more answers with tested code.&lt;/P&gt;
&lt;P&gt;What the forum taught me lately: The order of the variables in the column statement matters. If you want to use Value in the compute block for A1 then it Values needs to be listed before A1 in the column statement.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
  infile datalines truncover dlm='|' dsd;
  input (id A1-A7) ($) values :$20.;
  datalines;
1|1|2|3|4|5|6|7|("1","3","5")
2|8|9|6|3|2|5|8|("2","8","10")
3|4|3|2|1|1|8|7|("25","30")
4|1|4|5|0|2|5|6|("1","9","15"")
;

ods excel file="%sysfunc(pathname(work))\test.xlsx";
proc report data=test1;
  column VALUES ID A1 A2 A3 A4 A5 A6 A7;
  compute A1;
    IF findw(values,strip(a1),,'kd') THEN
      call define(_col_, "style", "style=[background=lightgreen]");
  endcomp;
run;
ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1677413325728.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80853i16EC9F5C62B03E19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1677413325728.png" alt="Patrick_0-1677413325728.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 12:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860918#M340078</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-26T12:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860919#M340079</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/378763"&gt;@nitink26&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;Full code&amp;nbsp; which gives an error-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I specifically asked to see the LOG. I want to see the ENTIRE log (every single line) for this PROC REPORT.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 11:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860919#M340079</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-26T11:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860941#M340085</link>
      <description>&lt;P&gt;If you want to test if a value is in a string use the INDEX, INDEXW, FIND or FINDW function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  input a1 $ ;
  values='1 2 3';
  found = 0&amp;lt;findw(values,a1,' ','r');
cards;
1
3
5
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Feb 2023 15:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860941#M340085</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-02-26T15:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860985#M340103</link>
      <description>Thanks Patrick!</description>
      <pubDate>Mon, 27 Feb 2023 03:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860985#M340103</guid>
      <dc:creator>nitink26</dc:creator>
      <dc:date>2023-02-27T03:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860988#M340104</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;if you don't mind, could you pls explain the logic(parameters) in the code you used. I know first two parameters -&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;findw(values,strip(a1),,'kd')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 03:32:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860988#M340104</guid>
      <dc:creator>nitink26</dc:creator>
      <dc:date>2023-02-27T03:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/861004#M340114</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/378763"&gt;@nitink26&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Patrick,&lt;/P&gt;
&lt;P&gt;if you don't mind, could you pls explain the logic(parameters) in the code you used. I know first two parameters -&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;findw(values,strip(a1),,'kd')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The documentation is your friend.&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p16rdsa30vmm43n1ej4936nwa01t.htm" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p16rdsa30vmm43n1ej4936nwa01t.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What it does: Any character that isn't a digit is treated as word delimiter.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1677480397361.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80866i46F2B85C06DC3671/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1677480397361.png" alt="Patrick_0-1677480397361.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_2-1677480435763.png" style="width: 1133px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80868i8E9FEC454A053B04/image-dimensions/1133x41?v=v2" width="1133" height="41" role="button" title="Patrick_2-1677480435763.png" alt="Patrick_2-1677480435763.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditorPatrick_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 06:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/861004#M340114</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-27T06:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/861021#M340119</link>
      <description>&lt;P&gt;Thanks Patrick,&lt;/P&gt;
&lt;P&gt;I was unaware that we can use two at the same time like "kd".&lt;/P&gt;
&lt;P&gt;Anyways thankyou very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 08:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/861021#M340119</guid>
      <dc:creator>nitink26</dc:creator>
      <dc:date>2023-02-27T08:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/861031#M340122</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/378763"&gt;@nitink26&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks Patrick,&lt;/P&gt;
&lt;P&gt;I was unaware that we can use two at the same time like "kd".&lt;/P&gt;
&lt;P&gt;Anyways thankyou very much.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can use as many as you like.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;K works like a NOT. So whatever you define using the K option will revert the selection. The same applies for other string functions like compress()&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 08:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/861031#M340122</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-27T08:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: I need to colour columns values while sending to excel (ods)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/861065#M340134</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
  infile datalines expandtabs truncover dlm=' ' ;
  input id A1-A7 values :$20.;
  datalines;
1 1 2 3 4 5 6 7 1,3,5
2 8 9 6 3 2 5 8 2,8,10
3 4 3 2 1 1 8 7 25,30,100
4 1 4 5 0 2 5 6 1,9,15
;

ods excel file="%sysfunc(pathname(work))\test.xlsx";
proc report data=test1;
  column  ID A1-A7 VALUES;
  define _all_/display;
  compute VALUES;
    array x{*} A1-A7;
 do i=1 to dim(x);
    IF findw(values,strip(x{i}),,'kd') THEN
      call define(vname(x{i}), "style", "style=[background=lightgreen]");
 end;
  endcomp;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1677499188214.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80883i57F4698E0B8DFD74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1677499188214.png" alt="Ksharp_0-1677499188214.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 12:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/861065#M340134</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-02-27T12:00:08Z</dc:date>
    </item>
  </channel>
</rss>

