+ Reply to Thread
Results 1 to 10 of 10

Google Sheets: allow data entry only against current date (not past or future) dates

  1. #1
    Registered User
    Join Date
    01-06-2018
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    41

    Google Sheets: allow data entry only against current date (not past or future) dates

    Dear Forum members,

    In the attached file i have a column with dates and employee needs to input KM (distance travelled) in corresponding cells. How to prevent the employee from entering data for any past date or any future dates. That means the employee should be able to enter data for the current date only. The file will be shared through Google drive for all employees to access.

    Regards
    Arnab Bhattacharjee
    Attached Files Attached Files
    Last edited by AliGW; 09-21-2021 at 02:40 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,984

    Re: How to allow data entry only against current date and restrict for past or future date

    Data validation

    allow: Date

    Set both dates: =Today()

    and are you still using Excel 2007? Please update profile with your current version.
    Last edited by JohnTopley; 09-20-2021 at 07:10 AM.

  3. #3
    Registered User
    Join Date
    01-06-2018
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    41

    Re: How to allow data entry only against current date and restrict for past or future date

    That's not in sync with the format I shared. Employee will require to enter KM (In) and KM (Out) against actual date. I wish to restrict them from entering KM against past date or future date. So if today is 21st Sept the employee should be able to enter data only against the date (21st Sept) and not in any other row or column.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,306

    Re: Google Sheets: allow data entry only against current date or future dates

    Firstly, you posted in the Excel section - I've moved you to the Other Platforms section, as this is a Google Sheets query.

    Secondly, I realise that English may not be your first language, but 'please' and 'thank you' are universal courtesies.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,984

    Re: How to allow data entry only against current date and restrict for past or future date

    For KM entries

    DV

    =$B7=TODAY()

    BUT you need column B to be Excel dates (01/10/2021 etc) NOT text values

  6. #6
    Registered User
    Join Date
    01-06-2018
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    41

    Re: Google Sheets: allow data entry only against current date or future dates

    Hi,
    Thanks for moving my thread to the rightful section that matches my requirements.
    Secondly, thanks again for reminding me the basic courtesies which I missed out on my previous post albeit the same was missing in your response too.
    Thanks.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,306

    Re: Google Sheets: allow data entry only against current date (not past or future) dates

    the same was missing in your response too
    I am not the one asking for help here, and my post was an instruction, not a request. Mind your manners.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,306

    Re: Google Sheets: allow data entry only against current date (not past or future) dates

    Have you tried the suggestion in post #5? Let us know if you still need help with this.

  9. #9
    Registered User
    Join Date
    01-06-2018
    Location
    Bahrain
    MS-Off Ver
    Office 365
    Posts
    41

    Re: How to allow data entry only against current date and restrict for past or future date

    Hi John,

    Thanks for guiding me on this. It solved my purpose.

    Regards
    Arnab

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,306

    Re: Google Sheets: allow data entry only against current date (not past or future) dates

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Google Sheets Master Sheet that pulls in data from other sheets with the last edit date
    By Badvgood in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 12-19-2020, 12:04 PM
  2. Google Sheets: Looking up next/earliest due date but excluding past dates
    By Fluffybunny in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 09-20-2019, 03:56 AM
  3. Find the nearest date in a range of dates formula (Google sheets)
    By kaytoc in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 10-20-2017, 05:20 PM
  4. [SOLVED] Restrict Entry into excel for dates more than 2 weeks in future
    By xxxyyyy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-03-2016, 12:29 AM
  5. [SOLVED] Need a way to automaticaly fill in Friday dates from prior month from current date entry
    By uniqbboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2014, 11:11 AM
  6. Replies: 4
    Last Post: 01-15-2014, 10:26 AM
  7. [SOLVED] [SOLVED] Calculating days between current date and a date in future NETWORKDAYS() fun
    By Faheem Khan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2005, 04:06 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