+ Reply to Thread
Results 1 to 8 of 8

Date/year problem

  1. #1
    Registered User
    Join Date
    11-16-2006
    Posts
    12

    Date/year problem

    Hi,

    There's probably a simple answer to this question...

    When I type in the date in a cell without the year, eg. 20/11, it automatically adds /2006 in the formula bar,

    Is there a way I can stop it doing this, as I want to have columns with different years?

    Thanks

  2. #2
    Registered User
    Join Date
    11-17-2006
    Posts
    34

    Hey

    Hi,

    just highlight the cells or the column and right click. Select Format Cells. Under category select date and under type, select the desired format you want it in.

    ResulG

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    No unless you change the cell format to text or you use the ' as the 1st charater entered - this forces Excel to accept the entry as text

    The only other way is to add the year as well when you enter the date

  4. #4
    Registered User
    Join Date
    11-16-2006
    Posts
    12
    Thanks, but thats not quite what I am looking for because I want to be able to graph the data. I want column A to have a list of dates in order, i.e. 01/01, 02/01, etc to 31/12. Then column B=2004, column C=2005, column D=2006.
    But because Excel thinks the dates in column A are 2006 it will be impossible to have the data in a graph and have 3 lines to represent the 3 years.
    Any ideas?
    Thanks.

  5. #5
    Registered User
    Join Date
    11-16-2006
    Posts
    12
    Ok, it seems it doesn't actually matter that Excel recognises column A as 2006, I thought it would!
    Thanks anyway!

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Tim_J
    Ok, it seems it doesn't actually matter that Excel recognises column A as 2006, I thought it would!
    Thanks anyway!
    Tim,

    If you hit the graph problem of dates (where the graph decides to do a 'daily' on the Axis), you can use a 'Text' date where the
    =Text(A1,"dd/mm")
    is used as the chart Axis labels.

    hth
    ---
    Last edited by Bryan Hessey; 11-20-2006 at 07:34 AM.
    Si fractum non sit, noli id reficere.

  7. #7
    Registered User
    Join Date
    11-16-2006
    Posts
    12
    Thanks Bryan.

    I have another question. How do I make Excel automatically copy data from one worksheet to another? For example, I have my main sheet of data and I also have a summary sheet. How can I make Excel automatically copy the data for a particular date from the data sheet and paste it next to the corresponding date on the summary sheet?

    Hope that makes sense.

    Thanks

    Tim

  8. #8
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    Lookup and Reference functions

    Check out the Lookup and Reference functions in Excel.
    In particular HLookup(), VLookup(), Match().

    I would probably use Match() to find the position of the date you want on sheet1, then use Offset() to transfer the data from around that position.

    There are other ways of doing this, this is just the way I would probably use. The precise usage will depend on how your data is arranged etc.

    Mark.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1