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

LVL 16
Gurpreet Singh RandhawaCEOAsked:
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.

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
Gurpreet Singh RandhawaCEOAuthor Commented:
i have excel 2007,
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




with that buttons you can raise and lower the decimals
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

Gurpreet Singh RandhawaCEOAuthor Commented:
i am exporting from coldfusion to excel, i am not working wwithin excel
Can you show the line of coldfusion code you're using to write this value, I can help you modify it..
Gurpreet Singh RandhawaCEOAuthor 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
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.
Gurpreet Singh RandhawaCEOAuthor Commented:
Then Guide me how to fix it
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.
Gurpreet Singh RandhawaCEOAuthor 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
Dave BaldwinFixer of ProblemsCommented:
Excel will ignore standard CSS but is supposed to respond to 'mso' (MicroSoft Office) formatting.  Here is a list of some commands.  Here's some more info.

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 RandhawaCEOAuthor Commented:
Dave BaldwinFixer of ProblemsCommented:
You're welcome.
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.