+ Reply to Thread
Results 1 to 12 of 12

How to Add 2 Blank row automatically??

  1. #1
    Registered User
    Join Date
    12-24-2014
    Location
    Bangladesh
    MS-Off Ver
    2010
    Posts
    18

    How to Add 2 Blank row automatically??

    I am working with a new indexing project.
    Here I have over 6000 files with over 1200 folders.

    Using excel 2016 power query i got all my folder and subfolders list along with all my files names.

    Like this
    --------------------------------------------------------
    power query 1.PNG

    --------------------------------------------------------
    But i need to insert 2 blank row after every folder. (not files.)

    Like this
    --------------------------------------------------------

    power query 2.PNG


    -------------------------------------------------------

    I can insert blank row from right click menu. But for 1200+ folders that takes too much time.

    Is there any automated way or any code with I can do this in short time?

    Thank you.
    Last edited by z_i_nayon; 05-12-2022 at 02:29 AM. Reason: ADDED SAMPLE FILE

  2. #2
    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
    81,288

    Re: How to Add 2 Blank row automatically??

    This would need to be done as part of the query, not after the fact.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    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.

  3. #3
    Registered User
    Join Date
    12-24-2014
    Location
    Bangladesh
    MS-Off Ver
    2010
    Posts
    18

    Re: How to Add 2 Blank row automatically??

    I have added a sample workbook. Sorry for not providing it first.

  4. #4
    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
    81,288

    Re: How to Add 2 Blank row automatically??

    The sample workbook needs the source data on a separate tab, as we don't have the source file. Please add this and post the workbook again. Thanks.

  5. #5
    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
    81,288

    Re: How to Add 2 Blank row automatically??

    Here's one way.

    M Code:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-24-2014
    Location
    Bangladesh
    MS-Off Ver
    2010
    Posts
    18

    Re: How to Add 2 Blank row automatically??

    I am sorry but how do i give the source data ?

  7. #7
    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
    81,288

    Re: How to Add 2 Blank row automatically??

    Another way (better).

    M Code:

    Please Login or Register  to view this content.

  8. #8
    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
    81,288

    Re: How to Add 2 Blank row automatically??

    I am sorry but how do i give the source data ?
    No need now. See post #7.

  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
    81,288

    Re: How to Add 2 Blank row automatically??

    This version will maintain the correct sort order.

    M Code:

    Please Login or Register  to view this content.

  10. #10
    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
    81,288

    Re: How to Add 2 Blank row automatically??

    Did you have any questions now that you've had a look?

    If not, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  11. #11
    Registered User
    Join Date
    12-24-2014
    Location
    Bangladesh
    MS-Off Ver
    2010
    Posts
    18

    Re: How to Add 2 Blank row automatically??

    Thank you very much. This is the exact result i was looking for.
    I was not aware about the reputation i will keep that in my mind from now on.

    Thanks again and have a good day.
    Last edited by AliGW; 05-12-2022 at 04:43 AM. Reason: PLEASE don't quote unnecessarily!

  12. #12
    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
    81,288

    Re: How to Add 2 Blank row automatically??

    Glad to help and thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Last edited by AliGW; 05-12-2022 at 04:46 AM.

+ 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. Automatically add a blank row via macro, vba
    By rcom in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-23-2020, 02:30 PM
  2. Insert blank row automatically
    By kannan1847 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2015, 09:43 AM
  3. Delete Blank Column Automatically
    By keen2xl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2013, 12:03 AM
  4. Automatically Insert a blank row
    By joebell in forum Excel General
    Replies: 1
    Last Post: 11-11-2012, 08:38 AM
  5. [SOLVED] Automatically Copy from Above Cell if blank
    By Dave350z in forum Excel General
    Replies: 3
    Last Post: 10-11-2012, 06:51 AM
  6. automatically add information to first blank row
    By humboldtguy in forum Excel General
    Replies: 2
    Last Post: 11-13-2008, 12:22 AM
  7. [SOLVED] how do I insert a blank row when a value changes, automatically
    By mb5451 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2005, 11:15 AM

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