keeping just one decimal after a dot

Hi Actually I am Exporting data to Excel and i need to show the data as 105.2% while in excel it shows as 105.20%,  The percentage sign i am adding manually, how can i remove the last zero from the data i tried using numberformat in Cf page but no workaround, please guide

thanks
LVL 16
Gurpreet Singh RandhawaWeb DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TeargasCommented:
do you have excel 2010?

for excel 2010 and i think in other versions it should be similar you just have to right click on the cell -> formating -> numbers -> choose percentage -> on the right you can click and choose the digits e.g 1.

hope it helped
0
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
i have excel 2007,
0
TeargasCommented:
in excel 2007 you should have the same command, if you have the standard view you just have in the 2nd line, where you can select your font a bit right something that look like this

<-.0
.00

and

'00
->0

with that buttons you can raise and lower the decimals
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
i am exporting from coldfusion to excel, i am not working wwithin excel
0
gdemariaCommented:
Can you show the line of coldfusion code you're using to write this value, I can help you modify it..
0
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:

i am just using as #mydata# inside the <cfsavecontent>

and then i am am writing this in excel.

on my screen it appears as 0.0% or 154.1%

in excel i want the format to same, but i am not getting it, just guide
0
Dave BaldwinFixer of ProblemsCommented:
You are seeing the 'default formatting' in Excel (and Libreoffice).  If you type 154.1% into a cell in Excel and press enter, it will convert it to 154.10%.  Unless you can find a way to change the default formatting, you can't change that.
0
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
Then Guide me how to fix it
0
Dave BaldwinFixer of ProblemsCommented:
I don't believe you can fix it outside of Excel.  CSV and HTML imports are subject to the default formatting rules and those rules can't be changed outside the program.  You can't even force it to be text without adding a letter to it.
0
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
still there might we give it a try using some removechars or listlast or right function, well just a thought actually i tried it but may be i was doing wrong way

Any CSS implementation
0
Dave BaldwinFixer of ProblemsCommented:
Excel will ignore standard CSS but is supposed to respond to 'mso' (MicroSoft Office) formatting.  Here http://cosicimiento.blogspot.com/2008/11/styling-excel-cells-with-mso-number.html is a list of some commands.  Here's http://agoric.com/sources/software/htmltoExcel some more info.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gurpreet Singh RandhawaWeb DeveloperAuthor Commented:
Thanks
0
Dave BaldwinFixer of ProblemsCommented:
You're welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.