+ Reply to Thread
Results 1 to 6 of 6

Excel 2003 - Creating Named ranges for a validation list box using a case statement

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    Derbyshire
    MS-Off Ver
    Excel 2003
    Posts
    46

    Excel 2003 - Creating Named ranges for a validation list box using a case statement

    In the NewPosts worksheet I have the following information
    AACleaner
    AACleaner2
    AACleaner3
    BBTeacher1
    BBTeacher2
    BBTeacher3
    CCAssistant1
    CCAssistant2
    CCAssistant3

    And I have 3 categories (Named Ranges) JobFamilyAA, JobFamilyBB and JobFamilyCC

    To do the named range I have highlighted a section. Entered the Name range at the top and then pressed enter to commit this range.

    In sheet 1 I have the following.

    A B C D
    Name Post Job_Family_desc NewPost
    Sam Smith Cleaner Relief AA
    Sara Smith Teaching 3 BB
    Jim Brown Care Assistant 1 CC

    And I need to create a drop down list for Column D based on the ranges in NewPosts.


    So Go to D2. If C2 Job_Family_Desc = “AA” Then use Range JobFamilyAA as validation list
    If C2 Job_Family_Desc = “BB” then use Range JobFamilyBB as validation list

    If C2 Job_Family_Desc = “CC’ Then use Range JobFamilyCC as validation list

    If C2 Job_Family_Desc = “” Then End (Come out or this condition and got to the next bit of the macro)

    Then Go to Next one down D3 and repeat until C2 is Empty

    Im currently trying lots of things to get this working but if anyone had any tips that would be great

    Debbie

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excel 2003 - Creating Named ranges for a validation list box using a case statement

    Hi,,

    It might need a macro but upload your workbook and note in column D which list you expect to see.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-08-2013
    Location
    Derbyshire
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Excel 2003 - Creating Named ranges for a validation list box using a case statement

    Ill definitely be using a macro.

    I recorder one that creates a validation for every row so you do one, Check the validation, Set the List box accordingly and move onto the next row. Repeat until you are finished

    WorksheetTo_Test_Validation_From_Multiple_Ranges.xls

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Excel 2003 - Creating Named ranges for a validation list box using a case statement

    Pl See the attached file.

  5. #5
    Registered User
    Join Date
    03-08-2013
    Location
    Derbyshire
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Excel 2003 - Creating Named ranges for a validation list box using a case statement

    Hiya,

    Im not sure what you have done but it looks to have worked.

    Could you possibly pop in a description of what to do with the info supplied?

    Debbie

  6. #6
    Registered User
    Join Date
    03-08-2013
    Location
    Derbyshire
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Excel 2003 - Creating Named ranges for a validation list box using a case statement

    I think Ive cracked it!!!

    Please Login or Register  to view this content.
    Last edited by DebbieEdwards; 04-17-2013 at 10:43 AM. Reason: I hadnt added the Code sections

+ 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