I need a function called NEG.

mach3

Board Regular
Joined
Mar 24, 2002
Messages
245
i know about the ABS function, but i need a function that will make the value of a particular cell (e.g., cell A1) NEGATIVE or POSITIVE based on the condition of another cell (e.g., cell B1) regardless of whether the number in A1 is positive or negative.

sounds pretty easy, doesn't it? why isn't there a function called NEG or POS? or is there? what's the workaround? thanks.

mach3
 

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).
Should be straightforward - how about posting the conditions you wnat to check..

Paddy
 
Upvote 0
you could still use the ABS function. =-ABS(A1) will take the absolute value of a cell A1, regardless of the sign to start with, and make it negative. this could be used in the context of an if statement in cell A1, for example:

=IF(B1<=10,-ABS(B1),ABS(B1))

would this work for you?

kevin
 
Upvote 0
if(a1>1000,(a1*-1),"not true")
will return neg for cell if a1 is > 1000 ( insert your condition), otherwise will print "not true"
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,591
Members
449,089
Latest member
Motoracer88

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