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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
Should be straightforward - how about posting the conditions you wnat to check..

Paddy
 

kskinne

Well-known Member
Joined
Feb 17, 2002
Messages
1,267
Office Version
  1. 365
Platform
  1. Windows
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
 

NCay

Board Regular
Joined
Jul 15, 2002
Messages
214
if(a1>1000,(a1*-1),"not true")
will return neg for cell if a1 is > 1000 ( insert your condition), otherwise will print "not true"
 

Forum statistics

Threads
1,181,580
Messages
5,930,720
Members
436,757
Latest member
Marijn

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
Top