Closed Thread
Results 1 to 8 of 8

Cell Copy and Paste to another cell, opposite sign (+/-)

  1. #1
    Registered User
    Join Date
    10-26-2007
    Posts
    4

    Smile Cell Copy and Paste to another cell, opposite sign (+/-)

    Hi Group,

    Need some help on this issue.

    Need to make a formula or if anyone knows a way to do this without a formula, great!

    Problem:

    Need to take a value from one cell(x) and paste in another(y). The kicker is, anytime a value is input into cell x, I need it to take that value and reverise the positive or negitive sign.

    Example: Cell x = 32, would like cell y to = -32
    Example: Cell x = -122 would like cell y to = 122

    Any Ideas?

    Thanks

  2. #2
    Forum Contributor wmorrison49's Avatar
    Join Date
    09-25-2007
    Posts
    267
    In your destination cell, you can just put a reference to the the first cell and negate it. So if A1 = 10, then in cell A2, you can put "=-A1". Is that what you meant? Or is it more complicated than that?

  3. #3
    Registered User
    Join Date
    10-26-2007
    Posts
    4
    Ok, that would work, but what if the value in X is negitive? Would that go ahead and make it positive by canceling out the negitive sign?

  4. #4
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    try:

    Please Login or Register  to view this content.
    Corine

  5. #5
    Registered User
    Join Date
    10-26-2007
    Posts
    4
    Ok,

    I'll try it.

    What does the ABS mean?


    =IF(A1 < 0, ABS(A1), -A1)

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  7. #7
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Hi excel_man,

    ABS - Returns the absolute value of a number. The absolute value of a number is the number without its sign.

    A1 = -122, result is 122 w/o the negative sign.

    For further info needed read the excel help.


  8. #8
    Registered User
    Join Date
    10-26-2007
    Posts
    4
    Cool!

    I'll give it a try.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1