PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Charting Formatting dates by year

Reply

Formatting dates by year

 
Thread Tools Rate Thread
Old 09-02-2004, 06:12 AM   #1
DKD
Guest
 
Posts: n/a
Default Formatting dates by year


I would like to know if there is a way to format dates so
that they are formatted by year only. For example, if I
click on Format -> Cells, there are a bunch of options,
but none of them list to show the year only, just
mm/dd/yy or mm/yy, etc. I am trying to create a chart so
that only the year shows up. Thanks.
  Reply With Quote
Old 09-02-2004, 08:37 AM   #2
Nicky
Guest
 
Posts: n/a
Default Re: Formatting dates by year

HI

try clicking

format
cells
custom
then in the 'type' box, enter
yyy

--
Message posted from http://www.ExcelForum.com

  Reply With Quote
Old 09-02-2004, 01:05 PM   #3
DKD
Guest
 
Posts: n/a
Default Re: Formatting dates by year

Hi, I have tried this, but what it does is give one
specific year (ie. 1905) for all the years I have
entered. I want to just keep my values.

Any suggestions? Many thanks.


>-----Original Message-----
>HI
>
>try clicking
>
>format
>cells
>custom
>then in the 'type' box, enter
>yyyy
>
>
>---
>Message posted from http://www.ExcelForum.com/
>
>.
>

  Reply With Quote
Old 09-02-2004, 03:46 PM   #4
DKD
Guest
 
Posts: n/a
Default Re: Formatting dates by year

I tried this, but the years then show up as only one year
(i.e. 1905) for all the values. I want to keep my values.

Any help is greatly appreciated!

>-----Original Message-----
>HI
>
>try clicking
>
>format
>cells
>custom
>then in the 'type' box, enter
>yyyy
>
>
>---
>Message posted from http://www.ExcelForum.com/
>
>.
>

  Reply With Quote
Old 09-02-2004, 04:17 PM   #5
Jon Peltier
Guest
 
Posts: n/a
Default Re: Formatting dates by year

If you enter (for example) 1999 in a cell, then format the cell as YYYY,
Excel thinks that your cell (1999) is the 1999th day since Excel's
calendar started on 1/1/1900. So 1999 is 21-June-1905. The numbers 1828
to 2192 would appear as 1905 if formatted YYYY.

Either just keep using the years as whole numbers, or change the cells
so they hold actual dates, like Jan 1 1999.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

DKD wrote:

> Hi, I have tried this, but what it does is give one
> specific year (ie. 1905) for all the years I have
> entered. I want to just keep my values.
>
> Any suggestions? Many thanks.
>
>
>
>>-----Original Message-----
>>HI
>>
>>try clicking
>>
>>format
>>cells
>>custom
>>then in the 'type' box, enter
>>yyyy
>>
>>
>>---
>>Message posted from http://www.ExcelForum.com/
>>
>>.
>>


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off