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 / Mtach 2 strings in exc...
Power Automate
Unanswered

Mtach 2 strings in excel and give results

(0) ShareShare
ReportReport
Posted on by 42

Hi Team,

 

I am having an Excel sheet in that I need to match 2 columns and If it matches I need to get results in Percentage

say for example :

Abisheck_Canary_0-1675777119737.png

 

Like this I am having 2 column I need to find out matching Percentage of these.

Any ideas of how to do?? Thank you in advance!!!

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @Abisheck_Canary,

     

    Can you clarify you definition of match? Does it need to match the exact value of column1 or can it match against part of the value as well?

     

    In case of the first scenario you can use something like the example below.

     

    In an update row I use the following expression in a new percentage column.

    This expression uses a indexOf to check if the value of column1 is is found in column2. If that is the case (not equals to -1). The length of both values are converted to float values and used in a div calculation and formatted as a percentage value via formatnumber with the P2 format.

    if(equals(indexOf(item()?['column2'], item()?['column1']), -1), 0, formatnumber(div(float(length(item()?['column1'])), float(length(item()?['column2']))), 'P2'))

     

    updaterow_percentages.png

     

    This would result in the following percentages

     

    percentagematch.png

  • Abisheck_Canary Profile Picture
    42 on at

    Thanks for the response .

    what you given is very much useful 👍 Thanks a lot again!!!

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard