cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Power Automate Excel Outputted as Decimal

 

Power Automate seems to output my time from excel sheets into decimal form. Below is an example of the cell I use for time

image.png

 

Then when it goes through flow, when checking the table - It comes out with this

image.png

 

Then when isolating the individual time it comes out the same

image.png

 

How do I convert it back to the original time in the cell?

 

Thanks,

Tyler

5 REPLIES 5
Dual Super User II
Dual Super User II

Hi @Tielure1 

 

So basically how the excel works is, for date it returns the integer calculated as the number of days from 1899-12-29. And for time it is like the percentage of day completed. So if 00:00 is 0% then 12PM is 50% (0.5) and so on. You can find the expression to convert it here:

https://stackoverflow.com/questions/55071744/in-microsoft-flow-how-do-i-grab-an-excel-column-and-for...

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Memorable Member
Memorable Member

Try formateDateTime() in your processes EG:

 

Take the time field and do fromatDateTime(Timefield,'hh:mm')  I am not sure of the actual 'hh:mm' code as it may be upper etc

Memorable Member
Memorable Member

Try formateDateTime() in your processes EG:

 

Take the time field and do fromatDateTime(Timefield,'hh:mm')  I am not sure of the actual 'hh:mm' code as it may be upper etc

How would I implement this into flow? My flow has to iterate through each row in an excel sheet and convert it?

 

Thanks,

Tyler

Hi @Tielure1 

 

Were you able to resolve? Can you take a try using the expression provided on the URL that I have shared? You have to wrap the dynamic content from the excel outputs into that expression to get the time in hours and minutes. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (5,600)