Results 1 to 3 of 3

Graphing the sum of an autofilter result

Threaded View

  1. #1
    Registered User
    Join Date
    09-08-2008
    Location
    x
    Posts
    4

    Graphing the sum of an autofilter result

    Hi everyone,

    I have data which is laid out as shown in the sample Sheet.jpg. The actual file contains many more categories. Because we need to create many graphs, I wrote a macro which allows the user to pick which data series they want to graph by, and creates a graph off preset chart options.

    The macro works by autofiltering the for the appropriate column and field. It then selects that visible range as the chart source. This process is repeated for all the graphs selected by the user.

    The macro works fine except when you have a data series that has more than one row. Let's say from my sample data, someone wanted a chart of Brian's total performance. My macro would autofilter for Brian, but it would end up with 3 rows as shown in FilteredResult.jpg. The resulting line graph obviously shows 3 separate lines. I would need some way to graph the entire result as one sum.

    Keep in mind that the real data could contain upwards of 15 separate possible columns to group by. If I created sum rows, it could start getting messy depending on what the user selects. Especially if we are creating 30+ graphs.

    Edit- I also just thought that maybe I could create a sum row at the end of the autofilter result, graph it, then delete the sum row. However, this would only work if there was some way in VBA to make the chart static and not update. Not sure if there is.
    Attached Images Attached Images
    Last edited by ElPresidente408; 09-08-2008 at 03:34 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Spellnumber
    By Williams in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 02-16-2020, 03:34 AM
  2. Numbers to Text
    By sachinattri in forum Excel General
    Replies: 6
    Last Post: 06-15-2008, 03:07 AM
  3. Converting numbers to text
    By aresquare1 in forum Excel General
    Replies: 2
    Last Post: 06-03-2008, 01:24 PM
  4. "Translating" numbers into words
    By Portuga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2008, 11:44 AM
  5. Spell number
    By nowfal in forum Excel General
    Replies: 4
    Last Post: 08-20-2007, 04:21 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