Convert Negative Value to Positive

RRico

Board Regular
Joined
Nov 3, 2004
Messages
98
I have the number -50 in cell: H21, which is the its formula which reads as below:

=SUM(H20-H19)

My wonder is how / if I can automatically always convert whatever is in that cell to a positive number vs. a negative?

Thanks,
Rick
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Maybe:
=ABS(SUM(H20-H19)) '//Absolute Value
 
Upvote 0
He was just explaining what ABS meant. Delete everything after the closing parenthesis and you should be OK (although you don't really need SUM...
Code:
=ABS(H20-H19)
will do exactly the same thing.
Hope this helps,
Cindy
 
Upvote 0
Thanks Cindy - yeah, my geek credentials are growing... It's only the bold part that's relevant. The rest is a mishmash of visual basic and java comment syntax...
 
Upvote 0

Forum statistics

Threads
1,214,518
Messages
6,119,996
Members
448,935
Latest member
ijat

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