Hi, novice here and looking for a bit of advice.
I am trying to work out an age from an ID number provided in an MS form and email it back to the responder. The first six digits is the DOB.
ID: 0101010000 = 01/01/01 = 24 years old
It works fine for me in excel using this formula:
=DATEDIF(DATE(IF(MID(A2,5,2)>TEXT(TODAY(),"YY"),"19"&MID(A2,5,2),"20"&MID(A2,5,2)),MID(A2,3,2),LEFT(A2,2)),TODAY(),"y")
How to I transfer this to my flow replacing A2 with dynamic content? It might be that my formula is a bit convoluted but it got me there in excel.
I have tried various ways of replacing A2 with the dynamic content and moving the output after datedif and date but no luck. Any ideas?
I know my caveat is that if they are > 100 then this will cycle them back to being a baby but there isn't enough data to account for that here.
Thanks