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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Desktop - Extract spec...
Power Automate
Unanswered

Desktop - Extract specific row and column values from Excel

(0) ShareShare
ReportReport
Posted on by 62

Hi, I am able to create the table and extract it to a variable - ExcelData.

I want to go through a specific row and extract each column to enter it on a website.  

I do not see how to specify the row value in the statements and I'm not trying to run a loop as each row will be entered at different times.

 

Is there someone that knows the syntax to specify what I would think would look like  %ExcelData(Row)(Column) ?

 

Thanks in advance.  This is a really great community!

I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    %ExcelData[Row][Column]%
    Variable data types - Power Automate | Microsoft Docs

  • dashort Profile Picture
    62 on at

    Thank you for being patient with a noob and taking the time to show me the answer!

  • dashort Profile Picture
    62 on at

     If you want a curveball, tell me how to enter a variable for the row number 🙂  I've tried %ExcelData[VariableName][2]% but it didn't like the variable and told me that it didn't have a property "4", which was the value for the variable, and the row which I wanted.

  • Community Power Platform Member Profile Picture
    on at

    Hi @dashort 

    Not sure if that's what you asked, but you can define the variable value by 'Set variable' action under 'Variables' group.
    In your case, you have to previously add a 'Set variable' to define %VariableName% with the value you want.

    Also, notice that Power Automate Desktop is zero base. So, to get the value of first row and first column in your ExcelData variable, you have to use %ExcelData[0][0]%.

  • dashort Profile Picture
    62 on at

    I was looking for a way to use a variable to specify the row so that I can be more flexible and not tied down to a single entry. I tried %ExcelData[%RowVariable%][2] and it spit out an error. 

  • Community Power Platform Member Profile Picture
    on at

    Correct syntax is %ExcelData[RowVariable][2]% in this case.

  • dashort Profile Picture
    62 on at

    Thanks again for your time. When I put the variable in for the row number, I get told "Variable "ExcelData" doesn't have a property "2".  2 is the value for the variable, so at least it's reading it.  I'm not sure how to tell it that I need that particular row number....

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Sorry @dashort, gave the first answer without really testing it. My bad.

    I think I was able to replicate your error scenario with this flow:

    1) Launch Excel

    2) 'Read from Excel worksheet' to get an ExcelData variable 

    3) 'Display input dialog' to input row number as test (%Row% as output)

    4) 'Set variable', to see result of %ExcelData[Row][1]% in Flow Variables panel

    Got the same error message you mentioned: "Variable "ExcelData" doesn't have a property "x"".

    Problem is, using input dialog in this case resulted in %Row% variable as text type.

    So I added a 'Convert text to number' action to convert %Row% into a new variable called %RowNumber%, prior to throw it at an adjusted %ExcelData[RowNumber][1]%.

    Worked as desired. Check if it applies to your case and give it a try.

  • Riyaz_riz11 Profile Picture
    3,844 Super User 2025 Season 2 on at

    Hi @dashort 

     

    Please check on this

     

    %ExcelData[Row][Column]%

  • dashort Profile Picture
    62 on at

    Brilliant!  Thank you for getting this sorted.  I appreciate your persistence!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard