+ Reply to Thread
Results 1 to 2 of 2

Most Efficient Way to Resort Strings

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    4

    Most Efficient Way to Resort Strings

    Hello all, Excel newb here.

    My task is to sync some date between two massive spreadsheets via VLOOKUP.
    Spreadsheet one is contact info, Spreadsheet two is contact info plus ID numbers.
    Some people from spreadsheet one correspond to spreadsheet two. The plan is to use VLOOKUP to immediately link the corresponding parties with their ID numbers.

    The problem is, to use VLOOKUP, the data needs to match exactly. My names from spreadsheet one do not include middle names, and some of the names from spreadsheet two do.

    So, on spreadsheet two, I used text column split to separate the names into columns, and concatenate to rearrange them, absent the middle name in a third column. I am then going to use the third column for VLOOKUP.
    However, if the name already does not have a middle name, my concatenate result just gives me the first name, because the function gives a blank result.

    This is easily solvable, I created a second concatenate formula that simply transfers the name to the third column.

    However, to go through the entire 25k entry sheet to copy in the second formula when applicable would take a couple of hours.

    If was wondering if anyone knew of perhaps a "smarter" Excel function, or perhaps a script that could apply the appropriate function where it is needed? Like, some kind of "If x, use formula one, if y, use formula two" sort of thing.

    Thanks.

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Most Efficient Way to Resort Strings

    Please Login or Register  to view this content.
    Nest the two different concatenation formulas inside some IFs to get what you want.

+ 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. Resort Chart
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2014, 09:23 AM
  2. Help with making code more efficient and identifying strings by using a part of it
    By sanpedro_nz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2011, 07:49 AM
  3. most efficient way to check cell data against 3 known strings
    By scudder12 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-10-2010, 06:01 AM
  4. help! last resort
    By khalid79m in forum Excel General
    Replies: 1
    Last Post: 12-21-2006, 08:05 PM
  5. How do I resort names
    By dsrtdrms in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2006, 01:45 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