04-01-2015 04:30 AM
Good day all,
i have the dataset of emp data.
its having different formats for salary variable. comma and percent format.
so i apply proc format for that.
in proc report its showing as it is. but while exporting it into excel only percentages format is applying. the comma format is missing.
after export into excel the output like this.
how to get the required output with applying comma and percentage format.
your valid comments are helps me a lot.
04-01-2015 06:43 AM
Try to write "2,50,111" into a cell in Excel and see if Excel accepts that as a number. My bet is, it won't (maybe depending on locale).
04-01-2015 06:51 AM
Instead of writing in excel while exporting only the format is there.
is it possible any sufficient method is there.
04-01-2015 06:52 AM
if there is two records then it is possible to manual entry. but when its contain thousands of records manual is not possible.
while exporting only the format is apply.
04-01-2015 07:50 AM
What I meant is that Excel does not regard 1,52,133 as a number, but as text. SAS therefore sends the pure value without formatting, so that the number stays a number.
04-01-2015 07:54 AM
BTW, if I use your format fmt. on the value 152133, it is rendered by SAS as 152,133, so I expect the locale value to play a big role in your problem.
04-11-2015 07:34 AM
You need special style for excel .
Post it at ODS and Base Reporting Cynthia will give you answer.