+ Reply to Thread
Results 1 to 6 of 6

Need a formula to equate values of two columns

  1. #1
    Forum Contributor
    Join Date
    05-01-2014
    Location
    RIX
    MS-Off Ver
    Excel 2003; 2007
    Posts
    114

    Need a formula to equate values of two columns

    Subt_Col_EX_Forum.zipHi!

    There are two columns with different values.

    Column A negative values; Column B possitive.

    The aim: to plus the values from column B with values from column A as mutch as it's possible, observing two constraints:

    1) Column A values cannot go above 0;

    2) Column B values cannot go under 0

    See the file attached.

    Thanks in advance!
    Last edited by Arty_1; 11-25-2014 at 07:42 AM.
    Regards

    Arty

  2. #2
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Need a formula to equate values of two columns

    Try this formula:

    =IF(AND(A1<0;B1>0)=TRUE;A1+B1;"ZERO VALUE")

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Need a formula to equate values of two columns

    D3=min(0,a3+b3)
    e3=max(0,a3+b3)
    try the above
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    10-03-2010
    Location
    India
    MS-Off Ver
    Excel 2007, 2010
    Posts
    10

    Re: Need a formula to equate values of two columns

    Quote Originally Posted by bmouse View Post
    Try this formula:

    =IF(AND(A1<0;B1>0)=TRUE;A1+B1;"ZERO VALUE")
    Nice formula bmouse.
    Arty_1 you can use "," in your excel if ";" doesn't worked as shown below

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-01-2014
    Location
    RIX
    MS-Off Ver
    Excel 2003; 2007
    Posts
    114

    Re: Need a formula to equate values of two columns

    Thanks nfsales! Just what I needed!

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Need a formula to equate values of two columns

    You are welcome

+ 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: 1
    Last Post: 04-06-2012, 12:24 AM
  2. How do I equate stats when negatives are involved?
    By Excelatexcel in forum Excel General
    Replies: 6
    Last Post: 09-23-2011, 10:10 PM
  3. Replies: 3
    Last Post: 03-16-2010, 01:26 PM
  4. equate Text values to numbers for addition.
    By all4excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-08-2007, 12:14 PM
  5. [SOLVED] How to equate Text Drop Down selections to numerical values
    By Four Kings in forum Excel General
    Replies: 3
    Last Post: 01-22-2006, 01:15 AM

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