+ Reply to Thread
Results 1 to 5 of 5

Use array to get the total sum meeting some criteria?

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Use array to get the total sum meeting some criteria?

    Just got a small question

    I want to use an array plus some match-up to get the total sum (in column) for cases in column A that also exist in column C. In this example, DEF and XYZ exist in column C. So the total sum is 2+3=5.

    image001.png

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Use array to get the total sum meeting some criteria?

    In D1 enter:

    =IF(COUNTIF($C$1:$C$1000,A1)>0,B1,"") and copy down and then use:

    =SUM(D:D)
    Gary's Student

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: Use array to get the total sum meeting some criteria?

    Thanks for the formula. Can we have one single formula in a cell to get the result?

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Use array to get the total sum meeting some criteria?

    Use this array formula:

    Please Login or Register  to view this content.
    Confirm as an array with Ctrl-Shift-Enter.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  5. #5
    Forum Contributor
    Join Date
    06-18-2012
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    347

    Re: Use array to get the total sum meeting some criteria?

    Thanks, ConneXionLost. This is really nice

+ 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