+ Reply to Thread
Results 1 to 5 of 5

Cell error

  1. #1
    Registered User
    Join Date
    02-24-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Cell error

    Hi all,

    Im no pro at excel but trying to do something on a simple few forms ive created, basically what i would like to do is say if cell A1 is not filled out, the user can not enter data into any further cells that i specify. Lets just say for now cell A1 must be completed before any data can be selected/entered into cell A2.

    Is there any easy way to go about this?

    Thanks

    Fid
    Last edited by fiddles; 02-24-2010 at 10:26 AM. Reason: Solved!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Cell error

    1) Select the cell(s) you want to restrict to only work when cell A1 is filled in

    2) Select Data > Validation > Allow: Custom > Formula: =$A$1<>""

    3) Also uncheck the [ ] Ignore Blanks option

    4) Click on the Error Alert tab and set the message you want

    5) Click OK

    Try it out.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-24-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Cell error

    Thanks a lot for your reply JBeaucaire, say if i had a list validation on some of the cells, how would i go about putting the two together, for example i have a range called yesno. I have tried wrapping it inside each other to no effect and tried a couple of other things, if i find a solution sill post and solve this thread

    Thanks again!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Cell error

    As for Data Validation, you get one per cell. But you can adjust your DV in the cell with the drop down to include it all in one.

    1) Instead of manually putting the YES,NO list in the DV, put YES in Z1 and NO in Z2.
    2) Highlight Z1:Z2 and use the Name Box to name those two cells Answers
    3) Change your data validation in that cell to:

    Allow: List > Source: =IF($A$1<>"", Answers)


    If cell A1 is blank, the drop down won't appear. Make sure A1 isn't blank when you're trying to add that DV formula, then you can clear A1.
    Last edited by JBeaucaire; 02-24-2010 at 09:48 AM.

  5. #5
    Registered User
    Join Date
    02-24-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Cell error

    Thanks for the prompt reply, worked a charm; I knew i could do this somehow in validation.

    Thanks a lot for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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