+ Reply to Thread
Results 1 to 3 of 3

Formatting Legacy Data - VLOOKUP?

  1. #1
    Registered User
    Join Date
    05-20-2016
    Location
    Florida, US
    MS-Off Ver
    2010
    Posts
    2

    Formatting Legacy Data - VLOOKUP?

    Hi I am importing Legacy data into an Excel Spreadsheet -

    I have imported Date-of-Birth but this field is in different columns for different people - the field can be found anywhere from Column C to Column Y -

    Imported example "BIRTH: 04/01/2000"

    I want to find "BIRTH:" in a cell then copy the entire contents "BIRTH: 04/01/2000" to another cell -

    I have used VLOOKUP but never for searching text and I cannot get my syntax correct -

    As a side note - I have at least 10 different fields I need this code for but possibly 20 - I'm importing from a PDF and was able to configure as a CSV but the fields are everywhere b/c the records have different info -

    This data will then be imported into another database for end-user searching so I need the fields in an already pre-determined order -

    Greatly appreciate any help - Thanks!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formatting Legacy Data - VLOOKUP?

    Hi, welcome to the forum

    This is a very simplistic approach, but it works. I make it so that it will pull in teh 1st match it finds tor any date...
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    2
    BIRTH: 04/01/2000 BIRTH: 04/01/2000
    3
    BIRTH: 04/01/2000 BIRTH: 04/01/2000
    4
    BIRTH: 04/01/2000 BIRTH: 04/01/2000
    5
    BIRTH: 04/01/2000 BIRTH: 04/01/2000
    6
    BIRTH: 04/01/2000 BIRTH: 04/01/2000
    7
    BIRTH: 04/01/2000 BIRTH: 04/01/2000
    8
    BIRTH: 04/01/2000 BIRTH: 04/01/2000
    9
    BIRTH: 04/01/2000 BIRTH: 04/01/2000
    10
    BIRTH: 04/01/2000 BIRTH: 04/01/2000
    11
    BIRTH: 04/01/2000
    12
    BIRTH: 04/01/2000
    13
    BIRTH: 04/01/2000

    B2=INDEX(C2:Y2,MATCH("BIRTH: *",C2:Y2,0))
    copied down
    You could put that anywhere, really
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-20-2016
    Location
    Florida, US
    MS-Off Ver
    2010
    Posts
    2

    Re: Formatting Legacy Data - VLOOKUP?

    Just one question - did you have to make this look so simple? ;

    Thanks this is EXCELLENT! -

    This will be invaluable as I have 4 or 5 separate files [1 file = 1 year] to convert for a company w/500+ employees - Thanks again

+ 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. vlookup returning data, but doesn't keep formatting
    By cmdonahue in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2015, 02:43 PM
  2. Legacy Text form field Tabbing issue
    By wmurugan in forum Word Formatting & General
    Replies: 7
    Last Post: 08-29-2012, 03:35 AM
  3. [SOLVED] Legacy Function Macros in Excel 2007
    By Mudbone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2012, 11:21 AM
  4. Forms: Legacy tools - text box
    By Sibrulotte in forum Word Formatting & General
    Replies: 1
    Last Post: 09-30-2011, 06:24 AM
  5. Problem with VLOOKUP() function and data formatting
    By Joe11 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-26-2009, 08:41 PM
  6. Legacy Add-In Functionality Lost
    By dminn in forum Excel General
    Replies: 0
    Last Post: 03-28-2007, 11:43 AM
  7. Closing a external legacy program using VBA
    By Byron in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-09-2005, 12:05 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