Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Format - Add space between number and symbol (%)

Hi !
I have a cell in Excel which contains a % (ex: 88%) and I would like to add
a space between the number and the pourcentage. (88 %) Is there any
personalized format that allow me to add a space ?
strData = Cells(1,1 '0.88
strFormat = Cells(1,1).NumberFormat 'strFormat = 0%
if strFormat = "0%" then strFormat = ???
strData = Format(strData,strFormat)

Thank you.
--
Alex St-Pierre
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Format - Add space between number and symbol (%)

if you don't need code, you can use a custom format. just format-cells-custom
and enter 0.00 %

--


Gary


"Alex St-Pierre" wrote in message
...
Hi !
I have a cell in Excel which contains a % (ex: 88%) and I would like to add
a space between the number and the pourcentage. (88 %) Is there any
personalized format that allow me to add a space ?
strData = Cells(1,1 '0.88
strFormat = Cells(1,1).NumberFormat 'strFormat = 0%
if strFormat = "0%" then strFormat = ???
strData = Format(strData,strFormat)

Thank you.
--
Alex St-Pierre



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Format - Add space between number and symbol (%)

When I write: 0.00%, I see, 87.59% and when I write 0.00 %, I see 0.9%. I
can't see 88 %.

Thanks!
--
Alex St-Pierre


"Gary Keramidas" wrote:

if you don't need code, you can use a custom format. just format-cells-custom
and enter 0.00 %

--


Gary


"Alex St-Pierre" wrote in message
...
Hi !
I have a cell in Excel which contains a % (ex: 88%) and I would like to add
a space between the number and the pourcentage. (88 %) Is there any
personalized format that allow me to add a space ?
strData = Cells(1,1 '0.88
strFormat = Cells(1,1).NumberFormat 'strFormat = 0%
if strFormat = "0%" then strFormat = ???
strData = Format(strData,strFormat)

Thank you.
--
Alex St-Pierre




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Format - Add space between number and symbol (%)

i tried 0 % and it worked for me

--


Gary


"Alex St-Pierre" wrote in message
...
When I write: 0.00%, I see, 87.59% and when I write 0.00 %, I see 0.9%. I
can't see 88 %.

Thanks!
--
Alex St-Pierre


"Gary Keramidas" wrote:

if you don't need code, you can use a custom format. just
format-cells-custom
and enter 0.00 %

--


Gary


"Alex St-Pierre" wrote in message
...
Hi !
I have a cell in Excel which contains a % (ex: 88%) and I would like to add
a space between the number and the pourcentage. (88 %) Is there any
personalized format that allow me to add a space ?
strData = Cells(1,1 '0.88
strFormat = Cells(1,1).NumberFormat 'strFormat = 0%
if strFormat = "0%" then strFormat = ???
strData = Format(strData,strFormat)

Thank you.
--
Alex St-Pierre








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Format - Add space between number and symbol (%)

It is probably because all my computer language is in french. It's strange..
--
Alex St-Pierre


"Gary Keramidas" wrote:

i tried 0 % and it worked for me

--


Gary


"Alex St-Pierre" wrote in message
...
When I write: 0.00%, I see, 87.59% and when I write 0.00 %, I see 0.9%. I
can't see 88 %.

Thanks!
--
Alex St-Pierre


"Gary Keramidas" wrote:

if you don't need code, you can use a custom format. just
format-cells-custom
and enter 0.00 %

--


Gary


"Alex St-Pierre" wrote in message
...
Hi !
I have a cell in Excel which contains a % (ex: 88%) and I would like to add
a space between the number and the pourcentage. (88 %) Is there any
personalized format that allow me to add a space ?
strData = Cells(1,1 '0.88
strFormat = Cells(1,1).NumberFormat 'strFormat = 0%
if strFormat = "0%" then strFormat = ???
strData = Format(strData,strFormat)

Thank you.
--
Alex St-Pierre






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Format - Add space between number and symbol (%)


Perhaps try the following:

0.0" "%


-Ikaabod

Alex St-Pierre Wrote:
It is probably because all my computer language is in french. It's
strange..
--
Alex St-Pierre


"Gary Keramidas" wrote:

i tried 0 % and it worked for me

--


Gary


"Alex St-Pierre" wrote in

message
...
When I write: 0.00%, I see, 87.59% and when I write 0.00 %, I see

0.9%. I
can't see 88 %.

Thanks!
--
Alex St-Pierre


"Gary Keramidas" wrote:

if you don't need code, you can use a custom format. just
format-cells-custom
and enter 0.00 %

--


Gary


"Alex St-Pierre" wrote in

message
...
Hi !
I have a cell in Excel which contains a % (ex: 88%) and I would

like to add
a space between the number and the pourcentage. (88 %) Is there

any
personalized format that allow me to add a space ?
strData = Cells(1,1 '0.88
strFormat = Cells(1,1).NumberFormat 'strFormat = 0%
if strFormat = "0%" then strFormat = ???
strData = Format(strData,strFormat)

Thank you.
--
Alex St-Pierre








--
Ikaabod
------------------------------------------------------------------------
Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371
View this thread: http://www.excelforum.com/showthread...hreadid=533774

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add symbol to number & still act as number in excel? swinq Excel Discussion (Misc queries) 3 June 17th 08 08:17 PM
Symbol or text after number to used in sum Be18 Excel Worksheet Functions 4 February 26th 07 10:11 PM
Format number to display % symbol smaller than onther text in cell [email protected] Excel Discussion (Misc queries) 1 October 11th 06 12:31 AM
How do I create a custom number format in Excel using a symbol? mbuckrell Excel Discussion (Misc queries) 2 July 26th 06 12:49 AM
How do i add the squared symbol to a number mike Excel Discussion (Misc queries) 3 August 1st 05 06:17 PM


All times are GMT +1. The time now is 02:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"