Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default user to input date as "yyyy" in cell

I have a time series chart feeding off user input data. The data and chart
are dates (eg: 01/01/2007 00:00:00) displayed as years (eg: 2007). I need
the chart x-axis to remain as a time series.
The user perceives that the cell contains "2007".
Is there a way to enter just "2007" (4 characters only) and obtain a
date/time for the year 2007 in a cell?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default user to input date as "yyyy" in cell


The chart will use the same format as the cells it is referencing. so
if you change the format of the cells where the dats are located the x
axis on the chart ill also change. Now if you need to have the cells in
one format and the chart in another format then you have to create a new
table on the worksheet and have the chart refere to the new table. You
caqn have the old table and new table linked by making the new table a
formula.


If your old table is A1:D10 then make a new table at G1:J10 and put the
formula =A1 at G1. Then copy the formula to G1:J10 and have then format
the two tables so one shows the entire date and the 2nd just the year.


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=182104

Microsoft Office Help

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
Excel VBA to convert "dd.MM.yy" text to "dd/MM/yyyy" format date? Paul J[_2_] Excel Programming 4 July 11th 07 11:32 AM
Convert text "date" (DDMMMYY) to datetime value of YYYY-MM-DD - ho j.a. harriman Excel Discussion (Misc queries) 7 March 29th 07 01:20 AM
Using "dd/mm/yyyy h:mm" on Date Variables ExcelMonkey Excel Programming 1 February 23rd 06 01:28 PM
Option Explicit and Date Format "dd mmm yyyy"? Rob van Gelder[_4_] Excel Programming 11 November 10th 04 10:13 PM
How To: Use Cell("Format") to return MMMM YYYY instead of D3 Kevin McCartney[_2_] Excel Programming 8 May 19th 04 01:34 AM


All times are GMT +1. The time now is 08:45 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"