G
Guest
I'm trying to figure out how to extract the year (like 2005) from a
date (like 4/21/2005).
I hunted around on the web and found lots and lots of stuff way too
complicated for me to understand, but finally I found one explanation
that made me actually laugh outloud when I read it because even I could
understand it:
"Lets say that cell A1 contains the date July 21, 2004 (entered as
21/7/2004 or 7/21/2004 depending on your date system). You want to
extract the year (i.e. 2004) from that date and put it in cell C1.
Simply enter the formula =YEAR(A1) in cell C1."*
What could be simpler, right?
So, in my worksheet I have a column of dates, column D
And I've created a new column for the years, column A.
So in cell A658 I entered "=YEAR(D658)" [without the quotes, of
course].
Cell D658 already contained the date 02/08/05.
But after I entered the formula in cell A658, instead of displaying the
year 2005 as I had expected, it instead just displays the formula,
exactly as I typed it: =YEAR(D658)
So, what have I missed? I'm guessing it's something so obvious that as
you are reading this you are cracking up laughing at me. But I don't
mind. All I want is to learn where I messed up, even if I have to end
up looking like a perfect fool in the process.
Will in Seattle
a.k.a. "Clueless"
*text quoted from:
http://www.theexceladdict.com/nlarchive/040721rmg.htm#qt
date (like 4/21/2005).
I hunted around on the web and found lots and lots of stuff way too
complicated for me to understand, but finally I found one explanation
that made me actually laugh outloud when I read it because even I could
understand it:
"Lets say that cell A1 contains the date July 21, 2004 (entered as
21/7/2004 or 7/21/2004 depending on your date system). You want to
extract the year (i.e. 2004) from that date and put it in cell C1.
Simply enter the formula =YEAR(A1) in cell C1."*
What could be simpler, right?
So, in my worksheet I have a column of dates, column D
And I've created a new column for the years, column A.
So in cell A658 I entered "=YEAR(D658)" [without the quotes, of
course].
Cell D658 already contained the date 02/08/05.
But after I entered the formula in cell A658, instead of displaying the
year 2005 as I had expected, it instead just displays the formula,
exactly as I typed it: =YEAR(D658)
So, what have I missed? I'm guessing it's something so obvious that as
you are reading this you are cracking up laughing at me. But I don't
mind. All I want is to learn where I messed up, even if I have to end
up looking like a perfect fool in the process.
Will in Seattle
a.k.a. "Clueless"
*text quoted from:
http://www.theexceladdict.com/nlarchive/040721rmg.htm#qt