+ Reply to Thread
Results 1 to 3 of 3

Lookup a value that occurs more than once in a column

  1. #1
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Question Lookup a value that occurs more than once in a column

    LookupHelp.xlsx

    Hi,

    Please see attached file to help explain my question.

    I want to lookup a value in a table (on a seperate sheet) but search for all occurences of the lookup value and return the sum of this.
    So for example if I lookup Eggs in the table the formula will find this once and return 5, if I lookup Bread it will find this twice and return 7 (1 and 6 added together).

    If someone can explain to me how to do this step by step it would be appriciated, I'd rather learn how it works than just get someone do the work for me.

    PS. this needs to work in 2007 if the formulas are version dependent.

    Thanks,
    Harribone

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Lookup a value that occurs more than once in a column

    hi Harribone, welcome to the forum. try this in C4, copied down:
    =SUMIF('Lookup Data'!$B$5:$B$10,B4,'Lookup Data'!$C$5:$C$10)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Lookup a value that occurs more than once in a column

    I thought it would have been complicated but thats a very straightforward formula!

    Thanks for the help benisiryo!

+ 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