+ Reply to Thread
Results 1 to 2 of 2

Restricting Users to make enrty depending on two columns.

  1. #1
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Restricting Users to make enrty depending on two columns.

    COL A and B has some blank and non blank rows . User are allowed to choose either from COL A or COL B by typing A or B in COL C provided that the cells in corresponding COL are non empty if they are empty restrict user and display msgbox . Sample excel file is attached . (I am not sure if this can be done without VBA )
    Attached Files Attached Files
    Last edited by thebeastslayer; 03-06-2020 at 11:30 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Restricting Users to make enrty depending on two columns.

    Use the Data Validation feature

    Select C2:C15

    Select from the menu: Data\ Data Validation
    Allow: Custom
    Formula: =OR(AND(A2<>"",C2="A"),AND(B2<>"",C2="B"), C2="")
    Uncheck Ignore Blanks
    Error Alert tab:
    Title: Invalid Entry
    Message: Type in 'A' if there is a Main Bank Account, or 'B' if there is an Alternate Bank Account.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. Restricting access to some users of an Excel workbook
    By djanders in forum Excel General
    Replies: 0
    Last Post: 05-07-2019, 01:44 PM
  2. [SOLVED] Count enrty in column A show results
    By engie-123 in forum Excel General
    Replies: 4
    Last Post: 08-14-2016, 03:14 PM
  3. [SOLVED] formatting to Proper Case for text box enrty on user form
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-21-2015, 06:41 PM
  4. Need Help Please In restricting access to users in Access 2010
    By Sharath_rk in forum Access Tables & Databases
    Replies: 5
    Last Post: 02-01-2013, 09:05 AM
  5. Restricting Users AutoFilter
    By dreicer_Jarr in forum Excel General
    Replies: 0
    Last Post: 10-12-2010, 12:25 PM
  6. Restricting the number of cells users can input data to
    By LittleEm in forum Excel General
    Replies: 7
    Last Post: 11-30-2006, 05:11 AM
  7. Screen Prompt Data Enrty Requirement
    By Ant_Sky in forum Excel General
    Replies: 0
    Last Post: 07-25-2005, 11:23 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