![]() |
|
#1
|
|||
|
|||
![]()
I want to calculate the difrence between old date and now in months. MS has examples of datedif() but another website says that datedif is depreciated and no longer used. Replaced by YEARFRAC()
Confused. =DATEDIF(2023/1/1,2024/1/1,"M") = 0 |
#2
|
||||
|
||||
![]()
You need to add double quotes when you do not reference cells
Code:
=DATEDIF("2023/1/1","2024/1/1","M") = 12
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
![]()
Or use DATESERIAL() - the formula will work with any local setting then
Code:
=DATEDIF(DATESERIAL(2023,1,1),DATESERIAL(2024,1,1),"M") |
#4
|
|||
|
|||
![]()
Putting =DATEDIF(DATESERIAL(2023,1,1),DATESERIAL(2024,1,1) ,"M") into a cell gives me #NAME?
|
#5
|
|||
|
|||
![]()
Microsoft is saying the function is DATEDIFF()!
|
#6
|
||||
|
||||
![]()
Where did you get that ? DATEDIF function - Microsoft Support
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#7
|
||||
|
||||
![]()
DATESERIAL is an ACCESS or VBA function. DATEDIF ( with one "F") is the way to go ( among others)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#8
|
|||
|
|||
![]() Quote:
So Code:
=DATEDIF(DATE(2023,1,1),DATE(2024,1,1),"m") Last edited by ArviLaanemets; 10-03-2024 at 05:05 AM. |
#9
|
||||
|
||||
![]()
Perhaps to avoid confusion as the DATEDIFF and the DATEDIF ( not supported by MS anymore) functions have very different syntaxes?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#10
|
||||
|
||||
![]()
Did you try PecoFlyer's suggestion. His solution works for me.
__________________
Alan עַם יִשְׂרָאֵל חַ Using O365 v2505 |
#11
|
||||
|
||||
![]()
@Pablo2000 As all this helped? You did not react anymore?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
DATEDIF issue | teza2k06 | Excel | 2 | 11-14-2021 03:35 AM |
![]() |
OTPM | Project | 5 | 03-17-2014 05:16 AM |
![]() |
caz46 | Excel | 7 | 01-12-2012 08:46 AM |