+ Reply to Thread
Results 1 to 2 of 2

Using a set of data as 'criteria' in a sumif

Hybrid View

  1. #1
    Registered User
    Join Date
    11-12-2009
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    1

    Arrow Using a set of data as 'criteria' in a sumif

    Hi,

    I'm trying to figure out how to use a set of data as criteria in a sumif formula.

    Say I have 2 worksheets, Sheet1 and Sheet2.

    Sheet1 has the range I want to sum (A:A) and sumrange (E:E)

    Sheet 2 has large number of unique IDs (which would correspond to the range in Sheet1). I thought I would be able to do a sumif(A:A,[Sheet2]A1:Z24,E:E) and it would sum any of the numbers in my range that appear in [Sheet2]A1:Z24, but I'm getting a 0.

    I also tried using an array {=SUM((A1:A1000=[Sheet2]A1:Z24)*(E1:E1000))} and I'm getting N/A for that.

    Any ideas on how to make this work? I'm not familiar at all with VB and would need to do it strictly through formula.

    Thanks in advance for the help

    -Justin

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using a set of data as 'criteria' in a sumif

    Maybe?:

    =SUMPRODUCT(--ISNUMBER(MATCH(A1:A1000,'Sheet2'!A1:Z24,0)),E1:E1000)
    Last edited by NBVC; 11-12-2009 at 05:59 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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