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 / Comparing a value on a...
Power Automate
Suggested Answer

Comparing a value on a webpage with an excel cell

(0) ShareShare
ReportReport
Posted on by 2
Hello,
 
I am using Power Automate Desktop to read an excel file with Invoice's and input them into a vendors web platform.  It works and runs great; but I am trying to do a validation before hitting the submit button.  After entering all the data into form and right before I submit it, it shows the invoice total that I am submitting.  I want to grab that invoice total and compare it to the invoice total on the excel file.
 
What I am doing is not working; and I can't find a solution that works.  
 
1.  I am using Get details of element on webpage (this captures the total invoice amount on the webpage)
 
 
2.  That variable I made as "OLinvoiceAmount and I verified the value it captured no problem
 
3.  Here is the excel data that I am pulling from
 
4. I wrote an if statement to error out essential if the values do NOT equal.  However this statement does NOT work.  I can't figure out why not.
 
 
Any help is greatly appreciated.
 
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
     
     
    Just check these things 
     
    1. Are you getting value from excel like 1082.11 - did you check the datatable which hold this value in PAD ?
     
    2.  Did you used %OlinvoiceAmount.Trimmed% so that it can trim off the whitespaces end and start of text variable ?
     
     
    Try these and let me know !
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • NP-01021811-0 Profile Picture
    2 on at
    1.  I did verify the value from excel and that is exactly what I see.
     
    2. I did just try this.  It did not work.  
     
    Any other suggestions?

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard