+ Reply to Thread
Results 1 to 9 of 9

How to merge columns within a table?

  1. #1
    Registered User
    Join Date
    10-06-2018
    Location
    Atlanta, GA
    MS-Off Ver
    Microsoft 365
    Posts
    5

    How to merge columns within a table?

    I have a table which I describe here (I use Microsoft 365):

    1st column: Name of assistants (Names of assistants repeat up to 4 times, since they support several managers)
    2nd - 4th columns: Managers (hierarchy level 1 - 4. In each column one hierarchy level)
    5th - End of Table: Office addresses, phone numbers, email addresses of the assistants

    The Situation:
    Every single assistant supports between 1 and 4 managers.

    I want to change the table as follows:
    1st column: Name of all Managers independently of their hierarchy level
    2nd column: Names of assistants (Names of assistants repeat, since they support several managers)
    Remaining columns as before

    I know how to move columns and rows.
    But how can I merge the table that I have in the first column all managers and in the second column all the assistants?

    I would be grateful for any idea!
    Last edited by JavaBohne; 05-28-2023 at 08:23 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,896

    Re: How to merge columns within a table?

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    05-29-2023
    Location
    England
    MS-Off Ver
    Microsoft Office 2019
    Posts
    10

    Re: How to merge columns within a table?

    To merge the columns in your table, follow these steps in Microsoft Excel:

    Insert a new column before the current first column.

    Enter "Managers" as the header in the new first column.

    Use the formula "=IF(B2<>"", B2, IF(C2<>"", C2, IF(D2<>"", D2, IF(E2<>"", E2, ""))))" in cell A2 to combine manager names.

    Drag the formula down to fill the remaining cells in the new first column.

    Insert a new column before the current second column.

    Enter "Assistants" as the header in the new second column.

    Use the formula "=A2" in cell B2 to copy assistant names from the existing first column.

    Drag the formula down to fill the remaining cells in the new second column.

    Now you have a table with managers' names in the first column and assistants' names in the second column. The remaining columns are unchanged.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: How to merge columns within a table?

    Quote Originally Posted by amelialogan778 View Post
    To merge the columns in your table, follow these steps in Microsoft Excel
    This reply looks like it has been generated by a BOT, not by you. If that's the case, it would be good to acknowledge the source...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: How to merge columns within a table?

    Moreover, it does not really answer the question asked. I have just sent a message to amelialogan778 in this regard.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    10-06-2018
    Location
    Atlanta, GA
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: How to merge columns within a table?

    Thank you for all of your messages.

  7. #7
    Registered User
    Join Date
    10-06-2018
    Location
    Atlanta, GA
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: How to merge columns within a table?

    Well, I need two more posts to get the privilege to send a message to a moderator. The only thing I want is to get my account deleted. Wow! Here we go, one done, one to go. PLEASE DELETE MY ACCOUNT.

  8. #8
    Registered User
    Join Date
    10-06-2018
    Location
    Atlanta, GA
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: How to merge columns within a table?

    And here is post number 5. I hope I am able to send a message to moderator, just to get my account deleted. If that does not help, I will start to publish **** pictures on here. PLEASE, DELETE MY ACCOUNT.

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,896

    Re: How to merge columns within a table?

    We do not delete accounts. We can make it inactive. However, this acts as a public database where others query Mr. Google and other search engines looking for solutions. Your issue may be helpful to others. If you have received help here, wouldn't it be nice to pay it forward? As an aside, why would you want your account deleted?

+ 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. Replies: 2
    Last Post: 11-20-2019, 11:43 AM
  2. Help pivot table? Merge? Mail Merge?
    By egarza123 in forum Excel General
    Replies: 11
    Last Post: 05-28-2019, 03:07 PM
  3. Replies: 4
    Last Post: 03-03-2019, 02:24 PM
  4. VBA to merge similar columns in a table
    By randal80 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2017, 11:24 AM
  5. Index search, Merge rows or columns in table format
    By loled in forum Excel General
    Replies: 0
    Last Post: 06-16-2015, 12:02 AM
  6. [SOLVED] Merge duplicate rows and merge the columns (approx 10 columns)
    By adfeddon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2012, 11:19 AM
  7. Merge table columns and data from various excel workbooks into another
    By borat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-12-2007, 11:27 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