+ Reply to Thread
Results 1 to 6 of 6

Vlookup; lookup cell contains multiple strings to search for

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    Coventry
    MS-Off Ver
    Excel 2010
    Posts
    24

    Vlookup; lookup cell contains multiple strings to search for

    Hi

    I am building a sheet which gives scores to customer based on their answers in an application form. This uses simple lookups to match answers to a scoring sheet and then return the relevant score. One of the questions allows multiple answers (motivations for purchase) to be selected and this is causing me difficulty.

    In the dataset, if the customer has selected multiple options they appear in one cell separated by commas. I need to be able to apply the scores to the customers with multiple selections, and if possible would like to try two ways of doing this.

    1. Find all of the answers (strings) that appear for each customer and add the relevant scores together, returning the total
    2. Return the highest individual score

    I'm not sure if this is even possible... Any help would be appreciated.

    Thanks

    J

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Vlookup; lookup cell contains multiple strings to search for

    Pretty much everything is possible.. but the possibility increases significantly if we have a spread sheet to work with!! Can you post your sheet ... or a sample of it... (MINUS any confidential information)?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    03-11-2014
    Location
    Coventry
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Vlookup; lookup cell contains multiple strings to search for

    Sorry, here's a small example.

    Example Workbook.xlsx

    You will see that on the data page scores are allocated for 'language' and 'when begin', using lookups to the other pages. The problem is with the motivation score, as customers can select multiple answers and points are awarded for individual answers (scores page).

    I hope this helps. Thanks

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Vlookup; lookup cell contains multiple strings to search for

    Mmmm. Yes it can almost certainly can be done, but... The format of the text in column F does not match the descriptors in Scores column AI (e.g. qualification-certificate in one place and qualification/certificate in the other). How is column F populated? Can you use a number of columns (rather than 1) and use data validation to ensure that the same spelling/punctuation is used?
    Last edited by Glenn Kennedy; 07-15-2014 at 05:07 AM.

  5. #5
    Registered User
    Join Date
    03-11-2014
    Location
    Coventry
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Vlookup; lookup cell contains multiple strings to search for

    Oh sorry, I had fixed this issue for the other factors but had not got to it for motivation as I was stuck immediately.

    I attach an edited version - I have changed the text on the scores sheet as all new data will come in the format shown on the data page.

    Example Workbook.xlsx

    Further to your comment, I was thinking using multiple columns would be good/simple. Customers can choose a max of 6 answers so is it possible to do something that will extract the answers that are separated by commas into different cells? I could then simply use lookups on these and add them together/find max....

    Thanks Glenn

  6. #6
    Registered User
    Join Date
    03-11-2014
    Location
    Coventry
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Vlookup; lookup cell contains multiple strings to search for

    Hi

    I've been able to find a solution, using the text to columns function and some vba to run it. Not sure if this count 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. excel formula to search Multiple strings in several columns and return strings
    By krratna123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2013, 11:20 AM
  2. Replies: 1
    Last Post: 08-13-2013, 08:32 AM
  3. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  4. Replies: 5
    Last Post: 03-29-2012, 04:12 AM
  5. Search multiple strings in a cell using the OR function?
    By accelerator in forum Excel General
    Replies: 6
    Last Post: 01-16-2010, 04:39 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