web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : rHthm26y6UP3PJKifQ1Xbg
Power Automate - Building Flows
Answered

Deleting Columns in excel using Power Automate Cloud

Like (0) ShareShare
ReportReport
Posted on 10 May 2023 09:38:16 by 15

Hi All,

 

How to delete the columns in excel using power automate cloud.

 

Regards,

Harsha.

I have the same question (0)
  • v-bofeng-msft Profile Picture
    on 19 May 2023 at 08:48:32
    Re: Deleting Columns in excel using Power Automate Cloud

    Hi @Harshavardhan ,

     

    The solution can only delete the certain column . If you want to delete an empty column , I'm afraid that is not available.

     

    Best Regards,

    Bof

  • Harshavardhan Profile Picture
    15 on 19 May 2023 at 06:19:34
    Re: Deleting Columns in excel using Power Automate Cloud

    Hi @v-bofeng-msft ,

     

    I have a column with header, My scenario is to identify the empty column and to delete it. Is there any solution?

     

    Regards,

    Harsha

  • Verified answer
    v-bofeng-msft Profile Picture
    on 11 May 2023 at 02:30:59
    Re: Deleting Columns in excel using Power Automate Cloud

    Hi @Harshavardhan ,

     

    I've made a test for your reference for your reference:
    1\My Excel file (Excel Online)

    vbofengmsft_1-1683771944595.png

     

    2\New Script

    vbofengmsft_2-1683772010518.png

    function main(workbook: ExcelScript.Workbook) {
    	let selectedSheet = workbook.getWorksheet("Sheet1");
    	// Delete range E:E on selectedSheet
    	selectedSheet.getRange("E:E").delete(ExcelScript.DeleteShiftDirection.left);
    }

     

    3\My flow

     

    vbofengmsft_3-1683772126745.png

     

    4\Result

    vbofengmsft_4-1683772174463.png

    Column5 has been deleted .

     

    Best Regards,
    Bof

     

     

     

     

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete