Negative Numbers

sburkhar

Active Member
Joined
Oct 4, 2006
Messages
363
Can a column be formatted so that all numbers appear as negative numbers on a template? So any number I enter will be negative even if I forget to enter the minus sign?

Thank you
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hello,

You could set up DATA --> VALIDATION, CUSTOM

FORMULA = A1<0

or for a VB version, if you put this code into the relevant sheet code window

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 3 Then
    If Target.Value > 0 Then Target.Value = Target.Value * -1
End If
End Sub

Change refs as required.
 
Upvote 0
Hello,

Select the whole column, then select FORMAT --> CELLS, choose CUSTOM and enter -0.00.

This will format numbers entered as negative with two - symbols though.
 
Upvote 0
Hello,

Select the whole column, then select FORMAT --> CELLS, choose CUSTOM and enter -0.00.

This will format numbers entered as negative with two - symbols though.

So far so good. Let me work with this for a while and see if it will work with the spreadsheet.

thank you so much!
 
Upvote 0
Hello,

Select the whole column, then select FORMAT --> CELLS, choose CUSTOM and enter -0.00.

This will format numbers entered as negative with two - symbols though.

Darn! This is making them "appear" as negative numbers, but they don't function as negatives. In your defense, I did ask how to make them appear as negatives.
I need them to appear and function as negatives. It would be even better if they appeared like this (0.0000).
Can you help?
 
Upvote 0
If you actually want them converted into negatives, I'd suggest onlyadrafter's vba solution.
 
Upvote 0
If you actually want them converted into negatives, I'd suggest onlyadrafter's vba solution.
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,913
Members
448,532
Latest member
9Kimo3

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