+ Reply to Thread
Results 1 to 2 of 2

Hide/unhide columns based on the drop down list value

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    Atyrau
    MS-Off Ver
    Excel 2007
    Posts
    1

    Question Hide/unhide columns based on the drop down list value

    Hi,
    Need help.
    Using Excel 2007 would like to create a worksheet that will hide/unhide certain columns based on the text selected in a drop down list.

    The purpose of the document is track company personnel individual trainings.

    Employees holding different positions need different trainings. That’s why I’d like to create a spreadsheet that will help a user to choose what training is required for a person holding a certain position.

    For example, I have 25 employees and 6 positions in a company. Positions are: A, B, C, D, E and F.

    Each position has specific training requirement. Let’s say there are 7 trainings: tr1, tr2, tr3, tr4, tr5, tr6, tr7.

    Employees holding position ‘A’ need to be trained on tr1, tr4 and tr5
    Employees holding position ‘B’ need to be trained on tr1, tr2 and tr6
    Employees holding position ‘C’ need to be trained on tr2, tr5 and tr7
    And so on.

    So, what I’d like to do is when position is selected in a drop down list, required trainings will appear and unnecessary ones hide.

    Sample spreadsheet attached.

    Following scenario:

    Column A – Employee name
    Column B – (drop down list) – position of employee
    Columns C to W – are trainings. Each training 3 columns.

    If position selected from drop down list, let's say position 'B' then unhide - tr1, tr2, tr6; hide - tr3, tr4, tr5. tr7 ... the same scenario for other positions.

    The form is there but i do not know how to make it work.
    Please help.

    Thank you very much in advance,

    Vagif
    Attached Files Attached Files

  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: Hide/unhide columns based on the drop down list value

    Your design does not allow you to accomplish your task. You cannot hide the columns for tr2 and tr3 when A is selected because OTHER rows further down have B or C selected and would need those physical columns to be visible. OK?

    So, no hiding of columns.

    However, based on the choices made in column B the titles of the trainings available on that row could be customized. I've created a complete skills table down below with your job list to list the skills that go with each job. Then the table above has simple VLOOKUP formulas to make those skills appear on each row based on the column B selection.
    Attached Files Attached Files
    _________________
    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!)

+ 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