Always format numbers negative

Bazman

New Member
Joined
Dec 1, 2005
Messages
2
Hello,

I have a column, that when numbers are entered I need them to always show and calculate as negative. If the user enters 35 or -35 I would get the same display and the same result.

Is this possible ?

Thankyou Bary.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Welcome to MrExcel!

Have you considered Data Validation? Using this you can force the users to enter negative numbers. From the main menu, select Data|Validation and then select "Decimal" or "Whole Number" (depending on your needs) in the "Allow" box. Complete the rest of the conditions and specify that the number must be less than zero.

Hope this helps.
 
Upvote 0
Thanks Barrie !

I did consider that, yes, but the users are very lazy and just want whatever they type to be a negative. I know, its only ONE extra key but aparently some of them forget to do it.

If there's no way to do this through formatting, I'll have to look at coding it.

Bary
 
Upvote 0
I would really shy away from that solution and force the users to ensure they've input negative numbers. Consistency is always better! (makes any changes, should they be required, that much easier to implement)

Having said that, you could use custom formatting for optics and then change the values to negative via a formula when performing your calculations. Formatting like:
_(* (#,##0.00);_(* (#,##0.00);_($* "-"??_);_(@_)

and then the formula would be something like:
=IF(A1<0,A1,-A1) & the rest of your formula

Hope this helps out.
 
Upvote 0

Forum statistics

Threads
1,226,222
Messages
6,189,706
Members
453,566
Latest member
ariestattle

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