PC Review


Reply
Thread Tools Rate Thread

Convert Decimal to Percent Within Text String

 
 
Brian
Guest
Posts: n/a
 
      22nd Nov 2006
Hello everybody,

I have a text string in Excel that contains percentage values taken
from different cells. However, the text string reads the percentage
value and outputs it as a decimal:

Percent defects of 0.678276052493135, 0.674664937815204 and
0.57388331030011.

Here is the code:

="Percent defects of "&N2&", "&N3&" and "&N4&"." (Cells N2, N3 and N4
contain percentages)

I hope I'm not missing a very simple solution here.

Thanks!
Brian

 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      22nd Nov 2006
Hi Brian,

="Percent defects of "&TEXT(N2,"0.00%") etc

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Brian" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| Hello everybody,
|
| I have a text string in Excel that contains percentage values taken
| from different cells. However, the text string reads the percentage
| value and outputs it as a decimal:
|
| Percent defects of 0.678276052493135, 0.674664937815204 and
| 0.57388331030011.
|
| Here is the code:
|
| ="Percent defects of "&N2&", "&N3&" and "&N4&"." (Cells N2, N3 and N4
| contain percentages)
|
| I hope I'm not missing a very simple solution here.
|
| Thanks!
| Brian
|


 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      22nd Nov 2006
Try this, Brian:

="Percent defects of "&TEXT(N2,"0.0%")&", "&TEXT(N3,"0.0%")&" and
"&TEXT(N4,"0.0%")&"."

Hope this helps.

Pete

Brian wrote:

> Hello everybody,
>
> I have a text string in Excel that contains percentage values taken
> from different cells. However, the text string reads the percentage
> value and outputs it as a decimal:
>
> Percent defects of 0.678276052493135, 0.674664937815204 and
> 0.57388331030011.
>
> Here is the code:
>
> ="Percent defects of "&N2&", "&N3&" and "&N4&"." (Cells N2, N3 and N4
> contain percentages)
>
> I hope I'm not missing a very simple solution here.
>
> Thanks!
> Brian


 
Reply With Quote
 
Ken Puls
Guest
Posts: n/a
 
      22nd Nov 2006
="Percent defects of "&TEXT(N2,"0.0%")&", "&TEXT(N3,"0.0%")&" and
"&TEXT(N4,"0.0%")&"."

HTH

Ken Puls, CMA - Microsoft MVP (Excel)
www.excelguru.ca

Brian wrote:
> Hello everybody,
>
> I have a text string in Excel that contains percentage values taken
> from different cells. However, the text string reads the percentage
> value and outputs it as a decimal:
>
> Percent defects of 0.678276052493135, 0.674664937815204 and
> 0.57388331030011.
>
> Here is the code:
>
> ="Percent defects of "&N2&", "&N3&" and "&N4&"." (Cells N2, N3 and N4
> contain percentages)
>
> I hope I'm not missing a very simple solution here.
>
> Thanks!
> Brian
>

 
Reply With Quote
 
Brian
Guest
Posts: n/a
 
      22nd Nov 2006
Thank you to everybody who contributed to this excellent team effort!

Brian

Ken Puls wrote:
> ="Percent defects of "&TEXT(N2,"0.0%")&", "&TEXT(N3,"0.0%")&" and
> "&TEXT(N4,"0.0%")&"."
>
> HTH
>
> Ken Puls, CMA - Microsoft MVP (Excel)
> www.excelguru.ca
>
> Brian wrote:
> > Hello everybody,
> >
> > I have a text string in Excel that contains percentage values taken
> > from different cells. However, the text string reads the percentage
> > value and outputs it as a decimal:
> >
> > Percent defects of 0.678276052493135, 0.674664937815204 and
> > 0.57388331030011.
> >
> > Here is the code:
> >
> > ="Percent defects of "&N2&", "&N3&" and "&N4&"." (Cells N2, N3 and N4
> > contain percentages)
> >
> > I hope I'm not missing a very simple solution here.
> >
> > Thanks!
> > Brian
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Percent Format: Allow user to type Percent, not decimal? PeteCresswell Microsoft Access 3 19th Dec 2007 09:48 PM
Convert C# string to decimal STom Microsoft C# .NET 4 14th Jan 2005 05:22 PM
How to convert string to decimal? JenHu Microsoft ASP .NET 3 6th Jan 2005 05:33 PM
Convert string to decimal =?Utf-8?B?TGVvbi5LZW1w?= Microsoft VB .NET 4 28th Feb 2004 06:18 PM
How to convert decimal to string ? Anders Both Microsoft C# .NET 2 8th Jan 2004 02:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:34 PM.