cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Power Automate insert wrong decimal numbers in excel

Hi, I'm having the following problem: when I insert a decimal number through the connector "insert a row (Excel Online, Business)" the number in excel is not recognized with the right format but as a string. The cell format is set to" Number "and if I focus and unfocus the cell, the value is then correctly interpreted. An example is the highlited row in the image below. I already check that there aren't "strange" character in the json that i pass from power automate ("21,5" only the digit and the comma as separator).

If i pass an integer number (eg. 10) it works well.

 

Thank you

 

Cattura.PNG

 
 

 

 

1 REPLY 1
sumurthy
Microsoft
Microsoft

I wonder what the number format of the column/cells are in the target spreadsheet. 

 

The easy solution would be to use Office Scripts (via Run Script) option to not only update, but also format the column to your specification. Then you don't have to worry too much about controlling it from the generic update actions available in add-row actions. This also is quite perf optimal as you can update/format using APIs. 

 

Please check https://docs.microsoft.com/office/dev/scripts/develop/power-automate-integration?view=office-scripts


Please message if you need help with scripts.

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Kudoed Authors
Users online (1,987)