Hi All,
I have a dataset in which one particular column has the values like below
and I want to generate an excel report in which these values from the said column should look like below.
Could you please help me here. Many thanks in advance.
Regards,
Vikrant Sawatkar
Flyover text is text that shows up when you hover over the cell, ie Excel Comments. Is that what you're trying to modify here or the value in the cells?
I'm not understanding your subject with how you've phrased the question.
If you're modifying values in the cell, see the answers here:
Hi,
Sorry for the confusion.
I want to modify the values in the cells. So that when the report is gets created, the values are displayed as per the screenshot above.
I am using SAS 9.2.
Ok, did the solution in the link not work for you?
You put the '0d0a'x (see below) in the location where you want a carriage return. When you export to Excel it should resolve as the carriage return. You're likely exporting to an XLS file so how you export is different but I suspect everything else is the same. If this does not work, post your code, log and a screenshot of your results.
'0d0a'x
Use ~n as your return characters.
Firstly, change your text into as :
This......follow ~n
(1)................. ~n
(2)...................~n
Then, output it into a excel file.
ods escapechar='~';
ods excel file='......';
proc report......
ods excel close;
@Ksharp SAS 9.2 definitely does not have ODS Excel.
Opps, then try
ods tagsets.excelxp ............
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.