+ Reply to Thread
Results 1 to 5 of 5

aligning two columns - only first part of data is matching

  1. #1
    Registered User
    Join Date
    07-29-2013
    Location
    Bern, Switzerkabd
    MS-Off Ver
    Excel 2003
    Posts
    3

    aligning two columns - only first part of data is matching

    Hi

    I have a column (data 2) of data which I have to align to another column (data 1). Data 1 has several columns. The problem is, that the data 2 is longer than data 1, e.g only the first 4 letters/numbers are matching. Data 2 has to be matched with second column of data 1.

    How can I align those?

    Data 1 Data 1 Data 2
    13-r1002 jp-1 tm-2-ABC
    13-r1003 tm-2
    qr-3-FAF
    13-r900 jp-1-BAB

    Thank you!

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: aligning two columns - only first part of data is matching

    Are you trying to get the 13-r1002 to appear next to the tm-2-ABC?

    Attachment 253888
    Last edited by daffodil11; 07-29-2013 at 03:58 PM.

  3. #3
    Registered User
    Join Date
    07-29-2013
    Location
    Bern, Switzerkabd
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: aligning two columns - only first part of data is matching

    No,
    jp-1-BAB should appear next to jp-1
    tm-2-ABC should appear next to tm-2

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: aligning two columns - only first part of data is matching

    I tried, but so far am unable to accomplish this without a helper column.

    Assuming Data2 start in E2, put =Left(E2) in Column F and paste it down.

    Then,

    =INDEX(E2:E500, MATCH(B2, F2:F500, 0)

    daffodil example for krakari.xlsx

  5. #5
    Registered User
    Join Date
    07-29-2013
    Location
    Bern, Switzerkabd
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: aligning two columns - only first part of data is matching

    works. Thank you!!

+ 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] Matching numbers in multiple columns and aligning them in the same rows
    By DANNY DUNPHY in forum Excel - New Users/Basics
    Replies: 15
    Last Post: 10-08-2012, 07:34 PM
  2. Replies: 4
    Last Post: 08-20-2010, 02:34 PM
  3. Replies: 23
    Last Post: 08-12-2010, 04:42 PM
  4. [SOLVED] Matching and aligning columns
    By amerkarim in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-24-2005, 03:05 PM
  5. [SOLVED] Matching and aligning columns
    By amerkarim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2005, 12:05 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