adding + sign to number column ?

tcurrier

Board Regular
Joined
Apr 27, 2006
Messages
175
I have a column of numbers that has a negative sign prefixing the negative numbers, but no plus (+) prefixing the positive numbers.
I need to add the (+) in order to conditionally match another column of number that does have the (+). Currently, it's flagging them as differences.

Can anyone help ?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

VN

Board Regular
Joined
Aug 19, 2003
Messages
83
At file menu Format/Cells - Number -Custom
at Type :
Define
Code:
+#;-#
 

tcurrier

Board Regular
Joined
Apr 27, 2006
Messages
175
Thanks, that worked for the numbers other than 0. It replaced
all of the 0's with + with no 0 after it...

Is there any way to fix that ?

old:
0

new:
+
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707

ADVERTISEMENT

Hi

In case you're running into situations where rounding is coming into play you may want to use:

Code:
+0;-0;0

If you want decimals and comma separators for thousands, extend to:

Code:
+#,##0.00;-#,##0.00;0

for example.

Richard
 

tcurrier

Board Regular
Joined
Apr 27, 2006
Messages
175
OK, thanks.... but now I have another problem ......

Cell AJ10 has +299 (format +#;-#;0)

Cell AP10 has +299 (format +#;-#;0)

For my conditional formatting, I have:

if cell AJ10 value is not equal to cell AP10 value , then color the background of AJ10 to yellow.

if cell AP10 value is not equal to cell AJ10 value, then color the background of AP10 to yellow.

Both cells are yellow, even though the values are equal....

Any ideas ? Thanks....
 

BatmanUK

Board Regular
Joined
Jul 2, 2006
Messages
185
Are they actually the same, or do they just appear the same when displayed without decimal places?

Try changing the conditional formatting formula to

=ROUND(AJ10,0)<>ROUND(AP10,0)

Hope this helps.
 

tcurrier

Board Regular
Joined
Apr 27, 2006
Messages
175
There's supposedly no decimal places in the field, but when I use your formula, it works fine now !

Thanks a million !
 

Forum statistics

Threads
1,136,272
Messages
5,674,755
Members
419,525
Latest member
helensesc

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top