+ Reply to Thread
Results 1 to 10 of 10

Merge cells

  1. #1
    Registered User
    Join Date
    05-30-2014
    Location
    Athens, Greece
    MS-Off Ver
    365 version 2411
    Posts
    11

    Merge cells

    Hello. I'd like to know how can I merge cells in the same row so when I sort a column (A>Z for example) the contents of the row near the selected one change position as well. I paste a picture for example.
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Merge cells

    You don't need to merge them. Just highlight both rows, click custom sort, and sort by the row you want.

  3. #3
    Registered User
    Join Date
    05-30-2014
    Location
    Athens, Greece
    MS-Off Ver
    365 version 2411
    Posts
    11

    Re: Merge cells

    Ok, let me explain it better. In the first cell I have a song's name. The second cell in the same row is the artist's name and the third is the note. What I want is to make links between the rows so when I sort each column separately the contents of the rows next to the sorted one change sorting as well. For example I want to sort the third column which is the note so I have Am, Bm, C etc. and I want column A and B go along. I hope I explained it well, sory for any mistakes, not my language.

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Office 365
    Posts
    1,899

    Re: Merge cells

    HI,

    Provide a workbook showing before and after stating your requirement manually.

    Punnam

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Merge cells

    Click on A3 (first non-merged cell in col. A)--> Sort & Filter --> Custom Sort --> Sort By --> (ColumnC) [When your first two rows are merged] --> OK
    I think, this will do what you are trying to achieve.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    Registered User
    Join Date
    05-30-2014
    Location
    Athens, Greece
    MS-Off Ver
    365 version 2411
    Posts
    11

    Re: Merge cells

    It prompts a message "This operation requires the merged cells to be identically sized". I want to sort them in a way web sites give the option to. Sort list by artist name, or sort by song name, or sort by key etc. and all the columns switch contents. Like the rows are linked between them.
    Attached Images Attached Images

  7. #7
    Registered User
    Join Date
    05-30-2014
    Location
    Athens, Greece
    MS-Off Ver
    365 version 2411
    Posts
    11

    Re: Merge cells

    I don't want "sort by" be a button I just want when I sort each column the 2 rows next to it change as well automatically.

  8. #8
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Merge cells

    Like I said, if you highlight all three rows, it will happen. Whichever rows you highlight will move with whichever row you sort.

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Merge cells

    and a not asked advice.

    Don't work with merged cells, you get in trouble with it sooner or later.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  10. #10
    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
    53,050

    Re: Merge cells

    I agree with oeldere...merged cells cause nothing but trouble - avoid them if at all possible. If you highlight the entire range, data on a row stays togethere when sorting, you dont need to merge
    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

+ 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] Macro merge cells separated by comma, ignore blank cells
    By lagiosman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2014, 04:49 PM
  2. Replies: 2
    Last Post: 01-22-2014, 02:35 PM
  3. Replies: 0
    Last Post: 06-27-2012, 06:29 AM
  4. Replies: 2
    Last Post: 07-20-2006, 09:05 AM
  5. [SOLVED] MERGE CELLSHow to merge two cells in excel?
    By laure abbass in forum Excel General
    Replies: 1
    Last Post: 11-10-2005, 01:50 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