+ Reply to Thread
Results 1 to 6 of 6

Sum Lookup Match

  1. #1
    Registered User
    Join Date
    04-08-2011
    Location
    London
    MS-Off Ver
    O 365
    Posts
    80

    Sum Lookup Match

    Please help ! Ok, I'm trying to populate a row of cells based off of a lookup (match) that is on a different sheet. The value I'm trying to match on the other sheet is in one column, and where there is a match, I want to pull in a value from that row where the match is, except in a different column. I'll try and explain. Sheet 1: For D1's value, lookup the state name in C1 and match it to column A in Sheet 2. Where there is a match in column A on sheet 2, pull in the value from that row under column B. There can be multiple matches from Sheert 2, so it will need to sum all of the instances where there is a match. I've attached a spreadsheet to better illustrate.

    Example WB.xlsx
    Last edited by dash11; 02-13-2014 at 12:07 PM. Reason: Moved Attachment out of the paragraph

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Sum Lookup Match

    =SUMIF(criteria range, criteria, sum range)

    =SUMIF('sheet 2'!$a$2:$a$12, $c2, 'sheet 2'!$b$2:$b$12)

    Also possible with SUMPRODUCT((criteriarange=criteria)*(sum range))

    =SUMPRODUCT(('Sheet 2'!$A$2:$A$12=$C2)*('Sheet 2'!$B$2:$B$12))
    Last edited by daffodil11; 02-13-2014 at 12:12 PM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    04-08-2011
    Location
    London
    MS-Off Ver
    O 365
    Posts
    80

    Re: Sum Lookup Match

    I'm getting a #VALUE! error with that. Additionally, is there a way to add in a lookup for the column B range in Sheet 2. For example, what if that column (Sheet2 B2:B12) varied in where it was in that sheet from month to month. Is there a lookup that would find the column name, wherever it was in the sheet, and then go to that one for the values matching the lookup match's in column A of sheet 2?

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Sum Lookup Match

    Yes, SUMPRODUCT and SUMIFS can do that as well.

    I'm not sure what you could be doing wrong. Please examine the attachment to see what you are missing.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-08-2011
    Location
    London
    MS-Off Ver
    O 365
    Posts
    80

    Re: Sum Lookup Match

    You're the KING!

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Sum Lookup Match

    Awesome, glad I could help out.

    If the problem is solved, please go up to Thread Tools as the top and Mark Thread as Solved, so other people can reference this post in the future.

    And if you think I'm awesome, you can also click the star under my name. Then other people will think I'm awesome too.

+ 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. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  2. Match/Index/Lookup - Searching From Bottom to Top (A reverse lookup maybe)
    By Neutralizer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2013, 03:55 AM
  3. Replies: 7
    Last Post: 06-19-2011, 12:51 PM
  4. Replies: 5
    Last Post: 02-24-2011, 11:26 AM
  5. Lookup? Match? pulling rows from one spreadsheet to match a text f
    By cjax in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-21-2006, 09:51 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