+ Reply to Thread
Results 1 to 2 of 2

Macro to create a chart using filtered data

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    roma
    MS-Off Ver
    Excel 2010
    Posts
    1

    Macro to create a chart using filtered data

    Dear all,

    This is the first time I use this forum so I hope my question is psoted in the right section.
    I am starting to use VBA and I am no so practice in using it so I would like to have your great support.
    I have one sheet (Called Input Data) with a lot of data (5 columns and 45071 rows) and I would like to have a Macro in order to filter these data and create a dynamic chart using only the filtered data.
    I was able to find a macro to filter data: just selecting an "hotel name" from the group list and clicking on a button to hide each row which doesn't have the selected "hotel name". but i don't know how to go ahead to create the dynamic chart.... This chart has to show which is the rate (column D) associated to each date (column c) and obvioulsy it needs to change values every time I select a different hotel. Could you please help me?
    Attached you can find my excel file.

    I hope I was clear and thank you in advance!!!

    Rate audit - Minimum Rate (CHARTS).xlsm
    Last edited by rikina1988; 09-19-2014 at 10:55 AM.

  2. #2
    Spammer
    Join Date
    01-26-2010
    Location
    Worcester MA
    MS-Off Ver
    Excel 2003
    Posts
    184

    Re: Macro to create a chart using filtered data

    Put your data into a table, and then filter the data using the table's AutoFilter controls. If the chart is based on the data in the table, filtering (hiding) some data will cause it to disappear from the chart. By default, Excel charts do not show data from hidden rows and columns.
    Jon Peltier
    http://PeltierTech.com/

+ 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. Macro / Function To Create New Sheet with Filtered Data
    By Leb-Mac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2013, 10:20 AM
  2. Macro to create a new file with filtered data with Values Only.
    By Mysore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2012, 07:42 PM
  3. macro for pivot chart to show filtered data
    By ghynes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2011, 08:08 AM
  4. Create Chart on a Filtered Range
    By rogerabhi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-31-2010, 08:33 AM
  5. [SOLVED] Can you create 1 chart that will update based on filtered data?
    By Diane in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-09-2006, 09:34 AM

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