Excel deference between two dates in year month and days in mac 2016

Arun_excel

New Member
Joined
Jan 6, 2020
Messages
4
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Platform
  1. Windows
  2. MacOS
  3. Mobile
Hi,

How to get deference between two dates in mac excel 2016 i tried but it is not working accurately

Refer screenshot

Ex: date - date2 =( 2 years 4 months 11 days) in one cell
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
you get the days when you subtract dates, but make sure your cells are formatted as dates prior and the cell with the formula is formatted as general.
you can also use a REALLY old function from lotus thats =datedif(B1,A1,"Y") to get things like the difference in years, etc note that this method isn't always accurate

to combine it in the format you would have to have a rather complicated formula
you can calculate years and months rather easily, but getting days is hard because of 29 through 31 and also leap years.
heres a more accurate article

 
Upvote 0
Try this

Rich (BB code):
=TEXT(A1, "dd/mm/yyyy") & " - " & TEXT(A2, "dd/mm/yyyy") & " = (" & DATEDIF(A1,A2,"y") & " years, " & DATEDIF(A1,A2,"ym") & " months, " & DATEDIF(A1,A2,"md") & " days)"
 
Upvote 0
In a new cell, type in =DATEDIF(A1,B1,”Y”). The “Y” signifies that you'd like the information reported in years. This will give you the number of years between the two dates. To find the number of months or days between two dates, type into a new cell: =DATEDIF(A1,B1,”M”) for months or =DATEDIF(A1,B1,”D”) for days.
 
Upvote 0
I am working with mac, in that i am not able to find dateif function
 
Upvote 0
Thq @mikerickson close but not accurate.. Check this

Ex: 13/01/20 - 29/01/18 it is showing 1 year 12 months and 14 days... Where as it should show 11 months
 
Upvote 0
Between Jan 29, 2018 and Jan 13, 2020 there is 1 year, 11 months and 17 days.

And yes, my formula doesn't work, for a variety of reasons, mostly because the date represented by 0 is in month 1 not month 0.

But also the system of counting time intervals in months, is inconsistent due to the lengths of months differing.

Yep, my formula doesn't work.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,178
Members
452,615
Latest member
bogeys2birdies

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