+ Reply to Thread
Results 1 to 5 of 5

Thread: sumproduct match

  1. #1
    Forum Contributor
    Join Date
    01-17-2008
    Posts
    112

    sumproduct match

    hi,

    How can i do a match based on Column E region and H country name
    to find the number from column A and B same country name within same region?

    Pls see example.

    thanks
    Attached Files Attached Files
    Last edited by okl; 03-08-2011 at 08:47 AM.

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: sumproduct match

    If the source data (A:C) is a Pivot Table use the GETPIVOTDATA function.

    If the source data is not a Pivot Table - can you confirm that each REGION_DESC_D code is repeated for each REGION_DESC_L code as implied by the sample.

  3. #3
    Forum Contributor
    Join Date
    01-17-2008
    Posts
    112

    Re: sumproduct match

    =SUMPRODUCT(--($F$3:$F$69=B3),--($B$3:$B$69=F3),$C$3:$C$69)

    i tried above code, but the problem is the REGION_DESC_D under each REGION_DESC_L cannot not repeated.


    Pls see example file again for better understanding.
    Attached Files Attached Files
    Last edited by okl; 03-08-2011 at 08:24 AM.

  4. #4
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: sumproduct match

    Can you answer the question raised in my prior post ?

    Point being if the codes always repeat it's simply a case of:

    H3:
    =VLOOKUP($F3,OFFSET($B$3,MATCH(LOOKUP(REPT("Z",255),$E$3:$E3),$A$3:$A$22,0)-1,0,10,2),2,0)
    copied down
    or if you prefer to avoid the volatility of OFFSET

    H3:
    =VLOOKUP($F3,INDEX($B$3:$B$22,MATCH(LOOKUP(REPT("Z",255),$E$3:$E3),$A$3:$A$22,0)):$C$22,2,0)
    copied down
    If the codes don't always repeat then I'd suggest posting a further sample that accurately reflects the real file.

    Again in the above I'm assuming A:C is not a Pivot Table - though the layout would imply it could be - if it is a Pivot Table you should be using GETPIVOTDATA function.

  5. #5
    Forum Contributor
    Join Date
    01-17-2008
    Posts
    112

    Re: sumproduct match

    Hi Donkey,

    the OFFSET code is enough to solve the problem.

    Thanks!

+ 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.2.0