+ Reply to Thread
Results 1 to 4 of 4

lookup values in table, return sum of values from first column

  1. #1
    Registered User
    Join Date
    05-08-2010
    Location
    Antwerp, Belgium
    MS-Off Ver
    Excel 2003
    Posts
    2

    lookup values in table, return sum of values from first column

    Hello,

    I'm trying to solve this for days, with no succes.
    I've attached a jpeg for making my question more clear.

    In the first column (column A6:A11) I have 7 values.
    In the table B6:I11there are random numbers.

    If I fill in a number in cell B16.
    I would like to find a formula (in cell B17) that is looking up that number in the table.
    If it finds the exact number, it gives the value in the same row in column A.
    If it finds the number more times, all the corresponding values in column A must add up.

    I hope someone can help me with this one.


    greetz,

    Owen
    Attached Images Attached Images
    Last edited by owenkam; 05-10-2010 at 05:24 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: lookup values in table, return sum of values from first column

    Try

    =SUM(IF(B6:I11=B16,A6:A11))

    entered as an array formula (ie use Control - Shift - Enter)

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: lookup values in table, return sum of values from first column

    whu not attach a xl workbook not an image!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    05-08-2010
    Location
    Antwerp, Belgium
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: lookup values in table, return sum of values from first column

    Thank you Huron,

    The formula works fine!

+ 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.6.0 RC 1