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 / Mathematical operation...
Power Automate
Unanswered

Mathematical operations on Excel numbers (formatted as text)

(0) ShareShare
ReportReport
Posted on by 19
I have the same question (0)
  • Becksie222 Profile Picture
    19 on at

    Bump to the top 😊

  • tc_procare Profile Picture
    20 on at

    I think your numbers are getting stored as text, I ran some quick tests to see if I could duplicate your issue:

    tc_procare_0-1648165767015.png

    If reading from Excel, I would check to make sure the 'Advanced' option to read as text is disabled, and if so there might be some whitespace in the original excel file to fool PAD into thinking its text.

    I would then try "Covert text to number" and refer to your table value with a .trimmed property, just don't have text in your cells like I tested with my variable above 😛

    tc_procare_1-1648166044743.png

     

    Another idea to pinpoint your root cause: Set a variable to store just one of your values, and then check its type in Flow Variables once it runs (look to see if identifies as Text, or anything other than "Numeric Value", which is what you would want it to be.

     

    Hope this helps!

  • Becksie222 Profile Picture
    19 on at

    Thanks a lot, @tc_procare 

     

    It happens in all flows I create, like the one below. I make an Excel sheet with three columns (A, B, and C) and here two rows. I haven't got the "Read as text" and when inspecting the value, it comes out as a text as you suggest.

     

    Untitled.png

     

    If I use the convert text to number before the expression, it works, but I would like to know how it can be solved within an expression (to save time over and over in the future).

     

    This is my expression, which doesn't work: %CurrentItem['A'] + CurrentItem['B']%

     

    I also tried to format the excel data as numbers, and no difference. I would love not to format Excel data, as that will make my PAD flows inefficient.

  • Becksie222 Profile Picture
    19 on at

    Another workaround is changing the expression to %CurrentItem['A'] * 1 + CurrentItem['B']% and then it will work, but how do I do it right? 😀

  • tc_procare Profile Picture
    20 on at

    My other thought is storing each cell to its own variable for each row of the loop... I think since its being stored to a DataTable, the contents of which are probably all set to the same type when read (I cant find anything to confirm or deny this on MS Docs).

     

    I personally give each cell read its own Variable and haven't run across any math operations issues, but I'm not sure if its considered the 'right' way to do it since it adds more steps 😛

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 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard