+ Reply to Thread
Results 1 to 3 of 3

Multiple row Vlookup??

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    England
    MS-Off Ver
    Excel 2010 and Excel 2013
    Posts
    1

    Multiple row Vlookup??

    I have 2 tables, the first holds points transactions for users and the second should hold a sum of points for each unique user.

    There can be multiple points rows for a unique user in the first table.

    I want to lookup the username stored in the second table, against the username in the first table to sum all points assigned to that user.

    However, I only want to sum the points where Paid = Yes

    It's out of my depth but I need it. Examples of the tables are below.

    Thank you!!


    USERNAME POINTS PAID
    deborah 100 yes
    michael 100 yes
    michael 200 yes
    simon 100 yes
    deborah 100 no
    michael 500 no



    USERNAME POINTS
    deborah
    michael
    simon

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Multiple row Vlookup??

    Try this...


    Data Range
    A
    B
    C
    1
    USERNAME
    POINTS
    PAID
    2
    deborah
    100
    yes
    3
    michael
    100
    yes
    4
    michael
    200
    yes
    5
    simon
    100
    yes
    6
    deborah
    100
    no
    7
    michael
    500
    no
    8
    9
    10
    11
    USERNAME
    POINTS
    12
    deborah
    100
    13
    michael
    300
    14
    simon
    100


    This formula entered in B12 and copied down:

    =SUMIFS(B$2:B$7,A$2:A$7,A12,C$2:C$7,"Yes")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Multiple row Vlookup??

    Or you can also use this

    Enter in F2 and drag it down

    =SUMPRODUCT(($A$2:$A$7=E2)*($C$2:$C$7="yes")*($B$2:$B$7))


    A
    B
    C
    D
    E
    F
    1
    USERNAME POINTS PAID Name Points
    2
    deborah
    100
    yes deborah
    100
    3
    michael
    100
    yes michael
    300
    4
    michael
    200
    yes simon
    100
    5
    simon
    100
    yes
    6
    deborah
    100
    no
    7
    michael
    500
    no
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Vlookup (or index/match) with multiple criteria over multiple sheets
    By Groovicles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2013, 01:56 PM
  2. Replies: 3
    Last Post: 07-25-2013, 08:25 AM
  3. Index, Match, and Vlookup across multiple worksheets using multiple entries
    By sajanpatel15 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-23-2013, 08:33 PM
  4. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  5. Multiple Row Match (VLOOKUP Extended) to find Multiple Rows
    By Niper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2011, 10:58 AM

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