+ Reply to Thread
Results 1 to 7 of 7

Lookup function - How to select 2 or more results?

  1. #1
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Lookup function - How to select 2 or more results?

    Hi,

    I've had some help from some guru's on here in the past few days But I still have a couple of more issues I'm working through in this database download.

    I have attached an example of what I am trying to do. The first column is listing invoices, and sometimes I have a "Line Feed" in the one cell, this can be sorted by using the formula I have in the 2nd column =SUBSTITUTE(A2,CHAR(10),""), however this causes an issue in the 3rd column in which I am trying to extract the Vehicle franchises of Mitsubishi, Kia, Ford, etc using a SEARCH formula from a list as the Line Feed is still in the text. Is there a way I can incorporate the Line Feed into the Search formula?

    Also, on a side note, if there are multiple franchises (ie. Mitsubishi & Kia) as per the first line, how do I get the search to display both of them, and not just the first one?

    Cheers for the help

    Fletch
    Attached Files Attached Files
    Last edited by Fletch74; 11-25-2013 at 08:25 PM.

  2. #2
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Download of data from database causing havoc!!

    Can anyone help??

    I've managed to fix the Line Feed issue with the REPLACE formula identifying the character and replacing it, but I still don't know how to extract multiple frnachises for my list of franchisies, unless I include all the combinations in my list I am looking up, which I don't want to do.

    Thanks,

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Download of data from database causing havoc!!

    and where is the lookup table? in your workbook just table for retrieve data?

    Azumi

  4. #4
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Lookup function - How to select 2 or more results?

    It's in another worksheet. This is a sample for this site.

    Below is the table;

    Kia
    Ford
    Suzuki
    Holden
    Hyundai
    Mitsubishi
    Honda
    Mercedes
    Land Rover
    Jaguar
    Toyota
    Subaru
    Nissan

    The problem is when there is more than one of those in a cell, how do I show all the franchises that are listed from that cel, rather than just the first.

    Thanks,

  5. #5
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Lookup function - How to select 2 or more results?

    I have updated the spreadsheet to include the table.

    Any help would be much appreciated.
    Attached Files Attached Files

  6. #6
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Lookup function - How to select 2 or more results?

    =MID(B2,FIND(":",B2,1),FIND(":",B2,1))

    Azumi

  7. #7
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Lookup function - How to select 2 or more results?

    Cheers Azumi.

    I'll add it into the other Formula in Column C, and create an IF formula.

+ 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. Problems uploading CSV to mySQL database
    By andrew_long15 in forum Excel General
    Replies: 0
    Last Post: 05-17-2013, 01:02 AM
  2. Office 2010 is causing havoc with Macros..help!
    By cheddarthief in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-10-2011, 06:08 PM
  3. Pasting into pivot database causing duplication
    By NMullis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-11-2007, 05:50 PM
  4. External database causing problems?
    By Michael Malinsky in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-04-2006, 02:40 PM
  5. Accessing external database causing problems?
    By Michael Malinsky in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2005, 05: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