+ Reply to Thread
Results 1 to 5 of 5

Look up values from cell with comma separated numbers and bring sum of scores

  1. #1
    Registered User
    Join Date
    02-15-2016
    Location
    London, UK
    MS-Off Ver
    14
    Posts
    32

    Exclamation Look up values from cell with comma separated numbers and bring sum of scores

    Hello,

    I have a column with values which are semi colon separated 1233; 2354; 4576 in another tab I have score values for each. I want to bring for each row sum of the score values.
    Excel attached.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Look up values from cell with comma separated numbers and bring sum of scores

    Try in Cell C2

    =SUMPRODUCT(COUNTIF(B2,"*"&Sheet2!$A$2:$A$5&"*"),Sheet2!$B$2:$B$5)


    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    02-15-2016
    Location
    London, UK
    MS-Off Ver
    14
    Posts
    32

    Re: Look up values from cell with comma separated numbers and bring sum of scores

    Works brilliantly!

    And If I want to return the score value for each in separate columns? So I have column C with total followed by column showing value from the first ID and column showing value from the second ID ?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Look up values from cell with comma separated numbers and bring sum of scores

    I thought there might be more than two values in Col B. If there are only two at all times use these for individual values

    =INDEX(Sheet2!$B$2:$B$5,MATCH(TRIM(LEFT(SUBSTITUTE($B2,";",REPT(" ",255)),255))*1,Sheet2!$A$2:$A$5,0))

    and

    =INDEX(Sheet2!$B$2:$B$5,MATCH(TRIM(RIGHT(SUBSTITUTE($B2,";",REPT(" ",255)),255))*1,Sheet2!$A$2:$A$5,0))

  5. #5
    Registered User
    Join Date
    02-15-2016
    Location
    London, UK
    MS-Off Ver
    14
    Posts
    32

    Re: Look up values from cell with comma separated numbers and bring sum of scores

    I have many indeed but for some I need to count sum and for some lines just the score of the first.
    It works.

    Thank you soooo much!

+ 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] AVERAGE of comma separated numbers in a single cell
    By EchoPassenger in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-25-2017, 09:42 AM
  2. Doing a look up on a cell with comma separated values
    By floragraga in forum Excel General
    Replies: 3
    Last Post: 05-10-2017, 04:35 PM
  3. Replies: 5
    Last Post: 04-19-2017, 03:18 PM
  4. [SOLVED] Loop through numbers separated by comma in a single cell
    By vpan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2017, 10:02 AM
  5. Replies: 3
    Last Post: 09-25-2014, 02:14 PM
  6. How to bring comma separated values present in a column into cells in next row?
    By Palraj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2014, 08:17 AM
  7. Counting numbers within a cell separated by comma
    By hactic in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-15-2011, 09:37 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