Hi All,
I am outputting a proc tabulate to excel via ods tagsets.Excelxp.
Is there a way I can make the grand total row and column bold?
Example below:
ods tagsets.ExcelXP file=fileout style=normal;
proc tabulate data=sashelp.shoes;
class product region / missing;
var sales;
table product all='Grand Total',
sales * (region all='Grand Total') * {style={tagattr='format:#,##0.00'}};
run;
ods _all_ close;
Kind Regards,
cxkev
Hi, something like this?
ods tagsets.excelxp path='c:\users\desktop' file='shoes.xml' style=normal;
proc tabulate data=sashelp.shoes style={tagattr='format:#,##0.00'};
class product region / missing;
var sales ;
table product all='grand total'*{style=<parent>},
sales*(region all='grand total'*{style=<parent>});
keyword all / style={font_weight=bold tagattr='format:#,##0.00'};
run;
ods _all_ close;
Hi, something like this?
ods tagsets.excelxp path='c:\users\desktop' file='shoes.xml' style=normal;
proc tabulate data=sashelp.shoes style={tagattr='format:#,##0.00'};
class product region / missing;
var sales ;
table product all='grand total'*{style=<parent>},
sales*(region all='grand total'*{style=<parent>});
keyword all / style={font_weight=bold tagattr='format:#,##0.00'};
run;
ods _all_ close;
Sorry for the late reply. Please see below updated code in regards to your concern. HTH.
ods tagsets.excelxp path='c:\users\desktop' file='shoes.xml' style=normal;
proc tabulate data=sashelp.shoes style=[tagattr='format:#,##0.00'];
class product region / missing;
var sales;
table product all='Grand Total'*{style=[font_weight=bold tagattr='format:#,##0.00']},
sales*(region all='Grand Total'*{style=[font_weight=bold tagattr='format:#,##0.00']});
run;
ods _all_ close;
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.