<?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 How to create values in designated cell or merging cells in excel before Proc Report listing in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-values-in-designated-cell-or-merging-cells-in/m-p/898579#M26395</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-10-13 at 9.28.57 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88857iE324D286046E6843/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-10-13 at 9.28.57 PM.png" alt="Screenshot 2023-10-13 at 9.28.57 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to create the bottom listing under Row 9 by using proc report. But how to create those cells in yellow in one designated cell or designated merging cells as in the above screenshot? Is it doable in proc report title statement?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, can I use data _null_ for that? Is it possible to use data _null_ for the top part and Proc Report for the bottom part?&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 14 Oct 2023 02:16:43 GMT</pubDate>
    <dc:creator>m2l2</dc:creator>
    <dc:date>2023-10-14T02:16:43Z</dc:date>
    <item>
      <title>How to create values in designated cell or merging cells in excel before Proc Report listing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-values-in-designated-cell-or-merging-cells-in/m-p/898579#M26395</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-10-13 at 9.28.57 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88857iE324D286046E6843/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-10-13 at 9.28.57 PM.png" alt="Screenshot 2023-10-13 at 9.28.57 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to create the bottom listing under Row 9 by using proc report. But how to create those cells in yellow in one designated cell or designated merging cells as in the above screenshot? Is it doable in proc report title statement?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, can I use data _null_ for that? Is it possible to use data _null_ for the top part and Proc Report for the bottom part?&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 02:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-values-in-designated-cell-or-merging-cells-in/m-p/898579#M26395</guid>
      <dc:creator>m2l2</dc:creator>
      <dc:date>2023-10-14T02:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create values in designated cell or merging cells in excel before Proc Report listing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-values-in-designated-cell-or-merging-cells-in/m-p/898590#M26396</link>
      <description>&lt;P&gt;If you don't require too much, could try this simple code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
array x{8} (8*1);
output;
output;
run;
ods excel file='c:\temp\x.xlsx';
proc report data=have nowd;
columns ('MDCG' 
('MS+NCA'  ('No. of subjects' ('Date of report' (' ' x1))))
(' '  (' ' x2))
(' ' (' ' x3))

('No. of subjects' (' ' (' ' x4))
(' ' (' ' x5)) )

(' ' (' '  x6))

('Reference Member' ('No. of Investion ' (' ' ('Description' x7 x8)))));
define _all_/display;
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-1697275498958.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88858iFCD93822C383A61B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1697275498958.png" alt="Ksharp_0-1697275498958.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise , you need to resort to RWI skill:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/add-dummy-across-columns-header-in-proc-report/m-p/896768" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/add-dummy-across-columns-header-in-proc-report/m-p/896768&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Proc-Report-Merge-Columns/m-p/889989" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Proc-Report-Merge-Columns/m-p/889989&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 09:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-values-in-designated-cell-or-merging-cells-in/m-p/898590#M26396</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-10-14T09:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create values in designated cell or merging cells in excel before Proc Report listing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-values-in-designated-cell-or-merging-cells-in/m-p/898866#M26406</link>
      <description>Thanks a lot! I will give it try.</description>
      <pubDate>Tue, 17 Oct 2023 00:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-values-in-designated-cell-or-merging-cells-in/m-p/898866#M26406</guid>
      <dc:creator>m2l2</dc:creator>
      <dc:date>2023-10-17T00:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create values in designated cell or merging cells in excel before Proc Report listing</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-values-in-designated-cell-or-merging-cells-in/m-p/898869#M26407</link>
      <description>&lt;P&gt;When it comes to a bit more involved Excel layouts and formatting then one way that often makes things easier to implement and maintain is to keep structure and data separated.&lt;/P&gt;
&lt;P&gt;Have your reporting sheet with all the layout and a datasheet. You then create an Excel template with the report sheet that just got the structure and references to the cells in the data sheet. When you run your SAS program you create a copy of the template and create and populate the data sheet (if eventually hide the data sheet).&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 02:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-create-values-in-designated-cell-or-merging-cells-in/m-p/898869#M26407</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-10-17T02:33:58Z</dc:date>
    </item>
  </channel>
</rss>

