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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,216,025
Messages
6,128,348
Members
449,443
Latest member
Chrissy_M

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