+ Reply to Thread
Results 1 to 2 of 2

Force a user to enter text when text is entered into another cell

  1. #1
    Registered User
    Join Date
    01-16-2020
    Location
    Ballarat, Victoria
    MS-Off Ver
    Excel
    Posts
    1

    Force a user to enter text when text is entered into another cell

    Hi all,

    Example:

    If we had a list of students in cell A1 - A20 and the word 'absent' was written into cell B1 - B20 next to the student, how do i make a command/prompt that forces the user to enter the 'reason/text' into cell C1 - C20?

    Thanks

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Force a user to enter text when text is entered into another cell

    Force the user? Can't in terms of moving to the corresponding col C cell and not leaving it until the user enters something. Note that cleverer users would add a single space character, or if you try to be clever and TRIM its contents, just a period. Point: real data validation is rather difficult.

    If you don't want to use VBA, you could use a formula in some blank portion of the screen. Like this (assuming row 24 otherwise blank),

    A24: =IF(SUMPRODUCT((TRIM(B1:B20)="absent")*(LEN(TRIM(C1:C20))<4)),"ABSENCE IN B"&MATCH(1,INDEX((TRIM(B1:B20)="absent")*(LEN(TRIM(C1:C20))<4),0),0)&" without REASON given in column C","")

    Have that centered across several cells and format A24 to show red, boldface text. Whenever a cell in B1:B20 shows absent and the corresponding col C cell contains fewer than 4 characters (modify as you see fit), this warning message will appear. It won't make your users fill in col C, but it'd tell them they need to do so.

+ 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. Force a user to enter a date instead of text
    By Crispy85 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-16-2017, 05:43 AM
  2. Delimited Text To Columns Utlizing a User Form Text Box Can't Manually Enter Data
    By simpdogg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2016, 03:58 PM
  3. [SOLVED] Force Cell to be entered with Quarter hours only, Default Error Text?
    By pjfoster in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-26-2014, 10:42 AM
  4. [SOLVED] Allow user to only enter Text in a cell - no special characters
    By VBA FTW in forum Excel General
    Replies: 3
    Last Post: 12-27-2013, 11:02 AM
  5. When a date entered on a specific cell, automatically enter a text in other cell
    By mmccra2858 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-13-2012, 09:57 AM
  6. Replies: 1
    Last Post: 06-15-2011, 02:36 AM
  7. Replies: 8
    Last Post: 06-20-2008, 08:01 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