+ Reply to Thread
Results 1 to 7 of 7

Select multiple rows depending on value of A1

  1. #1
    Registered User
    Join Date
    03-23-2014
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Select multiple rows depending on value of A1

    Hi everyone
    Sorry for sounding a little too green behind the ears
    I have a spreadsheet with employees and data listed. The drop-down in A1 lets someone select the employee and then it hides the rows for all other employees. I want to add the names of supervisors in the drop-down of A1 and have it select only the employees under that supervisor and hide the rest. The number of employees under each supervisor ranges from 3 to 6. This is what I have to hide the rows when selecting a single employee :
    Please Login or Register  to view this content.
    My workbook has stats data on the "Master" sheet(sheet #1) and analysts and supervisors on "Analysts" sheet(sheet #12). Data validation for cell A1 on "Master" sheet has all the analysts and supervisors in the first column of "Analysts" sheet with title "Select Analyst" in cell A1. I modified the "Analysts" sheet to show supervisors from B1:I1 and listed the analysts in the appropriate columns below them. Not sure how to make it select the analysts when someone selects the supervisor on "Master" sheet
    Last edited by Leith Ross; 03-23-2014 at 07:19 PM. Reason: Added Code Tags

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Select multiple rows depending on value of A1

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    03-23-2014
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Select multiple rows depending on value of A1

    stats_clean.xlsm

    Attached is a sample of the workbook. On sheet "Master", if you select an analyst (ana1, ana32, etc)it hides all rows of stats except that analyst. The second worksheet has the anaylsts grouped under their respective supervisor. I want to be able to select a supervisor (super1, super2, etc) on "Master" sheet in A1 and have it hide all the rows except the analysts listed under that supervisor on worksheet 2

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Select multiple rows depending on value of A1

    Reconsidering - I'll post again here later.
    Last edited by xladept; 03-27-2014 at 02:11 PM.

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Select multiple rows depending on value of A1

    Hi Rick,

    It didn't work until I used the Trim - try it:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-23-2014
    Location
    Ottawa, Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Select multiple rows depending on value of A1

    This is great. Had to tweak it a little bit to match my actual workbook but it works perfectly. I even brought it over to another monthly report and was able to get it working there also Wanted to add some reputation but the board said I couldn't give you any more until I gave someone else some lol

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Select multiple rows depending on value of A1

    Hi Rick,

    You're welcome! (The reason I mentioned the Trim is because it means that you've got leading or trailing blanks in your data fields.)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Summing up and averaging multiple rows depending on week or month
    By Roxner in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 10-10-2013, 09:08 AM
  2. VBA Macro to hide rows depending on the cell value - Can I do this multiple times?
    By Ndocksey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2013, 09:00 AM
  3. [SOLVED] Insert multiple rows depending on cell value
    By AR-51 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-03-2013, 04:18 AM
  4. Select rows depending on selection
    By Irprogram in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2008, 04:12 AM
  5. Replies: 1
    Last Post: 04-23-2007, 04:23 PM

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