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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,213,504
Messages
6,114,016
Members
448,543
Latest member
MartinLarkin

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