+ Reply to Thread
Results 1 to 7 of 7

Problem by entering date in excel

  1. #1
    Registered User
    Join Date
    08-20-2015
    Location
    brasov
    MS-Off Ver
    office 2010
    Posts
    3

    Problem by entering date in excel

    Hello,

    I have a problem, I have a table in excel with different dates like 10.08.2015. My question, is any solution for example when I enter a wrong date like 33.08.2015, the system should recognize that it is a wrong date, and if it can change it automatically in 02.09.2015 which is 31.08.2015 ast date of the mounth + 2 days .

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Problem by entering date in excel

    I don't think you can do this in the same cell (maybe with VBA - but that's not for me), but you can - in an adjoining cell. Does this do what you want (assumes "date" is in A1)? There will be nicer (shorter) ways to achieve this, though. We'll see !!

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-20-2015
    Location
    brasov
    MS-Off Ver
    office 2010
    Posts
    3

    Re: Problem by entering date in excel

    hy glenn the info is correct but the problem is that I wanted to appear in the same column so if I write in cell 36.08.2015 the system should not show 36.08.2015 it should show 05.09.2015. you understand?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Problem by entering date in excel

    If you re-read the first sentence of my post - I did understand. I don't think that it can be done without VBA.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Problem by entering date in excel

    Shorter formula, assuming that the day is always two digits:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    However, as Glenn says, you can't correct the value in the cell without VBA

    You could, maybe use Data Validation to force a valid date to be input in the first place which would be more sensible, IMO.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Registered User
    Join Date
    08-20-2015
    Location
    brasov
    MS-Off Ver
    office 2010
    Posts
    3

    Re: Problem by entering date in excel

    thanks , very nice from you, problem solved

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Problem by entering date in excel

    You're welcome. Thanks for the rep.


    What solution did you go for? The Data Validation route?


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem in entering large time values in Excel 2003
    By kmahesh in forum Excel General
    Replies: 1
    Last Post: 05-07-2015, 08:58 AM
  2. please help me in entering a fixed date in my excel
    By rashmimhiremath in forum Excel General
    Replies: 2
    Last Post: 05-29-2014, 12:34 AM
  3. Replies: 1
    Last Post: 05-13-2014, 09:50 PM
  4. Replies: 1
    Last Post: 03-20-2014, 09:48 AM
  5. I am entering date in Excel when I hit enter a formula appears?
    By Sun Devil in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-24-2006, 04:00 PM
  6. [SOLVED] Entering Todays date in an excel spreadseet
    By David in forum Excel General
    Replies: 2
    Last Post: 06-11-2005, 03:05 PM
  7. Replies: 7
    Last Post: 01-06-2005, 12:36 PM

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