+ Reply to Thread
Results 1 to 5 of 5

Entering only the date displays current date with month & year

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    Kanyakumari, India
    MS-Off Ver
    Excel 2013
    Posts
    15

    Entering only the date displays current date with month & year

    Dear friends,

    I have a column for date in many worksheets formatted as dd/mmm/yy. I know I can use ctrl+; to enter today date like 24-jun-15. I have to enter 23/6 to display 23-jun-15. Is there any settings in excel if I enter only 22 it should display the date with the current month like 22-jun-15 and 17-jun-15 for entering only 17. But now if I enter 22 it displays 22-jan-00. I have to enter bunch of data in month end. So I always need date only for current month. Please provide is there is any solution. Advance thanks

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Entering only the date displays current date with month & year

    This will do what you want, but I used code to make it happen. If you type a valid day number for this month it will do what you want.
    If you type 31, since there are only 30 days this month you will get a message saying invalid number. If you type any invalid number like -1 or 32 or text like ABC you will get a message saying invalid number.
    If you go to a cell next month and change a number it will change to the current month. If you want to install this in your spreadsheet I can help you and give you some instructions to avoid future problems.

    There are a couple of things you need to understand. I'll explain them to you if you are interested in using this code.
    Attached Files Attached Files
    Last edited by skywriter; 06-26-2015 at 03:12 PM.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Entering only the date displays current date with month & year

    If you are still interested I worked out the bugs I was encountering and there's a file in my previous post that you can try out.

    Let me know.

  4. #4
    Registered User
    Join Date
    01-06-2014
    Location
    Kanyakumari, India
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Entering only the date displays current date with month & year

    Dear Skywriter,

    Thanks for your help. I am not much familiar with macros. Is there any native settings in excel to do this without macro?

  5. #5
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Entering only the date displays current date with month & year

    I don't know for sure, but I doubt it.

+ 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. [SOLVED] Count cell only if date matches current month & year
    By SadOfficeWorker in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-14-2016, 02:51 AM
  2. [SOLVED] Lookup for the current month and year value by the today date.
    By thilag in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2014, 03:07 AM
  3. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  4. [SOLVED] Set Default Month and Year in a cell for entering date fields
    By kmahesh in forum Excel General
    Replies: 2
    Last Post: 07-26-2013, 11:17 PM
  5. Replies: 1
    Last Post: 08-13-2012, 11:18 AM

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