A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You are welcome.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
hi there,
bit of a weird one but i have a table and im trying to calculate the date difference between two dates - basically trying to calculate the age of a device. in one column is the registered date and im subtracting it from todays date and then formatting the output in months and years in another column. the formula works fine in certain cells but in others i get a wrong data type error so not sure what is going on. would be grateful for some insight
G7 G8
10/06/2021 2y 0m
23/03/2022 #VALUE!
04/12/2022 0y 7m
and formula used is
=DATEDIF(G7,$N$4,"y") & "y " & DATEDIF(G7,$N$4,"ym") & "m "
N4 cell basically holding todays date. the cells and columns have been formattted to date type in english UK in the pattern dd/mm/yyyy
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
hi, thanks. this worked for me!
Thank you for sharing.
Copy the column G to a new workbook and share with us.
For sharing a sample workbook, upload to OneDrive or any other cloud drives. Then post a link here.