+ Reply to Thread
Results 1 to 8 of 8

Align data in different columns

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Align data in different columns

    Hi there, I'm a bit stumped here

    I have 2 columns of different lengths in both of which some cells contain the same names.

    i need to align the names in column B to those that match in column A

    Sample attached.

    align data sample.xls

    Many thanks.

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Align data in different columns

    try this in D1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Registered User
    Join Date
    07-04-2012
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Align data in different columns

    Hi there Tom1977

    Thats not how i intended to solve my problem, but it does the job in a different and maybe better way so thank you.

    ---------- Post added at 07:11 AM ---------- Previous post was at 06:23 AM ----------

    Actually in a large column of data i'm getting strange anomalies with that formula, some repeating results and errors.

  4. #4
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Align data in different columns

    Without sample is hard to say

  5. #5
    Registered User
    Join Date
    07-04-2012
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Align data in different columns

    Attachment 169098

    The cells marked in green (D43,44 and 45) have copied a wrong (and duplicated) cell rather than the cell assigned to the relevant name.

  6. #6
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Align data in different columns

    Sorry my fault it shoul be:
    INDEX($A$1:$A$25,MATCH(C1,$B$1:$B$25,0),1)

    and delete attachment I think You have there real personal data

  7. #7
    Registered User
    Join Date
    07-04-2012
    Location
    Lincoln, England
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Align data in different columns

    Thanks, thats perfect.

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Align data in different columns

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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