+ Reply to Thread
Results 1 to 4 of 4

Look up for mutliple values in one cell

  1. #1
    Registered User
    Join Date
    06-05-2020
    Location
    United Arab Emirates
    MS-Off Ver
    MS 365 ProPlus
    Posts
    2

    Exclamation Look up for mutliple values in one cell

    Hello All,

    I hope you are all safe and well. I have clients with various codes and revenue amounts. I want to lookup the total revenue of multiple codes separated by comma in one cell. Can you please provide me with a formula to do that. Please note that separating the codes to different cells would take a lot of time and effort.

    Thanks
    Sara

  2. #2
    Registered User
    Join Date
    05-14-2020
    Location
    Mauritius
    MS-Off Ver
    Office 365
    Posts
    97

    Re: Look up for mutliple values in one cell

    Pls provide a sample workbook.
    Greetings

    Tor


  3. #3
    Registered User
    Join Date
    06-05-2020
    Location
    United Arab Emirates
    MS-Off Ver
    MS 365 ProPlus
    Posts
    2

    Re: Look up for mutliple values in one cell

    Client Job codes Vlookup total NFR
    ABC 152378, 152377 ??
    XYZ 152294, 147875 ??
    EDV 152236, 152236 ??


    accounts job code NFR
    ABC 152378 15,629.06
    ABC 152377 15,273.30
    XYZ 152294 15,000.00
    XYZ 147875 14,942.25
    EDV 152236 14,747.60
    EDV 152236 14,728.00
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Look up for mutliple values in one cell

    Hello Salkhatib and Welcome to Excel Forum.
    Here are three proposals.
    1. In my opinion the simplest solution is to sum by client, as in: =SUMIFS(Q$3:Q$8,O$3:O$8,B3)
    2. If there are no duplicate job codes then the job codes could be parsed using: =IFERROR(VALUE(TRIM(MID(SUBSTITUTE($C9,",",REPT(" ",LEN($C9))),(COLUMNS($A$1:A$1)-1)*LEN($C9)+1,LEN($C9)))),"")
    The sums could then be produced using: =SUMPRODUCT((P$3:P$8=E9:G9)*(Q$3:Q$8))
    3. If there are duplicates then after parsing the job codes duplicates may be removed using: =IFERROR(IF(MATCH(0,INDEX(COUNTIF($H15:H15,$E15:$G15),,),)>COUNT($E15:$G15),"",INDEX($E15:$G15,MATCH(0,INDEX(COUNTIF($H15:H15,$E15:$G15),,),))),"")
    The sums are then produced using a SUMPRODUCT based formula as in proposal #2.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Pulling Mutliple Values from 1 Lookup Value
    By maddockd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-21-2017, 01:13 PM
  2. [SOLVED] finding a match for mutliple combinations between two spreadsheet values
    By Philipsfn in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-30-2017, 06:18 AM
  3. Replies: 2
    Last Post: 01-08-2014, 05:48 PM
  4. need a smart lookup on mutliple values within 1 cell
    By Watney99 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-14-2013, 04:29 PM
  5. Search worksheet based on mutliple cell values on another sheet.
    By milson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2013, 12:41 AM
  6. Formula to count mutliple values
    By kmarees1986 in forum Excel General
    Replies: 4
    Last Post: 11-23-2011, 12:05 PM
  7. lookup mutliple values to return one value
    By David Pelizzari, IS Manager in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-06-2006, 09:35 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