Hi friends,
I have imported an Excel sheet with a value, and i need to change de format.
Example: The value in excel is 342554.1294
I think the correct value is 34.255,41
Anyone know how i can format it in a computed Column?
I'm importing the sheet by import task in SAS GE
@guilhermeagc wrote:
Hi friends,
I have an Excel sheet with a value, and i need to change de format.
Example: The value in excel is 342554.1294
I think the correct value is 34.255,41
Anyone know how i can format it in a computed Column?
If you have the value 342,554.1294 and you want it to display as 32,255.41 then you need to divide by 10.
If you want the decimal point and thousands separators meaning reversed then try using the COMMAX format. Or perhaps one of the NLNUM formats. If you specify the decimal digits as 2 on the format then the fractional part will be displayed as 41 instead of 41294. Make sure when specifying the overall width to include room for the decimal point and thousands separators.
This is hardly a SAS question? 🙂
@guilhermeagc wrote:
Hi friends,
I have an Excel sheet with a value, and i need to change de format.
Example: The value in excel is 342554.1294
I think the correct value is 34.255,41
Anyone know how i can format it in a computed Column?
If you have the value 342,554.1294 and you want it to display as 32,255.41 then you need to divide by 10.
If you want the decimal point and thousands separators meaning reversed then try using the COMMAX format. Or perhaps one of the NLNUM formats. If you specify the decimal digits as 2 on the format then the fractional part will be displayed as 41 instead of 41294. Make sure when specifying the overall width to include room for the decimal point and thousands separators.
It Works, Tom!
You are the best! Thanks!
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: