+ Reply to Thread
Results 1 to 6 of 6

I'd like to find and add all the values in a table that pertain to a specific search

  1. #1
    Registered User
    Join Date
    03-05-2017
    Location
    Sacramento, CA
    MS-Off Ver
    2016
    Posts
    2

    I'd like to find and add all the values in a table that pertain to a specific search

    I'd like to find and add all the values that pertain to a specific search.

    In other words, in my large excel table of itemized receipt, I have purchased "Pencils" may different times at different prices. This is all recorded in a table.

    I'd like to write a function in excel that will automatically search each cell in the table for "Pencils," return the price of "Pencils" that's written in a different column, and add all these values up.

    This will save me a lot of time instead of needing to go through each and everyone individually!

    Please help!!

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: I'd like to find and add all the values in a table that pertain to a specific search

    you can use a SUMIF()

    =SUMIF( Range with the words in , Criteria , Range to SUM)

    ie
    if column A has various info including pencils
    and Column B has the values

    =sumif(A:A, "pencils", B:B)

    or you could add a cell with the criteria in
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: I'd like to find and add all the values in a table that pertain to a specific search

    What have you tried so far? I sounds as if =SUMIF(range,criteria,sum_range) is what you need.
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    03-05-2017
    Location
    Sacramento, CA
    MS-Off Ver
    2016
    Posts
    2

    Re: I'd like to find and add all the values in a table that pertain to a specific search

    Thank you!!!

    I tried Find, Mid, lookup, vlookup. I'm a total amateur, however, so I definitely wasn't looking in the right places.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: I'd like to find and add all the values in a table that pertain to a specific search

    you are welcome and thanks for the rep

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: I'd like to find and add all the values in a table that pertain to a specific search


+ 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. Replies: 4
    Last Post: 10-01-2015, 11:01 AM
  2. Replies: 2
    Last Post: 06-03-2015, 06:23 PM
  3. Replies: 3
    Last Post: 09-07-2014, 12:25 AM
  4. Sum IF all the values pertain to one particular year
    By jenita.kurlawala in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-25-2013, 10:34 AM
  5. Replies: 1
    Last Post: 04-19-2013, 08:30 PM
  6. Search, find and add the result in a specific location
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2011, 10:42 AM
  7. Search a table to find values in rows and columns
    By vixtran in forum Excel General
    Replies: 1
    Last Post: 08-14-2008, 01:21 AM

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