+ Reply to Thread
Results 1 to 4 of 4

Array Lookup, Return/Sum Multiple Values

  1. #1
    Registered User
    Join Date
    01-18-2010
    Location
    Walnut Creek, CA
    MS-Off Ver
    Excel 2000
    Posts
    2

    Array Lookup, Return/Sum Multiple Values

    Here's what I'm trying to accomplish... it seems so simple but pulling my hair out. In the attached sheet, I want to look up values from table (A1:G5) and then for each occurrence of a particular number, return the value in the same row in column H, and sum when there are multiple values (see green shaded area for desired output. For example, the number 8 occurs in E3, E4, and G5. I want to return the sum of the corresponding values in column H (1,5, and 2). I've spent hours trying to work this one out, I'm sure this is probably an array formula, but I can't manage to make it work. A little professional help would be appreciated!
    Attached Files Attached Files
    Last edited by mre2000; 01-18-2010 at 10:57 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Array Lookup, Return/Sum Multiple Values

    Hi,

    you could try in L2 and copy down

    =SUMPRODUCT(($B$2:$G$5=K2)*$H$2:$H$5)

  3. #3
    Registered User
    Join Date
    01-18-2010
    Location
    Walnut Creek, CA
    MS-Off Ver
    Excel 2000
    Posts
    2

    Re: Array Lookup, Return/Sum Multiple Values

    Bingo... thats it, I was close twice... still couldn't get there, THANK YOU!

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Array Lookup, Return/Sum Multiple Values

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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