Skip to main content
Community site session details

Community site session details

Session Id : 4FI2lMw98QoTGhSPQUxjIn
Power Automate - General Discussion
Unanswered

Removing Blank columns and blank rows from data

Like (0) ShareShare
ReportReport
Posted on 12 Aug 2019 16:47:53 by

Is there a way to make a excel workbook that only displays the columns that has data send from the PowerApps or make visiable only columns that hava data into them? Is there any way to clear out the data already in an excel workbook before replacing the data with new data?

 

Categories:
  • Community Power Platform Member Profile Picture
    on 31 Aug 2020 at 09:00:57
    Re: Removing Blank columns and blank rows from data

    Hi @v-bacao-msft ,

     

    How can the Delete Row action tell which ones are blank. Is there a way of doing this through Dynamic Content? Can you take a screenshot please?

     

    Thanks in advance. 

  • v-bacao-msft Profile Picture
    on 13 Aug 2019 at 06:38:11
    Re: Removing Blank columns and blank rows from data

     

    Hi @Anonymous ,

     

    Currently, Flow only supports deleting rows. It does not support deleting columns.

    I am afraid there is currently no suitable method to achieve your needs.

    If you want a similar feature to be supported by MS Flow, please consider submitting your suggestions in the ideas forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on 13 Aug 2019 at 06:03:46
    Re: Removing Blank columns and blank rows from data

    Hello @v-bacao-msft ,

     

    Would this delete any empty columns? I have a template already set up and I can delete empty rows now, but I need to find a way to delete empty columns.

  • v-bacao-msft Profile Picture
    on 13 Aug 2019 at 00:38:31
    Re: Removing Blank columns and blank rows from data

     

    Hi @Anonymous ,

     

    The prerequisite for achieving your needs is that an Excel table has been defined in advance in the Excel spreadsheet.

    Then you could use List rows present in a table action to get all the rows in the table and use condition to determine if the specified field is empty.

    If all of the above conditions are met, then you could use Delete row action to remove the blank rows. It is recommended to use a non-empty field with a unique value as the key column to delete rows.

     

    The basic structure of Flow is consistent with the above, and there are many posts in the community about removing blank rows for reference. You could also try to create a Flow based on the above description. If you have any questions, please ask.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on 12 Aug 2019 at 18:44:07
    Re: Removing Blank columns and blank rows from data

    Hi everyone,

     

    I have figured out how to remove blank row, but I do not know how to remove blank columns from a excel spreadsheet.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2