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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get Worksheet n...
Power Automate
Answered

How to get Worksheet name using Power Automate flow and use it to create a table

(0) ShareShare
ReportReport
Posted on by 134

I am using Power Automate Flow to convert an excel file to Table when it gets created on a SharePoint site. In the flow, I am using the below in 'Table range' so as to convert the entire data to a Table Range.

 

=OFFSET('Page 1'!A1,0,0,SUBTOTAL(103,'Page 1'!$A:$A),24)

 

My excel file would always have 1 sheet only. But the sheet name may change every time. The above formula only works when the Sheet Name is 'Page 1'. Kindly help me to build a Flow that I can use on any sheet name. That is instead of 'Page 1' it should be dynamic to consider the 1st or single sheet as a reference.

I am sharing the screenshot of the Flow for everybody's reference.

 

Shubhabrata_0-1706862633124.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Shubhabrata ,

     

    You can get worksheet name using below actions:

    vjefferni_0-1706863179476.png

     

    Best regards,

  • CU06081659-0 Profile Picture
    134 on at

    Hi @v-jefferni ,

     

    Thanks for your prompt reply. I tried using your method but getting the below error in 'Create table 2' step.

     

    Shubhabrata_0-1706864905265.png

    Shubhabrata_1-1706864950876.png

    Shubhabrata_2-1706865038525.png

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Shubhabrata ,

     

    Ah, I just meant to tell you to use the Name dynamic content inside your previous function:

    =OFFSET('@items('Apply_to_each')?['Name']'!A1,0,0,SUBTOTAL(103,'Page 1'!$A:$A),24)

     

    Best regards,

  • CU06081659-0 Profile Picture
    134 on at

    Used the formula in 'Table range' but got the below error:

    Shubhabrata_0-1706865799829.png

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Shubhabrata ,

     

    It would be like this:

    =OFFSET('@{items('Apply_to_each')?['name']}'!A1,0,0,SUBTOTAL(103,'Page 1'!$A:$A),24)

    vjefferni_0-1706866092312.png

     

    Best regards,

  • CU06081659-0 Profile Picture
    134 on at

    Yayyyyy....it worked. You are a magician.

     

    Many thanks for your quick help. Really appreciate your patience for people like us who not are not an expert on this and trying to learn.

  • npandya98 Profile Picture
    2 on at

    Offset function doesn't work in the new designer. Please help.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 442

#2
Vish WR Profile Picture

Vish WR 328

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard