+ Reply to Thread
Results 1 to 8 of 8

Restrict cell input until another cell is populated

  1. #1
    Registered User
    Join Date
    09-22-2008
    Location
    markham
    Posts
    52

    Restrict cell input until another cell is populated

    Hi,

    I would like to restrict the user's ability to input data in cell B1 until cell A1 is populated with a number. How is this done?

    The formula I found elsewhere on this forum, =AND(A2<>0,A2<>""), as applied in Data Validation, didn't work, nor do I understand how it is suppose to work.

    Thank you for your help.

    Brandy
    Last edited by Brandy; 04-13-2010 at 11:33 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Restrict cell input until another cell is populated

    In Data Validation > Custom
    =AND(A1<>0,A1<>"")
    and unclick "Ignore Blank"
    the formula states that allow an entry only if A1 is not 0 and is not blank (""). Does that help?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    09-22-2008
    Location
    markham
    Posts
    52

    Re: Restrict cell input until another cell is populated

    Disco!

    Thanks ChemistB. It's always nice to have an explanation of the logic too.

  4. #4
    Registered User
    Join Date
    09-22-2008
    Location
    markham
    Posts
    52

    Re: Restrict cell input until another cell is populated

    If possible, I would like to place another limitation on inputting data on this cell.

    Can I also provide a list of choices to select from as well as ensuring cell A1 is populated first? Or is it an either/or situation with data validation - custom or list, but not both?

    Thank you.

    Brandy

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Restrict cell input until another cell is populated

    It might be possible using VBA (Visual Basic for Applications) but, you are right, you couldn't do both using Data Validation. Sorry

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Restrict cell input until another cell is populated

    You could use formula's for a reminder in C1, for example. In B1 do your dropdown list. In C1
    =IF(AND(OR(A1=0,A1=""),B1<>""),"PLEASE ENTER A VALUE IN A1 BEFORE CONTINUING","")

  7. #7
    Registered User
    Join Date
    09-22-2008
    Location
    markham
    Posts
    52

    Re: Restrict cell input until another cell is populated

    Thank you for your help ChemistB

  8. #8
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,215

    Re: Restrict cell input until another cell is populated

    Dear Moderators, By Mistake posting. Plz ignore.
    Last edited by avk; 04-14-2017 at 02:06 AM. Reason: By Mistake posting

+ 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