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 / How to flag rows conta...
Power Automate
Unanswered

How to flag rows containing certain strings.

(1) ShareShare
ReportReport
Posted on by

I would like to perform automatic sorting on a large amount of data that is created automatically.
The only way I can think of to sort it out is to add many control functions, but if you have any good ideas for a solution, please let me know.
The policy of my team prohibits the use of power automate for desktop. I would like to use the cloud version.

 

 

If column A contains the letter “ABC” and column C contains the letter “123”, then put the number “1” in column E,
Put the number “2” in column E if column A contains the letters “ABC” and column C contains the letters “124”,
If column A contains the letter “DEF” and column C contains the letter “123”, insert the number “3” in column E.
If column A contains the letter “DAF” and column C contains the letter “223”, insert the number “4” in column E. ・・・・ etc.

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @Soraumi810 ,

     

    If your data source is a excel table , you could use excel function to achieve your needs.

    =IF(
     AND(ISNUMBER(SEARCH("ABC",A1)),ISNUMBER(SEARCH("123",C1))),
     1,
     IF(
     AND(ISNUMBER(SEARCH("ABC",A1)),ISNUMBER(SEARCH("124",C1))),
     2,
     IF(
     AND(ISNUMBER(SEARCH("DEF",A1)),ISNUMBER(SEARCH("123",C1))),
     3,
     IF(
     AND(ISNUMBER(SEARCH("DAF",A1)),ISNUMBER(SEARCH("223",C1))),
     4,
     0
     )
     )
     )
    )

    vbofengmsft_0-1716255561514.png

     

    Best Regards,

    Bof

     

  • sandeepstw Profile Picture
    312 Moderator on at

    Hi   

    Use these steps - 

     

    Trigger: When a file is created or modified (properties only)

      

       Action: List rows present in a table

           

            Action: Apply to each (value)

                 

                 Condition: If Column A contains "ABC" and Column C contains "123"

                 Action: Update a row (set Column E to "1")

                 

                 Condition: If Column A contains "ABC" and Column C contains "124"

                  Action: Update a row (set Column E to "2")

                 

                Condition: If Column A contains "DEF" and Column C contains "123"

                  Action: Update a row (set Column E to "3")

                 

                 Condition: If Column A contains "DAF" and Column C contains "223"

                       Action: Update a row (set Column E to "4")

     

    Mark as solution if it helps. 

     

    Thanks,

    Sandeep Mishra

    @Soraumi810

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