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 : Gu6MT/ubxAYa5lCoxIjSHv
Power Automate - Building Flows
Answered

Is there any way to check if provided worksheet name is exists or not in excel?

Like (0) ShareShare
ReportReport
Posted on 18 Sep 2020 17:17:43 by 35
Hi, I have sharepoint doc library, where excel is uploaded. I wanted to check if particular worksheet is exists or not in the file. Thanks in advance !
  • Verified answer
    efialttes Profile Picture
    14,756 on 21 Sep 2020 at 10:05:31
    Re: Is there any way to check if provided worksheet name is exists or not in excel?

    Eh voila! Just replace 'myTargetWorksheetName' with the one you are looking for.

    I am assuming in an Excel doc, two worksheets cannot share the same name, so if length is not 1, then it means target worksheet is not defined inside

     

    Flow_WorksheetExists.png

    Hope this helps

  • PratikD21 Profile Picture
    35 on 21 Sep 2020 at 09:38:22
    Re: Is there any way to check if provided worksheet name is exists or not in excel?

    Hi,

     

    Thank you for your response. I am newbie to this technology and not aware how to find/compare string value in the response.

     

    Could you please help me in this.

     

    Thanks.

  • efialttes Profile Picture
    14,756 on 18 Sep 2020 at 18:27:17
    Re: Is there any way to check if provided worksheet name is exists or not in excel?

    Hi!

    Try with this approach:

    Flow_worksheets.png

    So you can see 'Get worksheets' output is an array whose elements are objects, each objects represents one workshhet, one of its attributes is 'name'.

    Hope this helps

  • PratikD21 Profile Picture
    35 on 18 Sep 2020 at 17:55:55
    Re: Is there any way to check if provided worksheet name is exists or not in excel?

    @efialttes I have tried, but not able to validate. The requirement is like these users will upload an excel file to SP Doc Library which contains multiple spreadsheets. And, we have a Configuration List where the Spreadsheet  name is stored as one of the item.

     

    Now, i am able to get SP List Item with value but not able compare with Get worksheets connectos repsponse.

     

    Any example/flow diagram for comparison would be helpful.

     

    Thanks.

  • efialttes Profile Picture
    14,756 on 18 Sep 2020 at 17:48:59
    Re: Is there any way to check if provided worksheet name is exists or not in excel?

    Good news!

    THere is an action block called 'Get worksheets'

    https://docs.microsoft.com/en-us/connectors/excelonlinebusiness/#get-worksheets

    Hope this helps

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

Telen Wang – Community Spotlight

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

Announcing our 2025 Season 2 Super Users!

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

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