Change value to a negative formula.

NormanD85

New Member
Joined
Apr 26, 2023
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
Is there a way to make a formula that if the result is greater than zero then it will change it to a negative number?

Screenshot_20230426_104013_Sheets.jpg

I want B3 to display J3, but if the result at J3 is greater then zero make it a negative number in B3.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Welcome to the Board!

Try this:
Excel Formula:
=IF(B3>0,-B3,B3)
or more simply:
Excel Formula:
=-ABS(B3)
 
Upvote 0
Solution
Welcome to the Board!

Try this:
Excel Formula:
=IF(B3>0,-B3,B3)
or more simply:
Excel Formula:
=-ABS(B3)
That works, Thank you. How do I get B3 to display the result from J3 if the result is less than zero?
 
Upvote 0
Figured it out, Used =IF(OR(J3>0, J3<0),-J3,+J3) and it did what I was looking for it to do.
 
Upvote 0
That works, Thank you. How do I get B3 to display the result from J3 if the result is less than zero?

Figured it out, Used =IF(OR(J3>0, J3<0),-J3,+J3) and it did what I was looking for it to do.
If that formula really does what you want, it could be simplied to just this:
Excel Formula:
=-J3

1682595049867.png
 
Upvote 0

Forum statistics

Threads
1,215,206
Messages
6,123,638
Members
449,109
Latest member
Sebas8956

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