Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello I'm just wondering if there is a built-in VBA function that'll invert
negative numbers so for example: -654 becomes 654. Thanks for any help thrown my way. Nate |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ABS(num)
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "NateBuckley" wrote in message ... Hello I'm just wondering if there is a built-in VBA function that'll invert negative numbers so for example: -654 becomes 654. Thanks for any help thrown my way. Nate |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ABS
"NateBuckley" wrote: Hello I'm just wondering if there is a built-in VBA function that'll invert negative numbers so for example: -654 becomes 654. Thanks for any help thrown my way. Nate |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How about the Absolute function? For example, if A1 = -654
=Abs(A1) in another cell yields 654. Hope this helps, Hutch "NateBuckley" wrote: Hello I'm just wondering if there is a built-in VBA function that'll invert negative numbers so for example: -654 becomes 654. Thanks for any help thrown my way. Nate |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
x=-x
-- Gary''s Student - gsnu200794 "NateBuckley" wrote: Hello I'm just wondering if there is a built-in VBA function that'll invert negative numbers so for example: -654 becomes 654. Thanks for any help thrown my way. Nate |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If by 'invert' you mean to negate negative numbers, use the ABS() function
then all conversions result in positive values. If you mean to swap positive for negative (or vice versa) use the suggested x = -x or X = X*(-1). Hope this helps |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing color of negative bar when using Invert if negative | Charts and Charting in Excel | |||
change the colour of the "invert if negative" option in Excel | Charts and Charting in Excel | |||
Change negative sign from end of number to the beginning of the number. | Excel Programming | |||
2003= negative number&2004= negative number How Do I Calculate gro | Excel Worksheet Functions | |||
Compare/match positve number against negative number? | Excel Programming |