+ Reply to Thread
Results 1 to 2 of 2

Help needed for Lookup Function

  1. #1
    Registered User
    Join Date
    09-23-2014
    Location
    Israel
    MS-Off Ver
    Office Professional Plus 2010
    Posts
    1

    Help needed for Lookup Function

    Hi there,

    I am rather new to that, so excuse me if I am asking simple stuff ;-)

    I have an excel sheet which contains 3 columns: A, B and C.
    A = Contains an internal Name (it's kind of unimportant for my question)
    B = Contains a number value
    C = Contains the name of a person

    Important are columns B and C.

    I have a pool of roundabout 12 different Person names that can appear in column C.

    Example:
    Column A | Column B | Column C
    Internal1 | 23 | Peter
    Internal2 | 11 | Mary
    Internal1 | 55 | Peter
    Internalx | 2 | Frank
    InternalT | 32 | Mary

    You can see that the persons can appear more than once in column C. To the left of each name I have a number value.

    My Goal: I need a formula that will go through the whole column C and lookup each name and count (SUM) the number value to the left hand side of this name.

    So, based on above example, it should look like:
    Peter | 78
    Mary | 43
    Frank | 2

    The formula found Peter's name twice in column C and found the numbers 23 and 55 and made the SUM of it, which is 78.
    The formula found Mary's name also twice in column C and found the numbers 32 and 11 and made the SUM of it, which is 43
    The formula found Frank's name only once in Column C and found the the value 2, so the result is still 2.


    This all should be residing in a different sheet of the same workbook.
    I am adding up every week a new sheet with the same kind of list, but different number values in column B.
    I want to have a separate sheet at the end of the workbook, which looks it up in the different sheets.


    However, this is less important. If I find the right formula to get the numbers out of one sheet, that is good enough to start with.

    Any idea?

    What I managed to do is finding the value in the column (field) next to a specific entry. But I am struggling with going into loop and finding further occurrences and summing them up.

    I was using this:

    LOOKUP("Mary", C1:C999, B1:B999)
    This would lookup Mary and when found, give me the value from the column to the left of it.


    Any help is greatly appreciated!

  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: Help needed for Lookup Function

    =SUMPRODUCT(($C$1:$C$999="Mary")*($B$1:$B$999))

    Repeat as needed for each name
    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!

+ 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. Lookup function help needed
    By dimthelights in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 08-22-2014, 01:22 AM
  2. [SOLVED] Lookup function, help needed
    By ChristopherH in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-04-2013, 07:40 AM
  3. Match or Lookup type function needed
    By erikasn in forum Excel General
    Replies: 19
    Last Post: 03-20-2012, 10:06 AM
  4. Lookup function needed?
    By KeiranMac in forum Excel General
    Replies: 3
    Last Post: 09-30-2009, 05:50 AM
  5. [Help Needed] Custom Lookup Function
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2005, 09:05 PM

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