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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
At file menu Format/Cells - Number -Custom
at Type :
Define
Code:
+#;-#
 
Upvote 0
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:
+
 
Upvote 0
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
 
Upvote 0
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....
 
Upvote 0
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.
 
Upvote 0
There's supposedly no decimal places in the field, but when I use your formula, it works fine now !

Thanks a million !
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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
Back
Top