Date calculations in excel 365

Ntsokolo Memani

New Member
Joined
May 6, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
How do I do date calculations in excel 365? I used to use the DATEDIF function with my earlier versions of excel but that function is no longer working. Is there an alternative way to calculate days, months, weeks or years between two dates?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi & welcome to MrExcel.
DateDif still works in 365
 
Upvote 0
Works fine for me, what issue are you having?

Book5
ABC
201/04/200415/06/202117
3206
46284
514
62
775
Sheet2
Cell Formulas
RangeFormula
C2C2=DATEDIF($A$2,$B$2,"Y")
C3C3=DATEDIF($A$2,$B$2,"M")
C4C4=DATEDIF($A$2,$B$2,"D")
C5C5=DATEDIF($A$2,$B$2,"MD")
C6C6=DATEDIF($A$2,$B$2,"YM")
C7C7=DATEDIF($A$2,$B$2,"YD")
 
Upvote 0
AFAIK the function is removed from the online version of excel.
 
Upvote 0
Works fine for me, what issue are you having?

Book5
ABC
201/04/200415/06/202117
3206
46284
514
62
775
Sheet2
Cell Formulas
RangeFormula
C2C2=DATEDIF($A$2,$B$2,"Y")
C3C3=DATEDIF($A$2,$B$2,"M")
C4C4=DATEDIF($A$2,$B$2,"D")
C5C5=DATEDIF($A$2,$B$2,"MD")
C6C6=DATEDIF($A$2,$B$2,"YM")
C7C7=DATEDIF($A$2,$B$2,"YD")
Well I feel very stupid now. In the previous versions I used "," and it worked just fine. Used it here with excel 365 and it just didn't work. The error message also didn't help things. For some reason I decided to use ";" and it worked just fine.
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top