Excel Online to Sharepoint List using PowerAutomate and including Time Values

Copper Contributor

I've read through a handful of posts talking about how excel and powerautomate arent the easiest to work with for date time values. I still believe I can set up this flow, and have cobbled together something of the correct formulas but still cant get to the create item successfully.

 

I have an excel table stored in a sharepoint folder, simple event list with a start date and time column.

currently formatted as date time.

 

I'm trying to import the excel data into a sharepoint list.

 

A_Henriquez_0-1622403966222.png

A_Henriquez_1-1622403979587.png

 

A_Henriquez_2-1622403986919.png

 

addseconds('1899-12-30',int(formatNumber(mul(variables('VarDate'),86400),'0','en-us')),'M/dd/yyyy h:mm tt')

 

A_Henriquez_3-1622403999000.png

 

A_Henriquez_4-1622404006463.png

 

 

formatDateTime(variables('Event Date'),'g')

 

 

I have no idea what I am doing. Just testing various things out. Thank you for any advice you can offer.

2 Replies

Hi @A_Henriquez 

 

I'm just wondering first whether there's a reason you're not able to use SharePoint's feature to create a list from an Excel sheet? I think DateTime fields should come through properly in that scenario, as long as you specify the column as DateTime during the list creation.

 

Or do you mean the list already exists with other entries in it, so you're trying to create additional items?

 

Sandy

@Sandy Ussia 

 

Hi Sandy

 

I have an existing sharepoint list and I want to be able to add in bulk, using excel. 

I just want to set this up to give folks a taste of working in an online environment.

Something as simple as each group saving an excel file to a shared folder, that I can then move into a sharepoint list. The list can then be used for calendars, and possibly planner or project. 

 

I'm also working only with excel online and power automate online - wanting to just roughly test this out. If it works, then the next advice is we seek a consultant for a more comprehensive setup. Especially because all I have figured out so far is how to add, but not actually delete or update existing items.

 

AND - I have actually figured this date/time issue out. I came back here to delete my post - feeling foolish, but I saw your reply. I am so grateful to these communities and others with the most helpful blog and video posts. I followed the method here https://normyoung.ca/2020/07/20/import-excel-data-into-an-existing-sharepoint-list-using-power-autom... and was finally successful. It took me a LONG time to figure out how to apply this in detail - but I finally got it. phew.

 

Thank You for the help,

A Henriquez