Show a "+" along with a Postive number

Skybluekid

Well-known Member
Joined
Apr 17, 2012
Messages
1,226
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am looking to show "+" when a positive number and a "-" for a Negative number. I hear you shout Customer number formatting! Yes, that would do the job, but I would like the "+" to stay in one place whether there is 3 digit number or 1. I have tried using the Text function, but the "+" still moves.

Any ideas would be appreciated.

Thanks in Advance
 

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.
Thank you. Would it be possible to explain how it works?
 
Upvote 0
Sure.
An asterisk in front of a character tells the custom format to repeat that character.
It repeats that character in such a way so as to together with the other characters displayed, pad it out to fit the column width.
A common use is to have the $ sign at the far left.
So in the format we are saying
+ --> Start with this character​
*<space> --> repeat the space as many times as required to fill the column after including the other characters specified.​
#,##0 --> the numeric component showing a thousands separator of comma and no decimal places​
_ --> Underscore = leave a gap the size of which fits the next character​
- --> Minus sign > preceded by the underscore - only give the character size of the gap to leave - not actually displayed.​

Let me know if I didn't explain it well.

References:
Custom Excel number format
https://www.myonlinetraininghub.com/excel-custom-number-format-guide#_Toc474757773
 
Upvote 0

Forum statistics

Threads
1,215,694
Messages
6,126,254
Members
449,305
Latest member
Dalyb2

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