+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Using Sumproduct with row to identify the row of a match?

  1. #1
    Registered User
    Join Date
    07-12-2012
    Location
    Duluth, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Using Sumproduct with row to identify the row of a match?

    Hi,

    Here is my scenario:

    I have two workbooks one called "Consumer Groups" (this is where all the data is) and the other "Consumer Support Staff".

    I would like to use the boolean aspect of Subproduct to match a multiple condition and then maybe Index and match or possibly offset and column to copy the column title where this match is taking place?

    So far this works on the "Consumer Support Staff" worksheet, I get a T returned:

    =IF(SUMPRODUCT(-('Consumer Groups'!$A$3:$A$89='Consumer
    Support Staff'!J3)*('Consumer Groups'!$B$3:$CG$89
    ="X")),"T","F")

    I would like to identify the column in the 'Consumer Groups'!$B$3:$CG$89 range where this argument is true and then copy the column title which is in row 2 to the "Consumer Support Staff" worksheet.

    Does anyone have any insights or solutions that they would care to share?

    Thanks.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Using Sumproduct with row to identify the row of a match?

    Try,

    Please Login or Register  to view this content.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    07-12-2012
    Location
    Duluth, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using Sumproduct with row to identify the row of a match?

    Thank-you Haseeb A ... that worked like a dream ... I will have to study it to get a full understanding of all of its constituent parts.

  4. #4
    Registered User
    Join Date
    07-12-2012
    Location
    Duluth, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using Sumproduct with row to identify the row of a match?

    Oops ... I was a little hasty ...the solution works if there is only one Support Staff providing Service X, but if there are more than one Support Staff then I get a 0.

    As an explanation Service X is a license to provide that particular service .... so there will be sometimes 5 Support Staff who all have that particular License with that particular Consumer.

    My apologies for the oversight, I should have made that clear in the original posting.

    Is there a way to still use this function to get the list of Support Staff with license X for this particular Consumer?

    Thanks again.

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Using Sumproduct with row to identify the row of a match?

    OK, assuming 'Consumer Groups'!A$3:A$89 have no duplicate values. across column may have multiple 'X' entered.

    Try this Array Formula in B2, with CTRL+SHIFT+ENTER

    Please Login or Register  to view this content.
    Then copy B2, paste down as needed.

    If this not works, please attach a sample file to reflect your data layout.

  6. #6
    Registered User
    Join Date
    07-12-2012
    Location
    Duluth, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using Sumproduct with row to identify the row of a match?

    Thanks Haseeb A .... I have decided to use vba to solve this problem ... thanks again for your stella work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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