Years difference between two years

falcios

Active Member
Joined
Aug 30, 2006
Messages
279
Office Version
  1. 2019
Platform
  1. Windows
I can't seem to find this information anywhere.

I have for example the following years
2000
2001
2002
2003
2004
2005

I would like to know the difference from today's year to the previous years..

How can I do this?

Thanks in advance.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
You might need to give a bit more of an example of what you are trying to achieve.
My initial reaction would be that it sound like a datedif function application.

MS DATEDIF function

Book2
ABCDE
1Start DateEnd DateYearsMonths
21/03/20206/06/2021115
3
Sheet1
Cell Formulas
RangeFormula
C2C2=DATEDIF($A2,$B2,"y")
D2D2=DATEDIF($A2,$B2,"m")
 
Upvote 0
I would like to know the number of years that have passed for example between today's year-2021 and 2000.
I only have years in the cells not full dates.
 
Upvote 0
I have to be missing something that would just be =A2-A1 where A2 = 2021 and A1 = 2020.
 
Upvote 0
I don't have the current year' in a column, only past years. I put 2021 in G1 and the formula I used is =$G$1-B2. and it works.
How would you input today's year-2021 in the formula without reference to another cell -$G$1.
 
Upvote 0
Thanks so much CA_Punit it worked great. The formula I used =YEAR(TODAY())-B2.
.
 
Upvote 0

Forum statistics

Threads
1,215,032
Messages
6,122,770
Members
449,095
Latest member
m_smith_solihull

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