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 / Get cell data as variable
Power Automate
Answered

Get cell data as variable

(1) ShareShare
ReportReport
Posted on by 353
I have a flow where I'm extracting two tables from a PDF. the first table contains some basic account information. 
 
I need to extract the account number and save it as a variable to use elsewhere. It is always in the same cell in the table (column 2 row 2). How do I extract this? 

  • Suggested answer
    eetuRobo Profile Picture
    4,607 Super User 2026 Season 2 on at
    In regular Power Automate Desktop flow its very straight forward.  You just use %DataTable[1][1]% to read the second column in second row (its zero index so first row and column is 0). So I think in your case %CurrentTable.DataTable[1][1]%
    Or if you loop it then in currently looped datarow you access the second column like so: %CurrentRow[1]%

    But if you know that the table is always lets say second table then you can remove the for each loop and just extract the value with single set variable:
    %ExtractedPDFTables[1].DataTable[1][1]%
    So thats second tables second rows second column value.

    In Power Fx enabled dekstop flow would use: =ReadCell(DataTable, 2, 2) to read second row and second column (power fx read cell is not zero based index)

     
  • nick9one1 Profile Picture
    353 on at
    thank you. That's exactly what I wanted to know. I can make the flow a lot more simple and remove the loops.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard