+ Reply to Thread
Results 1 to 3 of 3

Macro for Merging Cells based on empty cells in same sheet

  1. #1
    Registered User
    Join Date
    07-18-2018
    Location
    New Zealand
    MS-Off Ver
    2016
    Posts
    3

    Macro for Merging Cells based on empty cells in same sheet

    Running a report at work, which I have put through a dummy version in the images, along with what I would like the finished product to look like. (Image 1 before, Image 2 finished product)

    The full report is much larger than this, so I would like a Macro to automate the process. Basically I need the Notes column (H), to merge with the above cell if Column A-F in that row is empty.

    For example, A3-F3 is empty, so I need H3 to merge with H2. Similarly, A6-F6 & A7-F7 are empty, so I need both H6 & H7 to merge with H5.

    Can anyone help with this?
    Attached Images Attached Images

  2. #2
    Forum Contributor
    Join Date
    09-21-2009
    Location
    Belgium - Mechelen
    MS-Off Ver
    Office 365 - version 2310
    Posts
    278

    Re: Macro for Merging Cells based on empty cells in same sheet

    Solution provided is not correct.
    Last edited by MarMo; 07-19-2018 at 09:02 AM. Reason: code did not work correctly
    Even a little help can be a big help !!
    1. A sample workbook says more then words. Add problem description and solution so we can understand the problem.
    2. Your appreciation is accepted by clicking the star "Add Reputation" at the lower left of the post.
    3. If your problem is solved, mark it as [SOLVED]: See "FAQ : " https://www.excelforum.com/faq.php
    4. Use [CODE] [/CODE] tags to illustrate your code: see here

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,573

    Re: Macro for Merging Cells based on empty cells in same sheet

    Try
    Please Login or Register  to view this content.

+ 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: 3
    Last Post: 07-16-2014, 03:24 PM
  2. [SOLVED] Problems With Macro to Copy Cells From One Sheet to Next Empty Row In Another Sheet
    By sliesneekr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2014, 09:12 AM
  3. Macro for Filling the empty cells based on current date.
    By aneshdas in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-15-2014, 12:42 PM
  4. MACRO to empty a range of cells based on whether specified cell is empty
    By TBJV in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 10:35 PM
  5. Hide Rows on one Sheet based on cells in another sheet being empty
    By KDF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2013, 01:48 PM
  6. Replies: 2
    Last Post: 08-24-2011, 05:42 PM
  7. macro to colour empty cells (cells not recognized as empty)
    By Gerben in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2005, 11:05 AM

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