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 number of i...
Power Automate
Answered

How to get number of item from list (xls match function)

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

i`d like to get position of item from list in PA. I`ve list:

1. A

2. B

3. C

i`d like to get position of "C" element. How i can get it? In excel there is the formula "=MATCH", which returns position of item in the list. There is possible in PA?

I have the same question (0)
  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Unfortunately no, at least not one I have found yet. You could open a blank Excel, paste the list to Column A, write the Match formula to B1 and then read from B1.

     

    Or, you can loop though the list saying, if %List.LoopIndex% = ‘thematchtextIneed’ then set variable %matchIndex% to %LoopIndex%

    if you use the excel method be sure to -1 cuz PAD index starts at 0, not 1. 

  • Benny_1857 Profile Picture
    124 on at

    Hi,

    1.If  you just want to get the position of the item. I complicated the problem. I want to get every postion contains 'C'

    Benny_1857_0-1642353931013.png

    Benny_1857_1-1642354725574.pngBenny_1857_2-1642354855340.png

    You could change 'if... then' equal the text you input or contain the text you input.

     

    2 if you just want to get number from the list

    Benny_1857_3-1642355053156.pngBenny_1857_4-1642355669658.png

    Benny_1857_5-1642355714998.png

    Outcome will be a little strange which I get 2 columns.

     

     

  • Michs Profile Picture
    6 on at

    Hello,

     

    thank you @MichaelAnnis and @Benny_1857 for your solutions.
    I wish, I can use xls formulas to PA, but I solved problem the same way as Michael, copy data to excel and using =match.

     

    Regards,

    Michal

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 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard