+ Reply to Thread
Results 1 to 5 of 5

Search string in cell, return Sum value from table

  1. #1
    Registered User
    Join Date
    09-23-2021
    Location
    GA
    MS-Off Ver
    365
    Posts
    3

    Search string in cell, return Sum value from table

    Hi, I've been trying to figure this out for hours but I can't make it work. Any help is greatly appreciated.

    I get an output in a cell with multiple values separated by a "+" plus sign. I want to lookup the the strings against a table and come up with a total value. Here is an example:

    The output that I get from an export is like Column D. I'd like to be able to look the combination of values up against Columns A and B and return a Sum. So E2 would return 4.

    Thanks! File in post below
    Attached Images Attached Images
    Last edited by BigMike62; 09-23-2021 at 03:01 PM.

  2. #2
    Registered User
    Join Date
    09-23-2021
    Location
    GA
    MS-Off Ver
    365
    Posts
    3

    Re: Search string in cell, return Sum value from table

    File with the example
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    03-17-2010
    Location
    karachi
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: Search string in cell, return Sum value from table

    try this
    =SUM(ISNUMBER(SEARCH($A$2:$A$8,D2))*($B$2:$B$8))

  4. #4
    Registered User
    Join Date
    09-23-2021
    Location
    GA
    MS-Off Ver
    365
    Posts
    3

    Re: Search string in cell, return Sum value from table

    Quote Originally Posted by sohaila View Post
    try this
    =SUM(ISNUMBER(SEARCH($A$2:$A$8,D2))*($B$2:$B$8))
    Genius, thank you!

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Search string in cell, return Sum value from table

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Search for text in string and return back known value using a Table
    By Chris McGlothen in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-28-2017, 01:05 PM
  2. Search for a String in a Cell and Return Corresponding Value
    By uberathlete in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-02-2015, 02:26 PM
  3. Search for a String in a Cell and Return Corresponding Value
    By uberathlete in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-02-2015, 01:45 PM
  4. Script to Search for a specific String then return cell values above that String-4
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2015, 01:28 AM
  5. [SOLVED] Script to Search for a specific String then return cell values above that String-3
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2015, 01:50 PM
  6. [SOLVED] Script to Search for a specific String then return cell values above that String-2
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2015, 01:00 PM
  7. [SOLVED] Script to Search for a specific String then return cell values above that String
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2015, 11:28 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