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 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
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,215,019
Messages
6,122,707
Members
449,093
Latest member
Mnur

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