+ Reply to Thread
Results 1 to 7 of 7

Current year in cell not 1900!!

  1. #1
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Current year in cell not 1900!!

    I've conditioned formated some cells so that someone can type a number in and a date will appear in the cell.

    Problem is if someone types 20 in the cell.. excel reverts back to Jan-20-1900

    How can I get the current month and year when a number is typed in the cell?

    Did excel exsist in the 1900?

    SOLVED
    Solution - I used the if command in A2 like this
    Please Login or Register  to view this content.
    This was kind of a noob way of doing it but hey... I'm not real smart..
    Last edited by Tortus; 01-16-2009 at 12:32 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Excel dates comprise a whole number and a decimal. The whole number is the days elapsed since 0 Jan 1900, and the decimal is the time. So 20 is 20 Jan 1900, which you could format in a variety of ways.

    If you don't want it to look like a date, don't format it as a date.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417
    sigh... I wanted to be able to enter a number and get the date with the correct year.

    How do you do the any command with IF? So I could spilt the date between 2 cells! Like
    Please Login or Register  to view this content.
    So what I am tring to do here is put this formula in A2 and if A1 has anything in it.. 2009 will show in A2. Not sure If I did the IF command right...??

  4. #4
    Registered User
    Join Date
    12-15-2008
    Location
    Singapore
    Posts
    38
    Your formula looks alright. How do you condition format the cells? What do you want to see when somebody enter 1, 10, 100?

  5. #5
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417
    Only conditional formating used is if the cell is blank I use no color. If the number in one cell is greater I change it to red and if it is less than the number I use green.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    This thread is marked solved. Did you do that, is it?

    If not, please restate your question clearly.

  7. #7
    Registered User
    Join Date
    12-15-2008
    Location
    Singapore
    Posts
    38
    Tortus typed SOLVED in the first message. I supposed it is solved by himself already.

+ 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