Forum Discussion
NotSoFamous
Feb 28, 2022Copper Contributor
use cell address as reference in =DATEDIF((I2),DATEVALUE("2022/2/28"),y)
Dumb question: How to use a cell address as reference in =DATEDIF((I2),DATEVALUE("2022/2/28"),y) where I2 is the cell with 2021/8/12?
- Feb 28, 2022
Not sure what to tell you - I copy/pasted it directly from your post, added the parentheses, and it works fine for me.
JMB17
Feb 28, 2022Bronze Contributor
You will need parentheses around the "y", but otherwise looks okay to me.
NotSoFamous
Feb 28, 2022Copper Contributor
I still get "NAME" msg.
- JMB17Feb 28, 2022Bronze Contributor
Not sure what to tell you - I copy/pasted it directly from your post, added the parentheses, and it works fine for me.
- NotSoFamousMar 07, 2022Copper ContributorSorry. Your response is correct except it needs apostrophes around y.
- JMB17Mar 07, 2022Bronze ContributorYes, quotes - sorry about that.