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 / Excel outputting dates...
Power Automate
Unanswered

Excel outputting dates as ticks in string format

(1) ShareShare
ReportReport
Posted on by 4

I've been trying for a while now to extract the last week's entries from a spreadsheet. I've learned about ticks, as that's what my spreadsheet is putting out:

Original sheetProcessed sheet (unfiltered)
01_Original_Date.png02_Converted_Date.png

 

 

 

So I composed my expression to get the excel tick date for 7 days ago:

 

int(div(sub(ticks(addDays(utcNow(),-7)),ticks('1899-12-30')),864000000000))

 

 

03_Expression-7.png

 

It works, and outputs the right tick date as I'd hoped

 

04_Output_Tickdate.png

 

But when I run my comparison as shown

 

05_Comparison.png

 

I get the following error:

 

Unable to process template language expressions for action 'Condition' at line '1' and column '27165': 'The template language function 'greaterOrEquals' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.

 

 

Although Excel is spitting out a tick date (e.g. 43955.42), Power Automate is still reading it as a string and I can't change it to an integer. I just don't know where I'm going wrong.

 

I've been at this all day and will have to come back to it tomorrow... hopefully with your answers awaiting me!

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

     

    Hi @rareProfessor_ ,

     

    I am afraid that using the ticks() function cannot solve this problem. Please consider referring to the following blog and similar thread to deal with Date in Excel table:

    Handling Date-Time in Excel to SharePoint List through MS Flow

     

    Solved: Excel file to list flow: date issue - Power Platform Community

     

    Best Regards,

  • Rilsina Pegado Profile Picture
    on at

    Hi, You can use this workaround to get date from the String in power automate.

    addDays('1900-01-01T00:00:00Z',sub(int(items('For_all_excel_records')?['Due Date']),2))

     

    Here i am converting the due date, will power automate shows as  43908.

    Ex1.png

    ex2.png

     

    Hope this helps!

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard