+ Reply to Thread
Results 1 to 4 of 4

Merge Multiple Columns of Different Lengths With Common Values

  1. #1
    Registered User
    Join Date
    07-27-2015
    Location
    Pittsburgh, PA
    MS-Off Ver
    2010
    Posts
    2

    Merge Multiple Columns of Different Lengths With Common Values

    I have a longer column (11600 rows) made up of 464 unique values that repeat randomly (Column A of attatchment). I also have eight 465 row columns. I would like to merge the two so that wherever a value appears in column A, the remaining data that should go along with that column is appended to the right of it. For example, wherever APT appears in column A, 3, 2.56, 2, 2.58, 2.61, 0.95, and 554 would appear in columns B-H.

    Thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Merge Multiple Columns of Different Lengths With Common Values

    First of all you will need to insert some blank columns from B onwards, so that you do not overwrite the tabular data - I inserted 8 columns, so that the table starts in column K. Then you can have this formula in B1:

    =IFERROR(VLOOKUP($A1,$K:$R,COLUMN(),0),"")

    and copy across to H1. Then you can copy those formulae down as far as you need to.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-27-2015
    Location
    Pittsburgh, PA
    MS-Off Ver
    2010
    Posts
    2

    Re: Merge Multiple Columns of Different Lengths With Common Values

    Pete, that works great for the first row. Unfortunately, it does not update for each subsequent row. Rows 2 through the end contain the same data as Row 1.

    Edit: I actually just needed to follow the steps in this post http://www.excelforum.com/l/642692-asdf.html. Apparently, my formula calculation had somehow been set to manual. Thank you for your help!
    Last edited by jcolarusso; 07-28-2015 at 10:36 AM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Merge Multiple Columns of Different Lengths With Common Values

    Wow, that's an old post that you found !

    If you open a workbook that has been set to Manual calculation, then all other workbooks opened in that session of Excel will also be set to Manual, and then when you save them (with that setting) and subsequently open them again, you will have the same problem. However, as you have found, it is easily fixed by changing the Calculation options and saving the file again.

    Glad to be able to help. If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Finding common values over multiple columns
    By olgratefuldead in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-30-2014, 12:55 AM
  2. Merge column values in one row based on common key
    By ashokkumar2412 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-31-2014, 09:52 AM
  3. [SOLVED] Merge cells in a table based on number of common values
    By saidineshbabu in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-17-2013, 11:21 AM
  4. Merge multiple rows with one common cell
    By seanant in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-16-2013, 04:24 AM
  5. [SOLVED] Average of a subset of values within columns of various lengths
    By mrp16 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2012, 10:37 PM
  6. Count values common between multiple columns/arrays
    By mihcis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2011, 12:50 PM
  7. Merge multiple spreadsheets with common field
    By sbarry50 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2010, 11:42 AM

Tags for this Thread

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