PC Review


Reply
Thread Tools Rate Thread

Displaying a + sign on positive numbers

 
 
Alex
Guest
Posts: n/a
 
      11th Nov 2003
I am calculating the percentage increase / decrease on two numbers. If the
difference results in a decrease of, say 2.2% it is displayed as -2.2%

If the result is an increase of 2.2%, then 2.2% is displayed. Purely for
formatting reasons, I wish to display the figure as +2.2%

How can I set this up so that positive numbers contain a plus sign, whilst
maintaining the cell as a number? I can carry out an IF statement that will
add a "+" to the figure if it's greater than zero, but this ignores any
formatting to a set number of decimal places.

Any help will be appreciated!


 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      11th Nov 2003
Select the cells of interest, then select Format | Cells and select Custom
in the Category list.

In type click on the line that shows:

# ##0;-# ##0

And this will apear up above in the Type box.

Simply edit to put a + in front of the first part, so it now reads:
+# ##0;-# ##0

and that should do the trick.

If you want slightly different formating, edit accordingly. The part before
the ; is for +ve numbers, that after the ; is for negative numbers.

HTH

David
"Alex" <@> wrote in message news:(E-Mail Removed)...
> I am calculating the percentage increase / decrease on two numbers. If

the
> difference results in a decrease of, say 2.2% it is displayed as -2.2%
>
> If the result is an increase of 2.2%, then 2.2% is displayed. Purely for
> formatting reasons, I wish to display the figure as +2.2%
>
> How can I set this up so that positive numbers contain a plus sign, whilst
> maintaining the cell as a number? I can carry out an IF statement that

will
> add a "+" to the figure if it's greater than zero, but this ignores any
> formatting to a set number of decimal places.
>
> Any help will be appreciated!
>
>



 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      11th Nov 2003
On Tue, 11 Nov 2003 11:47:10 -0000, "Alex" <@> wrote:

>I am calculating the percentage increase / decrease on two numbers. If the
>difference results in a decrease of, say 2.2% it is displayed as -2.2%
>
>If the result is an increase of 2.2%, then 2.2% is displayed. Purely for
>formatting reasons, I wish to display the figure as +2.2%
>
>How can I set this up so that positive numbers contain a plus sign, whilst
>maintaining the cell as a number? I can carry out an IF statement that will
>add a "+" to the figure if it's greater than zero, but this ignores any
>formatting to a set number of decimal places.
>
>Any help will be appreciated!
>


Format/Cells/Number/Custom/Type: +0.0%;-0.0%;0.0%


--ron
 
Reply With Quote
 
Ture Magnusson
Guest
Posts: n/a
 
      11th Nov 2003
Alex,

Use a custom number format, like this:

1. Select the cells with percentages
2. Format - Cells
3. On the "Number" tab, select "Custom" category
4. Enter this in the "Type" text box:

+0.0%;-0.0%;0.0%

(This sets how positive, negative and zero values are
displayed. The three number formats are separated
by semicolons.)

5. Click "OK"

--
Ture Magnusson
Microsoft MVP - Excel
Karlstad, Sweden

"Alex" <@> wrote in message news:(E-Mail Removed)...
> I am calculating the percentage increase / decrease on two numbers. If

the
> difference results in a decrease of, say 2.2% it is displayed as -2.2%
>
> If the result is an increase of 2.2%, then 2.2% is displayed. Purely for
> formatting reasons, I wish to display the figure as +2.2%
>
> How can I set this up so that positive numbers contain a plus sign, whilst
> maintaining the cell as a number? I can carry out an IF statement that

will
> add a "+" to the figure if it's greater than zero, but this ignores any
> formatting to a set number of decimal places.
>
> Any help will be appreciated!
>
>



 
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
Display plus sign for positive numbers mrgou Microsoft Excel Misc 2 29th Mar 2011 01:08 PM
Plus Sign For Positive Numbers charles.kendricks@charter.net Microsoft Access 1 11th Jun 2006 12:29 PM
positive numbers with '+' sign =?Utf-8?B?YWxla20=?= Microsoft Excel Misc 2 18th Jun 2004 10:14 AM
How to display the plus sign for positive numbers. Tony Zannini Microsoft Excel Worksheet Functions 2 27th Feb 2004 04:38 PM
Showing plus sign on positive numbers =?Utf-8?B?VGhlIFJlZGhlYWQ=?= Microsoft Excel Programming 2 4th Feb 2004 01:31 PM


Features
 

Advertising
 

Newsgroups
 


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