+ Reply to Thread
Results 1 to 12 of 12

Lock fields until one field has been filled in

  1. #1
    Registered User
    Join Date
    07-14-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Lock fields until one field has been filled in

    Hi

    I'm unsure if there is a solution to this. I've created a few fields basically for the workshop foreman to fill in, however, he keeps missing out on filling out one crucial field of steel heat numbers.

    Is there a way of "locking" the fields until he fills in the correct heat number first? So if let's say he fills in the "heat number" fields, then all other fields are automatically unlocked.

    Regards

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

    Re: Lock fields until one field has been filled in

    Try using Data Validation With Custom Formula. If you post a sample workbook then you will get exact solution.


    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

  3. #3
    Registered User
    Join Date
    07-14-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Lock fields until one field has been filled in

    Hi

    Please find attached sample spreadsheet. They need to fill in Cell K3 first and then after that they can fill in other cells in that row in any order they want. I believe that Cell K3 is important to be filled out first.

    Regards
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Lock fields until one field has been filled in

    ryback,

    Please see attached. There is a custom formula in DV:

    Please Login or Register  to view this content.
    in cells D-J & L-M in Row 3, which prevent data entry to those cells while K3 is blank. If I may, I would suggest (from an end-user point of view) moving that column/column header nearer to the left, even to Column D, so your end-users are not having to tab/mouse over to K, then back to D to fill in the rest of the info.

    Anyway, I hope this helps.


    Off-topic - '72 wasn't a bad year, eh?!
    Attached Files Attached Files
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  5. #5
    Registered User
    Join Date
    07-14-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Lock fields until one field has been filled in

    Hi Brendan

    Thanks for that, I'll take your advise on moving the Heat number column near to it.

    By the way, how did you manage to Code it, as I wish to apply this further to my spreadsheets in future.

    1972 was definitely a great year, unlike today! but still you have to thank todays technology!

    Regards

    Ben (ryback).

  6. #6
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Lock fields until one field has been filled in

    Hey Ben,

    Sorry, I didn't notice that you were using Excel 2003, and it been a while..... I presume there's a Data Validation (DV) button/icon there somewhere, probably in the Data tab/dropdown? Actually, I just googled it, and yes, there's a Validation option within the Data dropdown So in the "settings" tab, under "Allow", select "Custom" - this allows you to input a custom formula in the "Formula" field.

    Try it yourself - in your file, select/highlinght D4:J4, -> Data -> Validation -> Allow Custom -> UNCHECK THE "Ignore blank" CHECKBOX -> type/paste:

    Please Login or Register  to view this content.
    in the formula field -> Ok. You should now not be able to type anything in D4:J4 unless there's an entry in K4. And you can of course change the error alert to one of your own choosing ("I told you not to leave K4 blank!!!)

    Hope this helps.
    Last edited by BB1972; 11-15-2012 at 08:52 PM. Reason: Messed up the formula!

  7. #7
    Registered User
    Join Date
    07-14-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Lock fields until one field has been filled in

    Hi Brendan, I haven't updated my profile yet, I'm actually using Excel 2010. I'll try it out.

    Regards

  8. #8
    Registered User
    Join Date
    07-14-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Lock fields until one field has been filled in

    Hi Brendan

    Since I'm using Excel 2010, I've been trying it out, but I still couldn't get it to do what it suppose to do. I must be doing some thing not right.

  9. #9
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Lock fields until one field has been filled in

    Where are you going wrong? What isn't working? I'd imagine that you are not prevented from entering any data into the cells before there's an entry in K4, but for the sake of clarity, let's not make assumptions

  10. #10
    Registered User
    Join Date
    07-14-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Lock fields until one field has been filled in

    Hi Brendan

    See attached...I've moved the SHS Heat # closer, on the left side, and I highlighted the row from Welder ID right to the Wire Batch, then I clicked Data > Data Validation > Custom > Unchecked Ignore Blank > set the data to =D3<>"" and put in my comments. but it didnt work...it only worked when I typed in under UT report#, then the notification start....but Welder ID, Date Started can still be entered.
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Lock fields until one field has been filled in

    Not sure if you had saved your work, but there was no validation applied to E3:S3, although from what you've described, you followed the correct stops. I've applied the DV to E3:S3 (one the "1 x CrossBeam" tab) - make sure this is working for you, and see if you can apply the same to E4:S4.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    07-14-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Lock fields until one field has been filled in

    Hi Brendan, hope you had a great weekend. Thanks for the worksheet, and it works perfectly well. Applied it during the weekend, so see how we go with the Supervisor's temper! hah!

+ 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