Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
aeronaut
 
Posts: n/a
Default Year function does not work

I have the following in cells U6 and V6:

Cell U6 V6
Contents 1/7/1999 =YEAR(U6)

Cell V6 should return 1999, but it returns 6/21/1905 instead.
I thank for your help.

Andras
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

You need to format cell V6 as General not a date. Dates are
stored as the number of days since 0-Jan-1900, and the date
6/21/1905 is 1999 days since 0-Jan-1900.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"aeronaut" wrote in message
...
I have the following in cells U6 and V6:

Cell U6 V6
Contents 1/7/1999 =YEAR(U6)

Cell V6 should return 1999, but it returns 6/21/1905 instead.
I thank for your help.

Andras



  #3   Report Post  
aeronaut
 
Posts: n/a
Default

I thank you. This fixed it.
Andras

"Chip Pearson" wrote:

You need to format cell V6 as General not a date. Dates are
stored as the number of days since 0-Jan-1900, and the date
6/21/1905 is 1999 days since 0-Jan-1900.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"aeronaut" wrote in message
...
I have the following in cells U6 and V6:

Cell U6 V6
Contents 1/7/1999 =YEAR(U6)

Cell V6 should return 1999, but it returns 6/21/1905 instead.
I thank for your help.

Andras




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
The left function does not work when displaying times, how is thi. Nambo27 Excel Worksheet Functions 3 February 25th 05 06:46 PM
How do I protect work sheet against the "Delete" function? Kev Nurse Excel Discussion (Misc queries) 1 February 17th 05 03:01 AM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
Concatenate Function will not work Chuck W Excel Discussion (Misc queries) 4 January 31st 05 11:41 PM
GCD Function doesn't work in some cases GCD_Dilemma Excel Worksheet Functions 5 November 8th 04 08:18 PM


All times are GMT +1. The time now is 08:04 PM.

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

About Us

"It's about Microsoft Excel"