#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Year Calculation

How can I create a formula to calculate a year based on a date? For
example, I have a cell that includes the following date: 3/1/08. I would
like to create a formula in the adjacent cell that calculates the four digit
year that corresponds with the date: 2008.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Year Calculation

=YEAR(A1)

or

=--TEXT(A1,"yyyy")

or

=A1

and format as yyyy

the last one only changes the display, the first 2 are 4 digit numbers
for the year


Regards,

Peo Sjoblom


AmyBC wrote:
How can I create a formula to calculate a year based on a date? For
example, I have a cell that includes the following date: 3/1/08. I would
like to create a formula in the adjacent cell that calculates the four digit
year that corresponds with the date: 2008.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Year Calculation

In B1 =A1
Format your cell as: yyyy

"AmyBC" wrote:

How can I create a formula to calculate a year based on a date? For
example, I have a cell that includes the following date: 3/1/08. I would
like to create a formula in the adjacent cell that calculates the four digit
year that corresponds with the date: 2008.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 76
Default Year Calculation

Or, if you want the actual value to be 2008, then use =YEAR(A1)

Tony

On Jan 4, 9:20 am, AmyBC wrote:
How can I create a formula to calculate a year based on a date? For
example, I have a cell that includes the following date: 3/1/08. I would
like to create a formula in the adjacent cell that calculates the four digit
year that corresponds with the date: 2008.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
End of Year Dedrie Excel Worksheet Functions 3 April 4th 23 11:25 AM
Ho to Delete "Ghost" Pivot Tables needyourhelp Excel Discussion (Misc queries) 3 November 17th 05 10:10 PM
Calculation Setting in Excel Stuart Bisset Excel Discussion (Misc queries) 0 June 17th 05 09:54 AM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


All times are GMT +1. The time now is 02:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"