+ Reply to Thread
Results 1 to 4 of 4

Thread: Sumproduct + vlookup

  1. #1
    Registered User
    Join Date
    01-15-2012
    Location
    vancouver
    MS-Off Ver
    Excel 2003
    Posts
    3

    Sumproduct + vlookup

    Hi,

    I want some one to help me with SUMPRODUCT.
    I want in the summary sheet The count should be
    Detailsheet.Status = A And Detailsheet.Work=CB And as Detailsheet.APP (X1) belong to Controlsheet.Team(Team1) the count should be as below in Summary Sheet.

    Summary Sheet
    Work Team Count
    CB Team1 1
    CB Team5 2

    Detail Sheet
    Status Work App
    A CB X1
    Y CB X2
    A MM X3
    Y MM X4
    A CB Y1
    Y CB X2
    A MM X3
    Y MM X4
    A CB Z1

    Control Sheet
    APP Team
    X1 Team1
    X2 Team2
    X3 Team3
    X4 Team4
    Y1 Team5
    Z1 Team5
    Last edited by ankurshah77; 02-02-2012 at 11:06 AM.

  2. #2
    Valued Forum Contributor tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    USA
    MS-Off Ver
    Excel 2003 - 2007
    Posts
    2,352

    Re: Sumproduct + vlookup

    ankurshah77,

    Attached is an example workbook based on the criteria you described. In the Detail sheet, I added a fourth column, 'Team', and it uses a vlookup formula to get the Team based on the App. Then, I used the Detail table to create a pivot table in the Summary sheet.
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Sumproduct + vlookup

    Try Formula in C2 of Summary sheet:

    =SUMPRODUCT((Detail!$B$2:$B$10=A2)*ISNUMBER(MATCH(Detail!$C$2:$C$10&B2, Control!$A$2:$A$7&Control!$B$2:$B$7,0)))

    copied down.

    Assuming tables in each sheet are in top left corner starting at A1.
    Attached Files Attached Files
    Last edited by NBVC; 02-01-2012 at 04:51 PM. Reason: added attachment
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  4. #4
    Registered User
    Join Date
    01-15-2012
    Location
    vancouver
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Sumproduct + vlookup

    Thanks.. Got the result

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