+ Reply to Thread
Results 1 to 5 of 5

Merge cells only if the following cell is empty

  1. #1
    Forum Contributor
    Join Date
    11-24-2016
    Location
    Libya
    MS-Off Ver
    Office 365
    Posts
    526

    Merge cells only if the following cell is empty

    At the file in column A I have data and sometimes there are empty cells that follow the data. How can I merge only those cells that is followed by empty cell
    after section results are in column M
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Merge cells only if the following cell is empty

    Try this code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Merge cells only if the following cell is empty

    Try this code:


    Please Login or Register  to view this content.
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  4. #4
    Forum Contributor
    Join Date
    11-24-2016
    Location
    Libya
    MS-Off Ver
    Office 365
    Posts
    526

    Re: Merge cells only if the following cell is empty

    Thanks a lot for both of you
    The first code is working well but the second merges all the empty cells and the only one empty cell is to be merged not all the empty cells

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Merge cells only if the following cell is empty

    You're welcome. Glad I can offer little help

+ 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: 11
    Last Post: 04-04-2017, 03:49 PM
  2. [SOLVED] How to create a dynamic range if the last cell is empty and the columns have empty cells
    By peter_swe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2016, 11:18 PM
  3. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  4. [SOLVED] How to merge empty with filled cells without deleting?
    By kingi in forum Excel General
    Replies: 2
    Last Post: 09-27-2013, 03:20 AM
  5. [SOLVED] Find empty cell till next value merge or copy the respective cells in next column
    By rpriyadharsini1987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2013, 03:46 AM
  6. Merge cells - empty cells with a cell with value
    By suravi086 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2013, 07:51 AM
  7. Replies: 0
    Last Post: 11-03-2012, 06:11 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