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 :
Power Platform Community / Forums / Power Automate / Checking Excel sheet e...
Power Automate
Unanswered

Checking Excel sheet exists

(0) ShareShare
ReportReport
Posted on by 11

Hi,

I am new to power Automate and I am trying to Automate some excel automation. 

I have an Excel which has 3 sheets in it. One of the sheet(sheet A) has some information regarding the PTO dates of team, Approver and Status column. I have to create a new sheet with approver's name if Status column is empty. ( I am able to achieve this for the first time). If the sheet is already there then I need not create a new sheet. I am using Get All work sheets activity, then using for each loop and inside the loop I am writing if condition. If sheet exists then do nothing, else Add work sheet. But the problem here is it always trying to execute else part. and throwing error. Is there a way I could resolve this.

Thanks in advance.

Categories:
I have the same question (0)
  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at
    Re: Checking Excel sheet exists

    If possible, can you share the snap how you've wrote the condition to check so we can look into it?

    Thanks

  • DS29 Profile Picture
    11 on at
    Re: Checking Excel sheet exists

    Hi

    Following are from desktop and online 

     

    DS29_0-1658238697623.pngDS29_1-1658239227024.png

     

  • Shujaath_Khan Profile Picture
    1,111 Super User 2024 Season 1 on at
    Re: Checking Excel sheet exists

    in your power automate desktop flow

    in if condition

    left side it should be CurrentItem2 but instead you're directly referring to SheetNames.

     

    please check

    thanks

  • DS29 Profile Picture
    11 on at
    Re: Checking Excel sheet exists

    Hi I want it to do it in desktop way in my online one too.

  • v-jefferni Profile Picture
    on at
    Re: Checking Excel sheet exists

    Hi @DS29 ,

     

    I made a test to count the sheets filtered in an Excel. It works fine:

    vjefferni_0-1658821905832.pngvjefferni_1-1658821914287.png

    vjefferni_2-1658821939378.png

     

    Please check the sheet name within the Condition control and see if there was a typo, extra spaces for example.

     

    Best regards,

  • Verified answer
    DS29 Profile Picture
    11 on at
    Re: Checking Excel sheet exists

    Thank you for trying this and replying back. I was able to get this. The use case got changed.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard