web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Stop PA coverting Exce...
Power Automate
Unanswered

Stop PA coverting Excel Time to DateTime and Keep as Text Value

(0) ShareShare
ReportReport
Posted on by 21

Hello All, 

I have searched everywhere and unable to solve the issue I am facing. I am trying to automate a Stats card that I send to my Analyst monthly to show their stats for last month. This will include like Total tickets resolved, how many phone calls they took, average time they spent on the phone. 

 

The issue I'm facing is that it is converting their "total times" into dateTime format, so instead so saying they have spoken a total of 23 hours on the phone it is showing in time format. How can I get PA to just read the number as text value without it automatically converting it into DateTime. 

 

Excel Spreadsheet 

GOSHKRC_0-1702823562396.png

How it is outputting it

GOSHKRC_1-1702823609643.png


I don't want to have to use formatDateTime because this is causing issues if their stat is over 24 hours, as you can see from the image below it treats it as a new day. And I can't do 12 hours as it will convert 18:00:00 to 6pm.

GOSHKRC_4-1702824237618.png

 

I can't change Excel to format the cells in "Text" because then this will change the value and it will become "1.01732638888889". 

 

Is there anyway of doing this??


I appreciate any help you can offer. 



Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @GOSHKRC ,

     

    Please try:

     

    formatDateTime(YourDataTimeColumn,'HH:mm:ss')
     
    Best Regards,
    Bof
  • KurtisRC Profile Picture
    21 on at

    Unfortunately I can't use FormatDateTime in either 24 or 12 hours. As detailed above if a field has value that is over 24 hours, so let's say 34:40:00 it will treat this as a new day and display it as 10:40:00. 

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @GOSHKRC ,

     

    Please try:

    vbofengmsft_1-1703052456033.png

    concat(
    split(string(mul(float(items('Apply_to_each')?['Admin']),24)),'.')[0],
    ':',
    mod(int(split(string(mul(float(items('Apply_to_each')?['Admin']),mul(24,60))),'.')[0]),60),
    ':',
    mod(int(split(string(mul(float(items('Apply_to_each')?['Admin']),mul(24,3600))),'.')[0]),60)
    )

    Result:

    vbofengmsft_0-1703052421794.png

     

    Best Regards,

    Bof

     

  • KurtisRC Profile Picture
    21 on at

    Amazing, that worked perfectly.
    I would have never of worked that out so I appreciate your help with this.  

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard