Consulting

Results 1 to 6 of 6

Thread: Validation Of Names Required from given List :confused

  1. #1

    Validation Of Names Required from given List :confused

    Greetings to all

    I am running into big problem

    i tried many alternatives but none of them are helping

    I have two sheets called “Timetable” & “Teachers Name List”

    What I want is any Possible Best Solution which can check and validates names of Teachers into my “Timetable” sheet from “Teachers Name List” sheet

    So that if any one enter wrong spelling of any teachers in “Timetable” sheet, it Prevent from entering it and give error message “Spelling mismatch from Teachers Name List sheet”

    Excel file & Image are attached

    Teachers name Validation Sample.jpg

    Time table high school.xls

    And good Help from any one will be highly appreciated

    Many thanks

  2. #2
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    hi.

    what you need is data validation.

    below is a good tutorial with files and videos.

    http://www.contextures.com/tiptech.html#Go_D

    and before the tutorial, you shuld consider redesigning your spreadsheet. start redesign with avoiding merged cells.
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

  3. #3
    I know it is only possible if I can afford not to have merged cell and can enter names in cells.

    but my big problem us I can not afford to have merged

    any other alternate will be highly appreciated

    Many Thanks

  4. #4
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    there are always alternatives to complete a task.


    the table(?) in timetable worksheet has column headers in row 4 and row headers in column A.

    from database point of view, a record (row) contains values from fields (columns).

    the cells in timetable contain 2 or 3 field values: Lesson, Teacher, Class.

    and you want validation for Teacher field only.


    for me, your time table can be called a report but not a table. if you want to keep it, ok.

    if i were assigned a task like this, i would add another worksheet, name it daily_program, design a table in cell A1 whose each cell contains one bit of info, and use the validation here.


    a sample design:

    Column Headers in A1-J1
    Date | Period | Time | Class1 | Class2 | Teacher | Lesson | Sex | Header9 | Header10

    first record in A2-J2
    24/07/2014 | 1st Period | 07:00 to 07:35 | 10th | (East) | Sir William | Math | Both | C.ing | SampleText

    im my design columns B thru I are all validation cells. you can create lists of unique values from these columns as validation lists.

    for example, if i read your table correctly boys and girls can have some lessons separately. so i would add a validation to cells in column H like "Both, Girls, Boys""

    after entering all the records in this new worksheet, prepare your report in Timetable via pivot table, formulas or macro.


    thats what i can recommend at most.


    cheers.
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

  5. #5
    Your Validation Idea via pivot table Sound Good...

    i m sending the link of my Excel file



    Time table high school.xls

    can you please update in my excel file

    Regards

  6. #6
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    i heard nothing about "data validation via pivot table", let alone recommend it.

    for the file you posted, i can't be of any help to you. maybe another member here can help.

    if you want me help you any further, you should upload a file that is designed in a way which i described in post#4.
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •