+ Reply to Thread
Results 1 to 12 of 12

Why you should not merge cells

  1. #1
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,662

    Why you should not merge cells

    Many experienced members recommend against merging cells. I am compiling a little guide as to why merging cells is a terrible idea. I am interested in your contributions and comments.

    Here are some things off the top of my head:

    1. Losing the ability to properly sort data
    2. Losing the ability to run VBA programming code on your data because it doesn't handle merged cells very well (code may not be able to operate on a single cell if it is part of a merged cell; can hamper loops), and a significantly larger amount of code may need to be written to take into account the merged cells
    3. Losing the ability to easily copy from and paste elsewhere, or paste to your worksheet.
    4. Cannot select a column if the first row has a merged cell
    5. Cannot select cells in a column by dragging if the range includes a merged cell that extends into other columns
    6. Cannot select cells in a row by dragging if the range includes a merged cell that extends into other rows
    7. In VBA the Range.Find function will not find a value in a merged cell if you search a row or column , even if the merged value is in that row or column
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Why you should not merge cells

    Below is a link to a good reason not to use merged cells.
    Tabbing through this sheet with merge rows & columns was like trying to get PacMan out of prison.


  3. #3
    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,244

    Re: Why you should not merge cells

    Gosh, I'd forgotten about that one! Yes, one common mistake that leads to the spawn of Satan, aka merged cells, is the idea that the aesthetics of the worksheet are more important than the data processing (often because the user doesn't realise that Excel is not a page layout program).
    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.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Why you should not merge cells

    I blogged about this some time ago: https://excel.solutions/2016/10/usin...ctively-excel/
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Why you should not merge cells

    8. VBA can't count correctly the number of specialcells:
    Please Login or Register  to view this content.



  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,901

    Re: Why you should not merge cells

    9. You can also have values in the merged cells that you can't see but that Excel will include in calculations, depending on how you merged the cells.
    Rory

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Why you should not merge cells

    10. advancedfilter will produce unpredictable results

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,662

    Re: Why you should not merge cells

    Quote Originally Posted by rorya View Post
    9. You can also have values in the merged cells that you can't see but that Excel will include in calculations, depending on how you merged the cells.
    This is a new one on me. Whenever I have merged cells, I was warned that the upper-left cell will be retained but data in other cells will be lost. How can you merge cells without losing values in the cells you can't see?

  9. #9
    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,244

    Re: Why you should not merge cells

    Me, too, Jeff - how would one circumvent this?

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,901

    Re: Why you should not merge cells

    If you use the format painter, all cells retain their values. Here's an example. A1:B1 merged with the format painter, A2:B2 with normal methods. Both A cells had 1 in and both B cells had 2 in before the merge.
    Attached Files Attached Files
    Last edited by rorya; 05-06-2020 at 12:32 PM.

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,662

    Re: Why you should not merge cells

    Quote Originally Posted by rorya View Post
    If you use the format painter, all cells retain their values. Here's an example. A1:B1 merged with the format painter, A2:B2 with normal methods. Both A cells had 1 in and both B cells had 2 in before the merge.
    Well I'll be darned. There are a handful of oddball things like that which Microsoft should have cleaned up years ago.

  12. #12
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,901

    Re: Why you should not merge cells

    Too much of a niche case to waste resources on, I'd have thought. Far better to keep inventing new lookup functions...

+ 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. Repeat column name, N times, Merge cells, Hide cells
    By ionelz in forum Excel General
    Replies: 12
    Last Post: 03-15-2020, 09:53 AM
  2. Replies: 11
    Last Post: 04-04-2017, 03:49 PM
  3. [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
  4. Replies: 2
    Last Post: 01-22-2014, 02:35 PM
  5. How to merge date from adjacent cells inbetween current cells
    By hdawson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2009, 08:03 PM
  6. Replies: 2
    Last Post: 07-20-2006, 09:05 AM
  7. 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