+ Reply to Thread
Results 1 to 4 of 4

Enter blank row after group of cells or empty cell is detected.

  1. #1
    Registered User
    Join Date
    09-23-2022
    Location
    Houston, Texas
    MS-Off Ver
    365
    Posts
    64

    Enter blank row after group of cells or empty cell is detected.

    I am trying to find a way to enter a blank row after every other cell with a text is detected. I can do this manually but when i have data with hundreds of rows, it just gets to tedious. I attached a excel file that hopefully illustrates the goal i am trying to achieve. Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Enter blank row after group of cells or empty cell is detected.

    Perhaps this will help.
    1. Convert the range A2:B10 into an Excel table
    2. Fill in the blanks in A2:A10 by utilizing Find &Select > Go To Special > Blanks > =(up arrow) and Enter
    3. Load into power query (From Table/Range on Data tab)
    4. Use the following M-code:
    Please Login or Register  to view this content.
    Note that the code is explained in the linked video: https://www.youtube.com/watch?v=Wq8Iuuw7DFE&t=22s
    5. Conditionally format the Room# column (J) using: =J3=J2 (Font = white)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Enter blank row after group of cells or empty cell is detected.

    a bit shorter M

    Original Expected Result
    Room # Room Room # Room Room # Room
    a1 kitchen a1 kitchen a1 kitchen
    a2 bedroom
    a3 living room a2 bedroom a2 bedroom
    dining room
    a4 stairs a3 living room a3 living room
    a5 restroom dining room dining room
    powder
    a6 lobby a4 stairs a4 stairs
    a5 restroom a5 restroom
    powder powder
    a6 lobby a6 lobby


    Please Login or Register  to view this content.
    Last edited by sandy666; 06-08-2023 at 08:29 PM. Reason: update tables in the post

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Enter blank row after group of cells or empty cell is detected.

    Here is also a solution with a formula:

    I'm not sure the formula could be simpler, but it works: Please try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Return blank cell if other cells empty, calculate percentage value if other cells filled
    By Kerry1980 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-07-2022, 09:25 AM
  2. [SOLVED] If cell meets date requirement enter 1, if not enter 0, if blank don't enter anything.
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2017, 02:04 PM
  3. Replies: 4
    Last Post: 01-05-2017, 01:09 PM
  4. [SOLVED] VBA to enter x number of blank rows by group
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2014, 01:55 AM
  5. [SOLVED] Find first non-blank cell after a group of blanks copy offset cells, find next blank, loop
    By gwsampso in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-21-2012, 06:11 AM
  6. [SOLVED] Match data in cells then enter date in empty cell
    By MyComputerGuy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2012, 08:16 PM
  7. [SOLVED] Not allowing users to enter data into certain cells if another cell is empty
    By KimberlyC in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-06-2005, 02:06 PM

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