+ Reply to Thread
Results 1 to 4 of 4

I need to change positive values to negatives

  1. #1
    Registered User
    Join Date
    09-18-2006
    Posts
    30

    Question I need to change positive values to negatives

    I have a worksheet containing many lines of data. Columns K, L, and N contain numerical values. What I need to happen is:

    Look at the value in column K, if it is a negative value, convert the values in column L and column N to a negative value. For instance:

    K value -1241.30
    L Value 778.00. Need to change this to -778.00.
    N Value 778.00. Need to change this to -778.00



    I could do this by adding columns and using IF/THEN statements, but I suspect that a fairly simple macro could do this better.
    I will attach a sample file
    I appreciate any assistance.
    Lance
    Attached Files Attached Files

  2. #2
    Forum Contributor starryknight64's Avatar
    Join Date
    09-27-2006
    Location
    Missouri
    MS-Off Ver
    2003 (Work) & 2007 (Home)
    Posts
    193
    I used this code on your spreadsheet and it works. If there's anything you find wrong with it, please let me know. Good luck!

    Please Login or Register  to view this content.
    starryknight64

  3. #3
    Registered User
    Join Date
    09-18-2006
    Posts
    30

    Thanks

    Seems to work for me also,
    Thanks for the help

  4. #4
    Forum Contributor starryknight64's Avatar
    Join Date
    09-27-2006
    Location
    Missouri
    MS-Off Ver
    2003 (Work) & 2007 (Home)
    Posts
    193
    No problem-o.

+ Reply to 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