A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Finding the current year



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2009, 07:30 PM posted to microsoft.public.excel.worksheet.functions
BrittaniMV
external usenet poster
 
Posts: 6
Default Finding the current year

I am trying to determine the current year at a given date.

For example, if my beginning date is 1/1/2000, as of 12/31/2002 this date in
time would be in the 3rd year so i would want the number 3 to display. 1/1/03
would be in the 4th year.

Can someone help me find a way to calculate this?
  #2  
Old May 15th, 2009, 07:33 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Finding the current year

A1 = 1/1/2000
B1 = 12/31/2002
C1 = YEAR(B1)-YEAR(A1)+1

If this post helps click Yes
---------------
Jacob Skaria


"BrittaniMV" wrote:

I am trying to determine the current year at a given date.

For example, if my beginning date is 1/1/2000, as of 12/31/2002 this date in
time would be in the 3rd year so i would want the number 3 to display. 1/1/03
would be in the 4th year.

Can someone help me find a way to calculate this?

  #3  
Old May 15th, 2009, 07:34 PM posted to microsoft.public.excel.worksheet.functions
Bernard Liengme[_2_]
external usenet poster
 
Posts: 1,027
Default Finding the current year

If I understand the question: =YEAR(TODAY())-2000
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"BrittaniMV" wrote in message
...
I am trying to determine the current year at a given date.

For example, if my beginning date is 1/1/2000, as of 12/31/2002 this date
in
time would be in the 3rd year so i would want the number 3 to display.
1/1/03
would be in the 4th year.

Can someone help me find a way to calculate this?



  #4  
Old May 15th, 2009, 07:35 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Finding the current year

OR use

=DATEDIF(A1,B1,"y")

If this post helps click Yes
---------------
Jacob Skaria


"BrittaniMV" wrote:

I am trying to determine the current year at a given date.

For example, if my beginning date is 1/1/2000, as of 12/31/2002 this date in
time would be in the 3rd year so i would want the number 3 to display. 1/1/03
would be in the 4th year.

Can someone help me find a way to calculate this?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:17 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.