+ Reply to Thread
Results 1 to 7 of 7

help with formula that excludes two columns in formula

  1. #1
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    Posts
    142

    help with formula that excludes two columns in formula

    I trade the futures market and I decided to add two columns to my xls sheet where I contribute and draw funds.

    The "U" column keeps track of the "monthly" profits but with adding these columns ("R" and "S") its adding/subtracting to/from my monthly profits (column "U").

    I need help in eliminating columns R and S from column U.

    Thanks.

    Bruce
    Attached Files Attached Files
    Last edited by AliGW; 06-29-2018 at 12:14 PM. Reason: Irrelevant section of thread title removed.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: help with formula that excludes two columns in formula

    Hello InvGrp2,

    I don't see a problem, as long as you enter any amounts in Column S as negative. If this is not what you want, could you show us what your desired outcome in Column U should be?

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,498

    Re: help with formula that excludes two columns in formula

    you have this in T7 =IF(J7>0,Q7+P7+R7+S7+T6,T6) And T7 is used in U7 so
    if you don't want R and S in U then wouldn't you simply change it to this in T7? =IF(J7>0,Q7+P7+T6,T6)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    Posts
    142

    Re: help with formula that excludes two columns in formula

    I need columns R and S in column T as they are part of my account balance.

    I just don't want R and S to be included in column U, my monthly profit balance.

    If you look at S21 ($2,500), T21 is correct but U21 should be $2,801.90 (profits less R21 and S21).

    Thanks.

    Bruce

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,498

    Re: help with formula that excludes two columns in formula

    last thought on this for now, can you just add -(R7+S7) to the end of the formula in U7?
    like this...
    =IF($J7>0,$T7-LOOKUP(EOMONTH(DATE(YEAR($C$7),MONTH($C7),1),-1),$C$6:$C$850,$T$6:$T$850)-(R7+S7),"")
    seems to work to remove the influence of S21 when dragged down.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: help with formula that excludes two columns in formula

    If I understand it correctly:
    With specific date, i.e, 1/26/2018 in row 10, you would like to:
    Step 1) Take current Ending Balance ($10,565.15) , subtract to beginning balance of month (ending balance of previous month Dec of previous year, equals $10,000)
    Step 2) Then subtract to running column R & S of the month (jan)

    If I was correct, my solution is:
    Step 1)
    T10-LOOKUP(C10-DAY(C10),$C$6:$C$21,$T$6:$T$21)
    in which, C10-DAY(C10) returns last day of previous month
    Step 2)
    SUMPRODUCT(($C$6:C10-DAY($C$6:C10)=C10-DAY(C10))*$R$6:S10)
    to sunning sum R+S column under month condition

    Then, Step 1 -step 2:
    In S10

    Please Login or Register  to view this content.
    Copy up and down wards
    Attached Files Attached Files
    Quang PT

  7. #7
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    Posts
    142

    Re: help with formula that excludes two columns in formula

    The formula provided by "bebo" worked great.

    =T10-LOOKUP(C10-DAY(C10),$C$6:$C$21,$T$6:$T$21)-SUMPRODUCT(($C$6:C10-DAY($C$6:C10)=C10-DAY(C10))*$R$6:S10)

    The only modification I made to it was to extend the last row ($C$21 to $C$200 and $T$21 to $T$200).

    Thanks again and this forum has been very helpful to me.
    Last edited by InvGrp2; 06-30-2018 at 02:03 AM.

+ 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. [SOLVED] SUMIFS formula that excludes certain criteria
    By Murphy15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-13-2018, 03:53 PM
  2. Formula to compare two columns and spit back data from third.
    By brendine in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-06-2015, 07:32 PM
  3. Ranking Formula that Excludes Values
    By intercon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2014, 06:11 PM
  4. MIN formula that excludes 0
    By albatross32 in forum Excel General
    Replies: 6
    Last Post: 08-14-2011, 09:38 AM
  5. Back-Dating to get an earlier date which excludes Holidays and Week-Offs
    By e4excel in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-06-2009, 11:27 AM
  6. Minimum formula the excludes zeros
    By Joco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2006, 03:55 AM
  7. Sum Formula that excludes other sum formula in range
    By Andy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2006, 04:30 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