+ Reply to Thread
Results 1 to 2 of 2

Using a reference list with SEARCH and LEFT, RIGHT or MID?

  1. #1
    Registered User
    Join Date
    08-12-2014
    Location
    Ottawa, Canada
    MS-Off Ver
    2010
    Posts
    1

    Using a reference list with SEARCH and LEFT, RIGHT or MID?

    Hello...

    I'm cleaning up poorly structured company information - company name, address etc... and I've been getting good results with SEARCH combined with LEFT, RIGHT or MID etc... to identify tokens and 'bring forward' only what I want to keep. I use IFERROR and the previous cell reference to ignore cases where my search isn't found. As I move through the columns, the data gets cleaner, then I put the different elements back together.

    Now I'm getting into performance issues - I have many records and with upwards of 50 or 60 reference columns and growing (each building on the results of the previous) I'm really grinding to a halt.

    Here is the formula I'm using for the example provided, with each reference token as the header of a column.

    =IFERROR(LEFT(A2,SEARCH($B$1,A2)+LEN($B$1)-1),A2)

    Is it possible to use a reference list on another sheet and maybe INDEX+MATCH?? to minimize the number of columns I'm referencing?

    excel example.png

    Thanks!!!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Using a reference list with SEARCH and LEFT, RIGHT or MID?

    You most likely can, depending on what you actually have in mind. It's usually easiest to answer questions like this if you SHOW us what you're trying to accomplish.

    Attach a sample workbook. Make sure there is enough sample data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if possible or practical. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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] Trying to search for the result in the column to the left of the reference.
    By Beach Walker in forum Excel General
    Replies: 1
    Last Post: 08-02-2014, 11:55 PM
  2. 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
  3. List Search Time & Then List Next Search Results on Next Available Line
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2009, 09:39 AM
  4. Search row from right to left for first non-zero value
    By johnnyk in forum Excel General
    Replies: 3
    Last Post: 03-08-2007, 02:19 AM
  5. Right to left search
    By Martin in forum Excel General
    Replies: 4
    Last Post: 07-31-2006, 08:58 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