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

Collect a datetime from an excel row list, with a for statement

Hi guys I need Help on my Flow:

 

I trigger it manually and after, it gets all the rows from a specific table,

 

after it runs a 'for' statement collecting all values and i put a condition when its less or same from the 'end of quarantine' to 'today'

 

If its true, it will delete the same row as the end of quarantine that it collected, afterwards it gives info to someone.

 

The problem is that it does not execute anything and when i do a test the 'end and start of quarantine' gets random numbers, how do I collect the same date from the excel?

 

Here is my screenshot

 

excel:

 

hgallardo_0-1594048127827.png

 

 

hgallardo_1-1594048174070.png

 

Thanks to the community!

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @hgallardo ,

 

Could you please share a screenshot of the data in the excel table?

Does the date column in the excel table have the time? the date in excel table would be a string like "40443" in Microsoft flow currently

If the date column in the excel table don't have the time, you could format the string to date with type yyyy-MM-dd as @anupam8555  mentioned.

And hope the link below could be your reference:

https://powerusers.microsoft.com/t5/Building-Flows/Excel-file-to-list-flow-date-issue/td-p/279258

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
anupam8555
Responsive Resident
Responsive Resident

Hi @hgallardo ,

 

When you use Excel online(Business) it will return date column values in a numbers so you need to convert into relevant date format. 

Use below formula to get your date .  

addDays('1899-12-30',int(items('Apply_to_each')?['{YOUR EXCEL COLUMN Name}']))

 

I have already shared this idea on ideas platform. 

 

Thanks

(Please mark it as resolve if it helps you)

If you would like to vote for this feature , please use following link :

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Date-Format-Behaviour-Difference-Between-Ex...

 

v-alzhan-msft
Community Support
Community Support

Hi @hgallardo ,

 

Could you please share a screenshot of the data in the excel table?

Does the date column in the excel table have the time? the date in excel table would be a string like "40443" in Microsoft flow currently

If the date column in the excel table don't have the time, you could format the string to date with type yyyy-MM-dd as @anupam8555  mentioned.

And hope the link below could be your reference:

https://powerusers.microsoft.com/t5/Building-Flows/Excel-file-to-list-flow-date-issue/td-p/279258

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi there is the data of the excel:

hgallardo_0-1594644213501.png

It gets the "fin quarentena" date

 

 

also it show me a random string of numbers "44043" like.

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.

Users online (3,309)