+ Reply to Thread
Results 1 to 6 of 6

Sum of a list of values if the vlookup of another column is 1

  1. #1
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Sum of a list of values if the vlookup of another column is 1

    I'm trying to find as concise a formula as possible to do this.

    It needs to get the sum of a list of values from a column in a table if the "vlookup" of the corresponding cell in another column in that same table against another table is = 1.


    in essence it is a bit like a "sum if" but it has a dynamic criteria...

    I hope that is clear.

    worksheet example attached. in this case it is the sum of A and B because only A and B are "on".


    sumif.xlsx

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,367

    Re: Sum of a list of values if the vlookup of another column is 1

    Not sure but try this....
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Sum of a list of values if the vlookup of another column is 1

    A little more background - I want to be able to use VBA to enter this formula into a cell - therefore I want it to be small enough to write in a single formula (without using helper cells).

    the second thing is that the criteria in column A and B are a list of criteria that it is acceptable to include in my sum from columns E/F. So if i repeat criteriaA, as i have at the bottom of the list, it should be included in the total that is the result i want.

    Apologies if I have not done the best job of explaining this.
    Last edited by scottiex; 07-08-2015 at 11:44 PM.

  4. #4
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Sum of a list of values if the vlookup of another column is 1

    Maybe this sheet is more clear - the result I want is the sum at the bottom.

    User selects from the list (which in the end probably has about a dozen options) which of the rows qualify to be included in that sum.

    sumif2.xlsx

    The format of the table I am trying to add the sum to is quite locked down.
    Last edited by scottiex; 07-09-2015 at 12:51 AM.

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

    Re: Sum of a list of values if the vlookup of another column is 1

    C14=SUMPRODUCT(SUMIFS(C$4:C$13,$B$4:$B$13,$J$4:$J$6)*($K$4:$K$6>0))
    Please Login or Register  to view this content.
    Try this and copy towards right
    Samba

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

  6. #6
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Sum of a list of values if the vlookup of another column is 1

    Thanks Siva, that exactly what I needed.

    Reputation added !

+ 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: 4
    Last Post: 04-26-2015, 12:18 PM
  2. Replies: 2
    Last Post: 10-25-2013, 07:01 PM
  3. Replies: 3
    Last Post: 04-24-2013, 05:33 PM
  4. Replies: 1
    Last Post: 04-24-2013, 05:21 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