Hoping someone can help me with this. I have a flow that when triggered, updates an excel spreadsheet in sharepoint. Issue is the date (column B) is not in a date / time format.
I'm using the add row function and had =DATEVALUE(LEFT(B2,10))+TIMEVALUE(MID(B2,12,8)).
Problem is the row is added at the end of the table and C5 should reflect =DATEVALUE(LEFT(B510))+TIMEVALUE(MID(B5,12,8)). Any suggestions on how I can update the addrow to know what is the correct cell reference?
Any help appreciated.
Solved! Go to Solution.
Hi @NiugeS :
"2021-01-26T23:36:45.000Z" is the date in the standard ISO 8601 format.You can use this formula to convert it to the format of ‘dd/MM/yyyy hh:mm:ss’:
I've made a test for your reference:
@v-bofeng-msft Thank you for the reply. The problem is if I add another row, the next formula will require formatdatetime(b6,'dd/MM/yyyy hh:mm:ss')
The issue is the table grows by one each time and I'm not sure on how to reference the correct cell.
When a ticket type is created in a database, it triggers the addrow. The value is CreatedDate.
I hope i've answered your questions. Apologies - a bit new to all of this still.
@v-bofeng-msft Thanks for the help. I'm still trying to get this to work. There must be somethign wrong with the expression i'm doing as i'm getting One or more fields provided is of type 'Null', a different type is expected.
Without this expression, the flow works fine so something i'm doing wrong.
Keep up to date with current events and community announcements in the Power Automate community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!