SOLVED

use cell address as reference in =DATEDIF((I2),DATEVALUE("2022/2/28"),y)

Copper Contributor

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?

6 Replies
You will need parentheses around the "y", but otherwise looks okay to me.
best response confirmed by Grahmfs13 (Microsoft)
Solution

@NotSoFamous 

 

Not sure what to tell you - I copy/pasted it directly from your post, added the parentheses, and it works fine for me.

 

JMB17_0-1646073817668.png

 

Reply is correct except it must have apostrophes (") around y (not parentheses). Thank you JMB17.
Sorry. Your response is correct except it needs apostrophes around y.
Yes, quotes - sorry about that.
1 best response

Accepted Solutions
best response confirmed by Grahmfs13 (Microsoft)
Solution

@NotSoFamous 

 

Not sure what to tell you - I copy/pasted it directly from your post, added the parentheses, and it works fine for me.

 

JMB17_0-1646073817668.png

 

View solution in original post