<?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: Quick Formatting Problem with ExcelXP in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28352#M4396</link>
    <description>Oh, got it. You want the columns to stay where they are, you just don't want the TOTAL at the bottom of all the columns.&lt;BR /&gt;
&lt;BR /&gt;
Well, when PROC TABULATE uses ALL, it summarizes the statistics for ALL the columns. It's very hard to get TABULATE to do otherwise and the way you would have to do it if you absolutely, positively NEEDED to use tabulate is messy and inelegant. Possible, but inelegant.&lt;BR /&gt;
&lt;BR /&gt;
However, PROC REPORT comes to the rescue...because of the ability to do a COMPUTE AFTER, you can selectively "turn off" the total at the end of the report (produced by the RBREAK statement in PROC REPORT). See the program below.&lt;BR /&gt;
 &lt;BR /&gt;
The one wrench in the works is the fact that in order to figure out the correct absolute column name, you either have to KNOW the number of values for the ACROSS variable (in this case, PRODTYPE) or you have to figure it out ahead of time (either manually or with a SAS Macro) so you can generate the correct column numbers.&lt;BR /&gt;
 &lt;BR /&gt;
Here's how PROC REPORT figures absolute column numbers for the report below...taken from the COLUMN statement:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
  column ("REPORT solution" country division region) &lt;BR /&gt;
         prodtype,(predict actual) &lt;BR /&gt;
         ('Total' predict=ptot actual=atot);&lt;BR /&gt;
[/pre]&lt;BR /&gt;
   &lt;BR /&gt;
In this case, country is column 1, division is column 2 and region is column 3 (even if any of them were NOPRINT variables, they'd get assigned a number).&lt;BR /&gt;
Then &lt;BR /&gt;
1st PRODTYPE value: predict = _c4_  actual = _c5_&lt;BR /&gt;
2nd PRODTYPE value: predict = _c6_ actual = _c7_&lt;BR /&gt;
&lt;BR /&gt;
ptot is column 8 and atot is column 9&lt;BR /&gt;
  &lt;BR /&gt;
( know for sure that there are only 2 PRODTYPES in SASHELP.PRDSALE, so I didn't have to go any further than that and could hard code the absolute column numbers in the code below. In my COMPUTE block, the only variables that I am required to address by absolute column numbers are the variables under the across. Since PTOT and ATOT are aliases for predict and actual and since they're NOT under the ACROSS variable, I can refer to them by name.&lt;BR /&gt;
 &lt;BR /&gt;
However, let's say I had 4 values for PRODTYPE... then my assignment of absolute column numbers would happen like this:&lt;BR /&gt;
   &lt;BR /&gt;
Country, Division and Region would still be columns 1,2, and 3 &lt;BR /&gt;
Then &lt;BR /&gt;
1st PRODTYPE value: predict = _c4_  actual = _c5_&lt;BR /&gt;
2nd PRODTYPE value: predict = _c6_ actual = _c7_&lt;BR /&gt;
3rd PRODTYPE value: predict = _c8_ actual = _c9_&lt;BR /&gt;
4th PRODTYPE value: predict = _c10_ actual = _c11_&lt;BR /&gt;
   &lt;BR /&gt;
ptot is column 12 and atot is column 13&lt;BR /&gt;
 &lt;BR /&gt;
So you can see how the number of values for the across variable will have an impact on what you put in your compute block. However, using this method, you can then "blank" out the total underneath ACTUAL:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  compute after ;&lt;BR /&gt;
     if _break_ = '_RBREAK_' then do;&lt;BR /&gt;
        _c5_ = .;&lt;BR /&gt;
        _c7_ = .;&lt;BR /&gt;
        atot = .;&lt;BR /&gt;
     end;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
                     &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html file='c:\temp\crossexamp.html'&lt;BR /&gt;
         style=sasweb;&lt;BR /&gt;
proc tabulate data=sashelp.prdsale;&lt;BR /&gt;
  title 'tabulate examples';&lt;BR /&gt;
  class region division country prodtype;&lt;BR /&gt;
  var actual predict;&lt;BR /&gt;
  table country*division*region all,&lt;BR /&gt;
        (prodtype all)*(predict*sum actual*sum)&lt;BR /&gt;
   /box='1) cross predict and actual';&lt;BR /&gt;
                     &lt;BR /&gt;
run;&lt;BR /&gt;
                          &lt;BR /&gt;
options missing = ' ';&lt;BR /&gt;
proc report data=sashelp.prdsale nowd;&lt;BR /&gt;
  title 'proc report suppress total';&lt;BR /&gt;
  column ("REPORT solution" country division region) &lt;BR /&gt;
         prodtype,(predict actual) &lt;BR /&gt;
         ('Total' predict=ptot actual=atot);&lt;BR /&gt;
  define country /group &lt;BR /&gt;
         style(column) = Header;&lt;BR /&gt;
  define division / group&lt;BR /&gt;
         style(column) = Header;&lt;BR /&gt;
  define region / group&lt;BR /&gt;
         style(column) = Header;&lt;BR /&gt;
  define prodtype / across;&lt;BR /&gt;
&lt;BR /&gt;
  define predict / sum;&lt;BR /&gt;
  define actual / sum;&lt;BR /&gt;
  define ptot / sum;&lt;BR /&gt;
  define atot / sum;&lt;BR /&gt;
  rbreak after / summarize;&lt;BR /&gt;
  compute country;&lt;BR /&gt;
     if _break_ = '_RBREAK_' then do;&lt;BR /&gt;
        country = 'Total'; &lt;BR /&gt;
        call define(_col_,'style',&lt;BR /&gt;
             'style=Header');&lt;BR /&gt;
     end;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute division;&lt;BR /&gt;
     if _break_ = '_RBREAK_' then  &lt;BR /&gt;
        call define(_col_,'style',&lt;BR /&gt;
             'style=Header');&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute region;&lt;BR /&gt;
     if _break_ = '_RBREAK_' then  &lt;BR /&gt;
        call define(_col_,'style',&lt;BR /&gt;
             'style=Header');&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute after ;&lt;BR /&gt;
     if _break_ = '_RBREAK_' then do;&lt;BR /&gt;
        _c5_ = .;&lt;BR /&gt;
        _c7_ = .;&lt;BR /&gt;
        atot = .;&lt;BR /&gt;
     end;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;   &lt;BR /&gt;
options missing = .; &lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
    <pubDate>Fri, 11 Jul 2008 20:05:18 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-07-11T20:05:18Z</dc:date>
    <item>
      <title>Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28345#M4389</link>
      <description>Hi All:&lt;BR /&gt;
&lt;BR /&gt;
I have a pesky problem with formatting of a field using ExcelXP.&lt;BR /&gt;
&lt;BR /&gt;
Here is the code I run to create the report:&lt;BR /&gt;
&lt;BR /&gt;
PROC TABULATE DATA=sasdata.work05 missing order=data format=comma18.2;&lt;BR /&gt;
by eff_dt;                                                            &lt;BR /&gt;
class curc_name crncy_cde loc_cde db_cr_ind to_date;                  &lt;BR /&gt;
var calc_int_amt cad_eq db_sum cr_sum db_sum_cad cr_sum_cad;          &lt;BR /&gt;
table curc_name * crncy_cde * loc_cde all='Total',                    &lt;BR /&gt;
     (db_cr_ind=' ' all='Net') *                                      &lt;BR /&gt;
     (calc_int_amt='Local'*f=comma17.2 * sum=' '                      &lt;BR /&gt;
      cad_eq='CAD'*f=dollar18.2 * sum=' '                             &lt;BR /&gt;
     )  to_date=' ' *                                                 &lt;BR /&gt;
     (cr_sum='Credit to-date'*f=dollar18.2*sum=' '                    &lt;BR /&gt;
      cr_sum_cad='CAD'*f=dollar18.2*sum=' '                           &lt;BR /&gt;
      db_sum='Debit to-date'*F=comma17.2 *sum=' '                     &lt;BR /&gt;
      db_sum_cad='CAD'*F=dollar18.2 *sum=' '                          &lt;BR /&gt;
     )                                                                &lt;BR /&gt;
      / rts=22;                      &lt;BR /&gt;
&lt;BR /&gt;
When I run this I get the dollar values in the spreadsheet, but not the comma fields.  The fields are there, but unformatted  The commas are in the listing output.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?</description>
      <pubDate>Thu, 26 Jun 2008 19:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28345#M4389</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2008-06-26T19:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28346#M4390</link>
      <description>Hi, When you're using ODS to send your output report from SAS to Excel, generally Excel does not honor many of the SAS formats. There are 2 workarounds and they depend on which piece of ODS you're using to send your output from SAS to a file that Excel can open (HTML or SpreadsheetML XML).&lt;BR /&gt;
&lt;BR /&gt;
If you are using HTML-based methods to send your output from SAS to an HTML file that Excel can open, then you can use the HTMLSTYLE attribute to send a &lt;B&gt;Microsoft&lt;/B&gt; format from SAS to Excel. If you are using XML-based methods to send your output from SAS to an XML (Spreadsheet ML) file that Excel can open, then you can use the TAGATTR style attribute to send a &lt;B&gt;Microsoft&lt;/B&gt; format from SAS to Excel. If you search the forum for the string &lt;BR /&gt;
TAGATTR ExcelXP&lt;BR /&gt;
you should find some examples of sending a Microsoft format to Excel.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 27 Jun 2008 16:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28346#M4390</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-06-27T16:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28347#M4391</link>
      <description>Cynthia:&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the reply.  &lt;BR /&gt;
&lt;BR /&gt;
Just for the record, I'm using the ExcelXP tagset to write the data to the spreadsheet.&lt;BR /&gt;
&lt;BR /&gt;
I just find it odd that Excel will accept the $dollar format and not the commaW.D format.&lt;BR /&gt;
&lt;BR /&gt;
I would use the tagattr, but the tabulate statement is so complex, I wouldn't know where to put it.  I just hope my client will accept my explanation ("You can't get there from here!")</description>
      <pubDate>Fri, 27 Jun 2008 18:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28347#M4391</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2008-06-27T18:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28348#M4392</link>
      <description>Hi,&lt;BR /&gt;
  Let's say that you want to change this snippet to use tagattr:&lt;BR /&gt;
[pre]&lt;BR /&gt;
calc_int_amt='Local'*f=comma17.2 * sum=' '&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
You now have to add the STYLE= override to the snippet.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
calc_int_amt='Local'*f=comma17.2 * sum=' '*{s={tagattr="Format:???????"}}&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
In this case, the value for the tagattr attribute is the Microsoft format. I don't know exactly whether this would be the correct Microsoft format to use, but it works for this example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\usecomma.xls';&lt;BR /&gt;
              &lt;BR /&gt;
proc tabulate data=sashelp.shoes;&lt;BR /&gt;
class region product;&lt;BR /&gt;
var sales;&lt;BR /&gt;
table region*product,&lt;BR /&gt;
      sales*sum*f=comma12.2*{s={tagattr="format:###,###,###"}}; ;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sat, 28 Jun 2008 03:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28348#M4392</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-06-28T03:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28349#M4393</link>
      <description>Thanks Cynthia - I made those changes and the work great.&lt;BR /&gt;
&lt;BR /&gt;
One more issue I hope you can help me with - using the same code as above, I would like to create a column total only for the "CAD_EQ" variable.  As it stands now, I get column totals for that and the "CALC_INT_AMT" varialble using the ALL tag.&lt;BR /&gt;
&lt;BR /&gt;
code line(from above):      table curc_name * crncy_cde * loc_cde all='Total',    of the code.&lt;BR /&gt;
&lt;BR /&gt;
is there any way to do this?</description>
      <pubDate>Thu, 10 Jul 2008 19:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28349#M4393</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2008-07-10T19:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28350#M4394</link>
      <description>Hi:&lt;BR /&gt;
  Well, just guessing...PROC TABULATE is making buckets based on the table operators that you are using. In this case, the space and the parentheses are considered table operators. so you have this table statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
     (db_cr_ind=' ' all='Net') * &lt;BR /&gt;
     (calc_int_amt='Local'*f=comma17.2 * sum=' '  &lt;B&gt;cad_eq='CAD'*f=dollar18.2 * sum=' '&lt;/B&gt; ) &lt;BR /&gt;
    &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
which indicates that CAD_EQ is being CROSSED with DB_CR_IND and ALL in the COLUMN dimension...and is having row levels set by the crossing of&lt;BR /&gt;
[pre]&lt;BR /&gt;
curc_name * crncy_cde * loc_cde all='Total',&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                                    &lt;BR /&gt;
&lt;BR /&gt;
in the ROW dimension. So depending on how you got to this table statement and whether you -want-CAD_EQ crossed with  DB_CR_IND and ALL you might try restructuring your TABLE statement. Either take ALL out of the DB_CR_IND crossing or move CAD_EQ out of the crossing.&lt;BR /&gt;
&lt;BR /&gt;
The placement of the ALL and the parentheses can have a significant impact on your table. A simpler example which illustrates different ways of using ALL in a crossing with 2 numeric variables is shown in the program below. It uses SASHELP.PRDSALE, so you should be able to run in and see which one of the arrangements is close to the one you want.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
 &lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html file='c:\temp\crossexamp.html'&lt;BR /&gt;
         style=sasweb;&lt;BR /&gt;
proc tabulate data=sashelp.prdsale;&lt;BR /&gt;
  title 'tabulate examples';&lt;BR /&gt;
  class region division country prodtype;&lt;BR /&gt;
  var actual predict;&lt;BR /&gt;
  table country*division*region all,&lt;BR /&gt;
        (prodtype all)*(predict*sum actual*sum)&lt;BR /&gt;
   /box='1) cross predict and actual';&lt;BR /&gt;
                      &lt;BR /&gt;
  table country*division*region all,&lt;BR /&gt;
        (prodtype all)*(predict*sum) actual*sum&lt;BR /&gt;
    /box='2) only cross predict';&lt;BR /&gt;
                     &lt;BR /&gt;
  table country*division*region all,&lt;BR /&gt;
        (prodtype)*(predict*sum actual*sum)&lt;BR /&gt;
    /box='3) Have ALL only in ROW';&lt;BR /&gt;
                     &lt;BR /&gt;
   table country*division*region all,&lt;BR /&gt;
        (prodtype)*(predict*sum actual*sum)&lt;BR /&gt;
        all*actual*sum&lt;BR /&gt;
   /box='4) Have ALL only for Actual';&lt;BR /&gt;
                   &lt;BR /&gt;
  table country*division*region all,&lt;BR /&gt;
        (prodtype all)*(predict*sum)&lt;BR /&gt;
         prodtype*actual*sum&lt;BR /&gt;
   /box='5) PRODTYPE and ALL for PREDICT, only PRODTYPE for Actual';&lt;BR /&gt;
run;&lt;BR /&gt;
               &lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 10 Jul 2008 20:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28350#M4394</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-07-10T20:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28351#M4395</link>
      <description>Cynthia:&lt;BR /&gt;
&lt;BR /&gt;
You are brilliant (as usual), but ....&lt;BR /&gt;
&lt;BR /&gt;
Using the first table that is created from your example (which closely relates to what I have), here is what I need - &lt;BR /&gt;
&lt;BR /&gt;
For the 'Predicted Sales' column, I would like a total, but not for the 'Actual Sales' column.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?</description>
      <pubDate>Fri, 11 Jul 2008 14:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28351#M4395</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2008-07-11T14:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28352#M4396</link>
      <description>Oh, got it. You want the columns to stay where they are, you just don't want the TOTAL at the bottom of all the columns.&lt;BR /&gt;
&lt;BR /&gt;
Well, when PROC TABULATE uses ALL, it summarizes the statistics for ALL the columns. It's very hard to get TABULATE to do otherwise and the way you would have to do it if you absolutely, positively NEEDED to use tabulate is messy and inelegant. Possible, but inelegant.&lt;BR /&gt;
&lt;BR /&gt;
However, PROC REPORT comes to the rescue...because of the ability to do a COMPUTE AFTER, you can selectively "turn off" the total at the end of the report (produced by the RBREAK statement in PROC REPORT). See the program below.&lt;BR /&gt;
 &lt;BR /&gt;
The one wrench in the works is the fact that in order to figure out the correct absolute column name, you either have to KNOW the number of values for the ACROSS variable (in this case, PRODTYPE) or you have to figure it out ahead of time (either manually or with a SAS Macro) so you can generate the correct column numbers.&lt;BR /&gt;
 &lt;BR /&gt;
Here's how PROC REPORT figures absolute column numbers for the report below...taken from the COLUMN statement:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
  column ("REPORT solution" country division region) &lt;BR /&gt;
         prodtype,(predict actual) &lt;BR /&gt;
         ('Total' predict=ptot actual=atot);&lt;BR /&gt;
[/pre]&lt;BR /&gt;
   &lt;BR /&gt;
In this case, country is column 1, division is column 2 and region is column 3 (even if any of them were NOPRINT variables, they'd get assigned a number).&lt;BR /&gt;
Then &lt;BR /&gt;
1st PRODTYPE value: predict = _c4_  actual = _c5_&lt;BR /&gt;
2nd PRODTYPE value: predict = _c6_ actual = _c7_&lt;BR /&gt;
&lt;BR /&gt;
ptot is column 8 and atot is column 9&lt;BR /&gt;
  &lt;BR /&gt;
( know for sure that there are only 2 PRODTYPES in SASHELP.PRDSALE, so I didn't have to go any further than that and could hard code the absolute column numbers in the code below. In my COMPUTE block, the only variables that I am required to address by absolute column numbers are the variables under the across. Since PTOT and ATOT are aliases for predict and actual and since they're NOT under the ACROSS variable, I can refer to them by name.&lt;BR /&gt;
 &lt;BR /&gt;
However, let's say I had 4 values for PRODTYPE... then my assignment of absolute column numbers would happen like this:&lt;BR /&gt;
   &lt;BR /&gt;
Country, Division and Region would still be columns 1,2, and 3 &lt;BR /&gt;
Then &lt;BR /&gt;
1st PRODTYPE value: predict = _c4_  actual = _c5_&lt;BR /&gt;
2nd PRODTYPE value: predict = _c6_ actual = _c7_&lt;BR /&gt;
3rd PRODTYPE value: predict = _c8_ actual = _c9_&lt;BR /&gt;
4th PRODTYPE value: predict = _c10_ actual = _c11_&lt;BR /&gt;
   &lt;BR /&gt;
ptot is column 12 and atot is column 13&lt;BR /&gt;
 &lt;BR /&gt;
So you can see how the number of values for the across variable will have an impact on what you put in your compute block. However, using this method, you can then "blank" out the total underneath ACTUAL:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  compute after ;&lt;BR /&gt;
     if _break_ = '_RBREAK_' then do;&lt;BR /&gt;
        _c5_ = .;&lt;BR /&gt;
        _c7_ = .;&lt;BR /&gt;
        atot = .;&lt;BR /&gt;
     end;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
                     &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html file='c:\temp\crossexamp.html'&lt;BR /&gt;
         style=sasweb;&lt;BR /&gt;
proc tabulate data=sashelp.prdsale;&lt;BR /&gt;
  title 'tabulate examples';&lt;BR /&gt;
  class region division country prodtype;&lt;BR /&gt;
  var actual predict;&lt;BR /&gt;
  table country*division*region all,&lt;BR /&gt;
        (prodtype all)*(predict*sum actual*sum)&lt;BR /&gt;
   /box='1) cross predict and actual';&lt;BR /&gt;
                     &lt;BR /&gt;
run;&lt;BR /&gt;
                          &lt;BR /&gt;
options missing = ' ';&lt;BR /&gt;
proc report data=sashelp.prdsale nowd;&lt;BR /&gt;
  title 'proc report suppress total';&lt;BR /&gt;
  column ("REPORT solution" country division region) &lt;BR /&gt;
         prodtype,(predict actual) &lt;BR /&gt;
         ('Total' predict=ptot actual=atot);&lt;BR /&gt;
  define country /group &lt;BR /&gt;
         style(column) = Header;&lt;BR /&gt;
  define division / group&lt;BR /&gt;
         style(column) = Header;&lt;BR /&gt;
  define region / group&lt;BR /&gt;
         style(column) = Header;&lt;BR /&gt;
  define prodtype / across;&lt;BR /&gt;
&lt;BR /&gt;
  define predict / sum;&lt;BR /&gt;
  define actual / sum;&lt;BR /&gt;
  define ptot / sum;&lt;BR /&gt;
  define atot / sum;&lt;BR /&gt;
  rbreak after / summarize;&lt;BR /&gt;
  compute country;&lt;BR /&gt;
     if _break_ = '_RBREAK_' then do;&lt;BR /&gt;
        country = 'Total'; &lt;BR /&gt;
        call define(_col_,'style',&lt;BR /&gt;
             'style=Header');&lt;BR /&gt;
     end;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute division;&lt;BR /&gt;
     if _break_ = '_RBREAK_' then  &lt;BR /&gt;
        call define(_col_,'style',&lt;BR /&gt;
             'style=Header');&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute region;&lt;BR /&gt;
     if _break_ = '_RBREAK_' then  &lt;BR /&gt;
        call define(_col_,'style',&lt;BR /&gt;
             'style=Header');&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute after ;&lt;BR /&gt;
     if _break_ = '_RBREAK_' then do;&lt;BR /&gt;
        _c5_ = .;&lt;BR /&gt;
        _c7_ = .;&lt;BR /&gt;
        atot = .;&lt;BR /&gt;
     end;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;   &lt;BR /&gt;
options missing = .; &lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 11 Jul 2008 20:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28352#M4396</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-07-11T20:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28353#M4397</link>
      <description>Cynthia:&lt;BR /&gt;
&lt;BR /&gt;
I figured that I would have to convert the code to a PROC REPORT, but the data was not correctly set-up for it.  After a little "fudging of the figures" I managed to fit the data to the report (rather than vise-versa).&lt;BR /&gt;
&lt;BR /&gt;
The PROC REPORT also fixes a little column header problem that I had.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again.</description>
      <pubDate>Mon, 14 Jul 2008 12:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28353#M4397</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2008-07-14T12:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28354#M4398</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
THANK YOU!!!!!  I've just spent 2 hours trying to get different formats on different tables in one Tabulate output via ExcelXP.  I was really close, but I was confused about where the tagattr option went.  This just made me day!&lt;BR /&gt;
&lt;BR /&gt;
Jen</description>
      <pubDate>Thu, 31 Jul 2008 00:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28354#M4398</guid>
      <dc:creator>JenHarper</dc:creator>
      <dc:date>2008-07-31T00:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28355#M4399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the method "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;f=comma12.2*{s={tagattr="format:###,###,###"}}; ;&lt;/SPAN&gt;"&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you suggested to use in Excelxp tabulate formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did get the right result in the first tabulate of my code, but failed in the second tabulate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These 2 tabulate are almost the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea what is the reason accounts for this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Dec 2012 14:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28355#M4399</guid>
      <dc:creator>AlexHuang</dc:creator>
      <dc:date>2012-12-25T14:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28356#M4400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Without seeing your code, it is just a guess about what the issue is. If the TAGATTR works in one TABULATE and not the other, some of the possibilities might be:&lt;/P&gt;&lt;P&gt;1) the TAGATTR string is applied in the ROW dimension, for example and the COL dimension format is overriding it (the fix for this is to use STYLE_PRECEDENCE=ROW); or&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; the TAGATTR format is wrong (have you made sure it is correct? In the back of this paper, I show how to "reverse engineer" finding out whether you are using the correct value for TAGATTR. &lt;A href="http://support.sas.com/resources/papers/proceedings11/266-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/266-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/266-2011.pdf&lt;/A&gt;) or&lt;/P&gt;&lt;P&gt;3) you are applying the style override to the wrong variable, wrong crossing or wrong piece of the table (such as using TAGATTR in a CLASS statement instead of a TABLE statement) or&lt;/P&gt;&lt;P&gt;4) "almost the same" is just different enough to cause your issue, or&lt;/P&gt;&lt;P&gt;5) Excel has problems using your format (related to #2, but you are asking for a custom format that Excel doesn't like), or&lt;/P&gt;&lt;P&gt;6) something else....depending on your data or your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can you post a simplified version of your code, perhaps using SASHELP.SHOES, as shown in one of the earlier posts? If you can't replicate your issue using SASHELP.SHOES, then the problem might be with your data. If you can replicate your issue using SASHELP.SHOES, then you've provided code that someone might be able to run in order to see whether they can help you or you've got code that you can send to Tech Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;**Sample code to start with;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** SASHELP.SHOES has 3 numeric vars: sales, inventory and returns;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** with region, product and subsidiary as all possible CLASS variables.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** Table below uses only region, product and sales.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp file='c:\temp\usetagattr.xml'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc tabulate data=sashelp.shoes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;where region in ('Canada', 'United States');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;class region product;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var sales;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;table region*product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales*sum*f=comma12.2*{s={tagattr="format:###,###,###"}}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; /box='TABLE stmt' ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Dec 2012 15:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28356#M4400</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-12-25T15:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28357#M4401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reponse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved the problem after including "excltags.tpl" downloaded from sas website.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname tagslib "/DIR_HOME";&lt;/P&gt;&lt;P&gt;ods path(prepend) tagslib.templat(update);&lt;/P&gt;&lt;P&gt;%inc "/DIR_HOME/excltags.tpl";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I do not really understand the reason.&lt;/P&gt;&lt;P&gt;Could you give me an insight into this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 02:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28357#M4401</guid>
      <dc:creator>AlexHuang</dc:creator>
      <dc:date>2012-12-26T02:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28358#M4402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Excltags.tpl is the underlying PROC TEMPLATE code that 1) builds the tagset template which 2)&amp;nbsp; instructs ODS how to write the XML markup language, as dictated by the Microsoft specification. Spreadsheet Markup Language is what Microsoft invented in 2002/2003 of Office in order to have an XML definition for a workbook with spreadsheets. Apparently the issue you ran into involved an older version of the tagset template and was fixed by installing/downloading/updating the version to be the most current version of the tagset template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 03:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28358#M4402</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-12-26T03:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28359#M4403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your specifications&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 02:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28359#M4403</guid>
      <dc:creator>AlexHuang</dc:creator>
      <dc:date>2012-12-27T02:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28360#M4404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another problem with the row header alignment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="kp.JPG" class="jive-image" src="https://communities.sas.com/legacyfs/online/2866_kp.JPG" /&gt;&lt;/P&gt;&lt;P&gt;the number fields in the row header is always aligned right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I align them left.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried these methods&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt; replace RowHeader from Header /&lt;/P&gt;&lt;P&gt; just = center&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;proc tabulate data=&amp;nbsp; missing order=formatted style=[just=center]&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;table &amp;amp;row * {style=[just=left]}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but none of above works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 03:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28360#M4404</guid>
      <dc:creator>AlexHuang</dc:creator>
      <dc:date>2012-12-27T03:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Formatting Problem with ExcelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28361#M4405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; It's hard to say. The REPLACE statement went away in SAS 9.2, so your style code is suspect unless you are still running SAS 9.1.3. But, you didn't show your whole template, and besides, what you specify in a style template would apply to ALL the row headers the same way. That's why I prefer to use style overrides in my CLASS and CLASSLEV statements, so I can possibly apply one set of style attributes to one variable and another set of style attributes to another variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, any style adjustments you make on the PROC TABULATE statement or on the TABLE statement ONLY apply to the calculated table cells, shown in pink in the #1 output below. What you specify in the TABULATE or TABLE statements would have no impact on the row title (or row header) area in TABULATE output. Next, you show a macro variable &amp;amp;ROW -- but where is your CLASS statement or statements??? It would be those statements where your overrides would be specified (or the CLASSLEV, depending on whether you wanted to style the headers for the CLASS variables or the class levels for the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Take a look at the attached code and screenshots. BTW, this was a really OLD post that you piggy-backed your question onto, and it was already a long post with several back and forth questions. Your tagging onto the old post made it even longer. I generally recommend that you start a new post and then either reference the older post or just let us know that you've tried a solution posted in an earlier post. Certainly, this second question about row headers was off-topic from the first, older post, which started out as a PROC TABULATE post, but then turned into being about PROC REPORT. I would recommend that if you have another question, that you start a new forum post instead of tacking your question onto an older post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.excelxp file='c:\temp\align_hdr.xml'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=sasweb;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc tabulate data=sashelp.class style={background=pink};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; class age sex;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var height;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; table age*sex all,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height*(min max) / box='1) Override on TABULATE Stmt';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc tabulate data=sashelp.class;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; class age / style={just=c background=pink color=black};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; class sex / style={just=c background=yellow color=black};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; classlev age / style={just=c};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; classlev sex / style={just=l};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; var height/style={just=r};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; table age*sex all,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height*(min*{s={just=l}} max*{s={just=c}})&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /box="2) With Overrides Other Stmts";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; keyword all / style={just=c color=cyan};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; keyword min max / style={just=l color=red};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.excelxp close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11280i792F9E427DF56819/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="override_tab_stmt.png" title="override_tab_stmt.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11281i5D0B255B8C033DF4/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="override_other_stmts.png" title="override_other_stmts.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 16:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Quick-Formatting-Problem-with-ExcelXP/m-p/28361#M4405</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-12-27T16:49:28Z</dc:date>
    </item>
  </channel>
</rss>

