+ Reply to Thread
Results 1 to 13 of 13

Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    Hi all,

    I'm using Excel 2010 and I have a worksheet where I need to create a drop down menu in a cell. This drop down menu will have a list like: Stand, Transport, F&B Expenses.

    I need to attach a behavior to the drop down menu so that when the user chooses, say, F&B Expenses, then the table just below that drop down menu display only the rows where F&B expenses (located in a specific column) are shown.

    Can someone please point me in the right direction?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    Upload a small sample workbook pls.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    Ok Fotis, here is a sample file.

    In fact, I need the drop down menu to be in cell F2. The list that will be in the drop down will be the items mentioned in the Column F (F18 to F100). If you look into that range, you will notice that we have several cells where, for example, Transport is mentioned. So when the user clicks transport in the Drop Down Menu, I want only rows where "Transport" exist to appear. It would be real nice if some magic could happen to give only the sum for "Transport" at G101 and same thing for Columns J to Column V!!

    I guess I will need an "ALL" item also in the drop down list so that all the rows can again be displayed if the user want it.

    Thanks for your help!


    sample 4.xlsx

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    Hoping that i got your goal, see this.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    Thank you Fotis. Sorry for the not so "small" file!

    You got my goal "partly"...in fact, when the user chooses on of the items in the list, I want the table below to only display the items chosen. For example, if user selects "Sales Tools", the table should display only rows 10,15,16 and 17.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    Quote Originally Posted by zicitron View Post
    Thank you Fotis. Sorry for the not so "small" file!

    . For example, if user selects "Sales Tools", the table should display only rows 10,15,16 and 17.
    ..Of which column...?

  7. #7
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    of all the columns!

  8. #8
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    May I am not clear...let me try again: if the user selects "Accommodation" in the drop drown list, rows having items other than "Accommodation" in Column F disappears!!
    You get the idea?

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    Quote Originally Posted by zicitron View Post
    May I am not clear...let me try again: if the user selects "Accommodation" in the drop drown list, rows having items other than "Accommodation" in Column F disappears!!
    You get the idea?
    Yes. True is that you weren't clear!

    Now i got your idea but unfortunately i think that this can not be done using formulas...Maybe using VBA.

    Good luck.

  10. #10
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    Ah ok! Thanks for your help!

  11. #11
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    Doesn't the Sort button (filter options) on the table's column header provide similar functionality to what you are wanting?

  12. #12
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Mauritius
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    jhren, it does in a sense but I wanted it to pair with the drop down list along with the sums being updated with respect to the item being selected in the drop down list.

  13. #13
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Drop Down Menu: How to attach a behavior so that only certain specific rows are shown?

    Quote Originally Posted by zicitron View Post
    jhren, it does in a sense but I wanted it to pair with the drop down list along with the sums being updated with respect to the item being selected in the drop down list.
    Your Table was acting strange on my system, so I copied to new sheet, and had to make it into a table again. Total row across bottom updates on filtering now. (Accidententally muffed the table formatting in the transfer... sorry.)

    Can't help with pairing the drop down list with filtering.

    sample4 .xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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