+ Reply to Thread
Results 1 to 2 of 2

Combobox filter

  1. #1
    Forum Contributor
    Join Date
    08-01-2012
    Location
    rotterdam, holland
    MS-Off Ver
    Excel 2013
    Posts
    170

    Combobox filter

    I want that my chart only shows the values of SALES and PRODUCT with the name ' Independence'. Is it possible to filter this in the chart, without filtering it in the original data? The chart gives me a filter when clicking on it, but I dont want to select each one individually. I was just curious if its possible, thanks a lot.

    https://dl.dropboxusercontent.com/s/...a/eh.xlsx?dl=0

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Combobox filter

    This was a bit of fun. I learned that one can do array formulas in named dynamic ranges! I originally had the formula =IF(Table_Data[Name] = "Independence",Table_Data[Date],FALSE) named MyDate. I made similar calculations for Sales and product.

    When I plotted this, this gave me a chart with the number equivalent of the date and the value False for every date that didn't match. So I changed False to "". This gave me the same chart but with blanks where false used to be. No matter what I did, I could no convert the number back to a date. I figured that this was due to the fact that the not-shown (but still present) values were a string. So I had to add a helper column, Date 2.

    The final formula is =IF(Table_Data[Name] = "Independence",Table_Data[Date 2],""). If you want to use a dropdown list (data Validation) set it up for example in Cell G1 and then use Sheet1!$G$1 where "Independence" is.

    The following articles will help explain array formulas and dynamic charting.

    http://www.utteraccess.com/wiki/inde...Array_Formulas
    http://www.utteraccess.com/wiki/inde...namic_Charting
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Combobox with a filter
    By zak.horrocks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2014, 06:35 AM
  2. [SOLVED] Filter combobox from another combobox
    By aimjhun in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-11-2014, 05:05 AM
  3. [SOLVED] Filter Combobox base on selection from previous combobox
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2013, 07:25 PM
  4. How to Filter with Combobox?
    By Emberke202 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-22-2013, 01:42 AM
  5. Combobox - Filter auto-filter worksheets (ActiveX)
    By Darms in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2011, 11:33 AM
  6. Userform: Make a advanced filter script "filter" when a combobox is altered
    By Zheno in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2010, 04:06 AM
  7. filter a combobox
    By Mats Samson in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 11-02-2005, 06:20 PM

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