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 / Searching with regular...
Power Automate
Answered

Searching with regular expresion on excel

(0) ShareShare
ReportReport
Posted on by 44

Hello there!
I need to do a search in excel for characters that match a regular expression but excel functions don't seem to work with regular expressions.

The regular expresion is:  \b(4|5|6|7|8)\d\d\d\b-

 

Celaque_0-1705935124905.png

 

 

I have the same question (0)
  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Regex expression is wrong please share sample input so that I can share the correct reject pattern 

    If you want to use excel and want to search 

    Then you can use excel as database and then you can use SQL query by searching the required value 

     

    Hope this helps

    Usha

  • Celaque Profile Picture
    44 on at

    I'm testing the Regex Expression this and its correct:
    Celaque_0-1705944993643.png


    @UshaJyothi20 wrote:

    Regex expression is wrong please share sample input so that I can share the correct reject pattern 

    If you want to use excel and want to search 

    Then you can use excel as database and then you can use SQL query by searching the required value 

     

    Hope this helps

    Usha


    to this, how can i search with a regular expression
    Example need to find all value that have this pattern
    4000-

    5000-

    6000-
    7000-

    8000-
    Example: 
    3000-000 (NO)
    700-000 (NO)

    7000-00 (YES)
    7000-000 (YES)
    7100-000 (YES)

     

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Hi @Celaque 

     

    Please try the below regex pattern

    .*\d(?=-)

     

    UshaJyothi20_0-1706080021626.png

    Hope this helps

    Usha

     

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Do yo need to check the value should be greater than 4000

    then you can check by looping through the data table and use if activity in that if activity write condition

    currentitem[coloumnname]>4000 in first operand

    equal to

    %True% in second operand

     

    Hope this helps

    usha

    Please clarify your scenario.

     

  • Celaque Profile Picture
    44 on at

    @UshaJyothi20 wrote:

    Do yo need to check the value should be greater than 4000

    then you can check by looping through the data table and use if activity in that if activity write condition

    currentitem[coloumnname]>4000 in first operand

    equal to

    %True% in second operand

     

    Hope this helps

    usha

    Please clarify your scenario.

     


    Let's forget the fact if the expression is correct or not, what I directly need to know is if you can search values in excel with regular expressions. In the action "Find and replace cells in Excel worksheet" sample in the attachment:

    Celaque_0-1706203547970.png

     


    Apologize for any confusion in the question.

  • Verified answer
    Celaque Profile Picture
    44 on at

    Thanks for all help, already make the solution for the topic, I use the action "Find and replace data tables" where is avaible to search with regular expression. 

    Celaque_0-1706208696376.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard