cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tielure1
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
yashag2255
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!

leyburn19
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

leyburn19
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

yashag2255
Dual Super User II
Dual Super User II

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (17,143)