+ Reply to Thread
Results 1 to 3 of 3

Prohibit data entry based on adjacent cell

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    Burlington Canada
    MS-Off Ver
    Excel 2003
    Posts
    1

    Prohibit data entry based on adjacent cell

    [SOLVED]
    I have the following formula in cell H2:
    =AND(EXACT(G2,UPPER(G2)),(LEFT(G2)>="A")*(LEFT(G2)<="Z")*(MID(G2,2,1)>="0")*(MID(G2,2,1)<="9")*(MID(G2,3,1)>="A")*(MID(G2,3,1)<="Z")*(MID(G2,4,1)>="0")*(MID(G2,4,1)<="9")*(MID(G2,5,1)>="A")*(MID(G2,5,1)<="Z")*(MID(G2,6,1)>="0")*(MID(G2,6,1)<="9")*(LEN(G2)=6))

    I would like to prohibit data entry in G2 if H2 reads "false" and allow data entry in G2 if H2 reads "true"

    Hope someone can help

    Davemus
    Last edited by davemus; 03-15-2013 at 04:39 AM. Reason: Solved

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Prohibit data entry based on adjacent cell

    Hello davemus,

    Welcome to the Forum.

    Apply Data Validation in Cell G2.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Prohibit data entry based on adjacent cell

    Place the cursor in G2 cell
    Press Alt+D+L
    Settings>>Allow>>Select Custom
    Formula>>Type
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Press Ok>>Check by inputting entry in G2 cell


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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