year formula returning incorrect value

  • Thread starter Thread starter dbdewitt
  • Start date Start date
D

dbdewitt

As I understand it, the YEAR formula should return the year to which the
formula relates. I have a date of 4/24/2008 in a cell (let's say it's in
cell B2), when I enter the formula (let's say in cell A2) "=YEAR(B2)", the
result is 1905 where the result should be 2008. Can someone tell me what I'm
missing?
 
The serial number for this particular date is


39562


if you change the format from date to general what do you get?

For year 1905 the serial number would be between 1828 and 2192


serial number is the number of days since Jan 0 1900 given that Excel AD
starts then (at least for Windows)

--


Regards,


Peo Sjoblom
 
Hi,

=Year(B2) would return 2008 if B2 contained a correctly formatted 2008
date. If it wasn't correctly formatted then I'd expect it to return either
1900 or 1904 depending on which date system you had set in your options. If
it's returning 1905 then that's odd and suggests B2 has a value in the range
of 1828 - 2192 in it, are you sure that's correct and not a typo?

Mike
 
(Found it)...The format of the cell where the formula is (in this case A2),
needs to be something other than a date (i.e. general or number).
 
I guess the date is fine but the cell A2 is been formatted as "yyyy"
for this reason it is giving 1905 instead of 2008.
change to general category ....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top