+ Reply to Thread
Results 1 to 5 of 5

Sumproduct function and condition...

  1. #1
    Registered User
    Join Date
    03-06-2012
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    10

    Lightbulb Sumproduct function and condition...

    Hello guys,

    I can not pick data from Sheet2 to sheet1 through sumproduct function as you can see in attached work book.

    May be combination of index and match function could work?

    Thank you in advance for all your help!
    Attached Files Attached Files

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

    Re: Sumproduct function and condition...

    Try:

    =INDEX(Sheet2!$B$2:$I$11,MATCH($A2,Sheet2!$A$2:$A$11),MATCH(B$1,Sheet2!$B$1:$I$1))
    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.

  3. #3
    Registered User
    Join Date
    03-06-2012
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Sumproduct function and condition...

    Wow!!! I appreciate it...

    But we do have any option to use SUMPRODUCT function?

    Thanks

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

    Re: Sumproduct function and condition...

    That would be:

    =SUMPRODUCT((Sheet2!$A$2:$A$11=$A2)*(Sheet2!$B$1:$I$1=B$1),Sheet2!$B$2:$I$11)

    but is not the more efficient solution.

    or a more efficient alternative...

    =SUMIF(Sheet2!$B$1:$I$1,B$1,INDEX(Sheet2!$B$2:$I$11,MATCH($A2,Sheet2!$A$2:$A$11),0))
    Last edited by NBVC; 07-16-2012 at 03:23 PM.

  5. #5
    Registered User
    Join Date
    03-06-2012
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Sumproduct function and condition...

    It is great.

    I am learning new techniques

    Thanks a lot

+ 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