+ Reply to Thread
Results 1 to 2 of 2

Count formula that will look for multiple words and multiply their lookup

  1. #1
    Registered User
    Join Date
    10-30-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2013
    Posts
    1

    Question Count formula that will look for multiple words and multiply their lookup

    Hello,

    I am looking for a formula that will look at a range of cells (on a summary page) and count 1 each time it finds an instance of any word from a list of words in a table (on a data page), then multiply the sum of the multiple instances by their lookup value in the table. The range of cells in the summary page are an unsorted list with blank cells within the range (have typed in null in the blanks).

    Here is the formula I've used, but it has some problems: =sumproduct(lookup(col_1,table,dep_1)

    Based on the example below, this returns 13, and would seem to work. However, lookup is not reliable with an unsorted list and if I change the last word in column F from cat to riz, it adds 3 to the 13 (assuming it's grabbing the last value in the lookup). Am I using the right functions? Is there a better, more reliable, solution? Please help before my brain explodes.

    Example:

    Table A3:B7 = defined name as table
    Column A
    cat
    dog
    null
    dog and cat
    pig

    Column B = defined name as dept_1
    1
    2
    0
    0
    3

    Column F = defined name as col_1
    dog
    cat
    cat
    dog
    null
    cat
    dog
    pig
    cat

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

    Re: Count formula that will look for multiple words and multiply their lookup

    welcome to the forum, excelrizzo. try:
    =SUMPRODUCT(SUMIF(table,col_1,dept_1))

    would be better next time if you upload an Excel file in the thread & show your desired results. To do that, Click on GO ADVANCED and use the paperclip icon to open the upload window.
    View Pic
    and to illustrate your example better, click on How To Get Quick & Good Answers

    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

+ 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. [SOLVED] find and count words in multiple columns
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-06-2012, 07:02 PM
  2. Count words in multiple cells
    By davidazevedo in forum Excel General
    Replies: 2
    Last Post: 04-10-2011, 09:37 PM
  3. Multiple Criteria, Lookup & Count formula.
    By JapanDave in forum Excel General
    Replies: 3
    Last Post: 11-08-2010, 03:01 AM
  4. Count IF with multiple words
    By lara5555 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-03-2007, 11:14 AM
  5. Formula to lookup Multiple Column Text and then Count Result
    By ShelbyMan in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 09-06-2005, 07: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