+ Reply to Thread
Results 1 to 3 of 3

Auto Assign Neg# To Corresponding Cell When Neg# Is Found In Column

  1. #1
    Registered User
    Join Date
    03-09-2009
    Location
    Rochester, NY, USA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Auto Assign Neg# To Corresponding Cell When Neg# Is Found In Column

    Does anyone know a macro (or function) that will look for a negative number in one column and append a negative sign to a corresponding column?

    For instance, my spreadsheet looks like:

    Company | Cust# | SaleDate | Frequency | SaleAmt
    1 100 2/6/2008 1 108.6
    1 100 3/6/2008 1 142
    1 100 3/7/2008 1 -142
    1 100 3/9/2008 1 200

    When a negative number is discovered in column E4, a negative will be assigned to the corresponding number in cell D4.

    Thanks,

    Jesse

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Auto Assign Neg# To Corresponding Cell When Neg# Is Found In Column

    A non-macro way to do it is to use a temporary helper column, say column F....

    =if(E2<0,-D2,D2) copied down

    Then select column F and copy it, go to D1 and go to Edit|Paste Special and select Values.. Click Ok.

    Now you can delete the temporary F column...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-09-2009
    Location
    Rochester, NY, USA
    MS-Off Ver
    Excel 2007
    Posts
    25

    [SOLVED] Auto Assign Neg# To Corresponding Cell When Neg# Is Found In Column

    That did the trick. Thanks a lot!

+ 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