+ Reply to Thread
Results 1 to 5 of 5

Reverse Sum formula in a cell with a Macro to make column consistent...

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Reverse Sum formula in a cell with a Macro to make column consistent...

    Hi,

    Trying to put together a macro that would look at column C and based on the way that it is being summed up (A-B vs B-A) use the value to make a column consistent. Please see the attached workbook.

    please advise... Ty

    Reverse Sum formula Macro.xlsm

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Reverse Sum formula in a cell with a Macro to make column consistent...

    Hi,

    Not sure what you mean by consistent. If you mean you want all column D values to have the same positive sign then use

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    03-14-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    491

    Re: Reverse Sum formula in a cell with a Macro to make column consistent...

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Not sure what you mean by consistent. If you mean you want all column D values to have the same positive sign then use

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For example....
    if you take 5 - 3 you'll get 2
    if you take 3 - 5 you'll get -2
    So what I want to do is compare 2 & -2 , RECOGNIZE that they are opposite and flip the formula in the right direction...

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Reverse Sum formula in a cell with a Macro to make column consistent...

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Reverse Sum formula in a cell with a Macro to make column consistent...

    Quote Originally Posted by swade730 View Post
    For example....
    if you take 5 - 3 you'll get 2
    if you take 3 - 5 you'll get -2
    So what I want to do is compare 2 & -2 , RECOGNIZE that they are opposite and flip the formula in the right direction...
    Hi,
    What do YOU mean by 'flip the formula in the right direction'.

    If you tell us the values of the results you expect in the various cells we'll have a better idea.
    As I say if you want them all the same sign, i.e. all positive then use the ABS() function I gave you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 25
    Last Post: 05-12-2014, 09:40 AM
  2. Replies: 2
    Last Post: 07-11-2012, 09:33 AM
  3. Replies: 1
    Last Post: 10-27-2011, 03:32 AM
  4. Replies: 2
    Last Post: 10-29-2009, 11:51 AM
  5. Excel formula to make AAA-BBB equal to/consistent with BBB-AAA
    By AliceJDavidson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2005, 05:06 PM

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