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
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Top Solution Authors
Users online (3,277)