Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change negative sign to trail amount

Status
Not open for further replies.

JazzyLee

Programmer
Jan 24, 2002
47
US
I have tried every trick I can come up with to change negative amounts on my spreadsheet to place the sign at the end of a number instead of at the beginning. Is there a way to do this using VB codes? I am working with Excel 2000. I was able to go from: -555.66 to 555.55)

Don't know why I am getting a parenthesis at the end of my number and I can't figure out what I am doing wrong. HELP!!!!
 
Hi,

You could try something based on:
If Selection.Value < 0 Then Selection.Value = Abs(Selection.Value) & "-"
Note: Doing this converts the value to text.

If you merely want to represent -ve values with the '-' after the value, try a custom number format like:
#,##0.00;[Red]#,##0.00-
with/without the '[Red]'.

Cheers
 
Thanks Macropod! Your second option worked wonderfully.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top