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 / Selecting Cells in Excel
Power Automate
Answered

Selecting Cells in Excel

(0) ShareShare
ReportReport
Posted on by 158

Hello,

When iterating through an Excel spreadsheet, I am required the fill in the first row of a column if I wish to select the cells of that column. For example in the image below, I need to type 'B' in the first row of column 2 to be able to select its cells using CurrentItem['B']. I import this Excel spreadsheet so it is impractical for me to populate the first row for every column. How can I select the cells of that column without having to populate the first row?

 

Screenshot 2023-06-13 at 6.00.18 PM.png

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @OnurOnal 

     

    You can use select cells action to select the cell of an excel workbook 

    Nived_Nambiar_0-1686711278791.png

     

    You can select range of cells or single cell as well to select excel workbook

    in above screenshot, i have used the action to select A1 , so that is why i have added Start column and Start ROW , end column and end row as same itself 🙂

     

    Hope it helps !

     

  • OnurOnal Profile Picture
    158 on at

    Hello @Nived_Nambiar,

     

    What I meant by selecting the cell is obtaining the value inside that specific cell. For context, below is an image of where I am using this in my flow. I want to be able to select the cells in column 2 without having to type the letter 'B' in its first row.

     

    Screenshot 2023-06-15 at 7.06.44 PM.png

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @OnurOnal 

     

    To get cell value of each row per column by not specifying column name, use the flow design as below

     

    Nived_Nambiar_0-1686846468514.png

     

    Bot is looping through each row in ExcelData , now inside the loop it is looping through each cell value in the CurrentItem row , i.e CurrentItem2 is the cell value 🙂

     

     

  • OnurOnal Profile Picture
    158 on at

    @Nived_Nambiar,

     

    I believe there may be a misunderstanding. I am trying to select the values at only one specific column. The issue is that I have to manually fill in the first row of that column to be able to select it. For example: In the image below the letter 'B' was entered by me (normally that cell is empty). The reason I entered letter 'B' is to be able to say CurrentItem['B'] and select whatever cell is at column 2 for that iteration of the loop. If I did not enter the letter 'B' that cell would be empty and I would not be able to select column 2. How can I select a column without having to add text to its first row?

     

    Screenshot 2023-06-13 at 6.00.18 PM.png

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @OnurOnal 

     

    You can use column index instead of column name 

     

    like CurrentItem[1] to select first column values

     

     

  • OnurOnal Profile Picture
    158 on at

    @Nived_Nambiar,

     

    This works, thank you.

  • OnurOnal Profile Picture
    158 on at

    @Nived_Nambiar,

     

    After doing some testing I noticed that the solution only works in if statements. It does not work when using the "Write to Excel worksheet" action. I am providing two images: In the first image %CurrentItem[2]% works, but in the second image %CurrentItem[2]% does not work. 

     

    Screenshot 2023-06-16 at 6.07.19 PM.pngScreenshot 2023-06-16 at 6.10.06 PM.png

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @OnurOnal 

    Any error is thrown ?

     

  • OnurOnal Profile Picture
    158 on at

    @Nived_Nambiar,

     

    No error, it just fails to pull the data.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @OnurOnal 

     

    Ok so data written to excel is seen as empty

     

    have you checked the value of CurrentItem[2] before writing ?

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 312 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 154 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 143 Super User 2026 Season 2

Last 30 days Overall leaderboard