+ Reply to Thread
Results 1 to 2 of 2

Creating a Clustered Column Graph from two separate tables?

  1. #1
    Registered User
    Join Date
    01-18-2019
    Location
    UK
    MS-Off Ver
    365
    Posts
    69

    Creating a Clustered Column Graph from two separate tables?

    I'm creating a macro to generate several graphs based on a bunch of results in various tables.

    One of these graphs needs to be a clustered column with bars representing the first set of data and lines representing the second (example on second tab of what I'm aiming for).

    I have this same code set up for a very similar macro so I know it works (I've simplified it for the example to only show the issue I'm facing).

    The problem is that for this one, the two sets of data are found within different tables so they aren't on the same rows (unlike my original macro) and therefore excel treats it as one large set of data instead of two smaller sets.

    As you can see, both tables share the same names from the "Variety" column and this will be how I identify them on the chart (see second tab).

    Is it possible to point VBA to the name columns and "merge" them so that it treats it as two columns of data from the same set? Maybe using a VLOOKUP or similar function? One thought I had was to get VBA to put the data next to each other, produce the chart, paste it as an image and then delete the copied data but that won't allow me to update the chart by changing the input data.

    The blue highlighted cells will be the two sets of data used for one chart, the green will be used for a separate one.

    Any suggestions?
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-18-2019
    Location
    UK
    MS-Off Ver
    365
    Posts
    69

    Re: Creating a Clustered Column Graph from two separate tables?

    Managed to solve my own problem by splitting up the source input and creating series individually.

    Please Login or Register  to view this content.

+ 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. Issue with creating a clustered column combo graph
    By Lenny67 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-11-2021, 11:07 AM
  2. Clustered Column Bar Graph - Change Groups/Pairs
    By DavidIII in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-05-2015, 11:18 AM
  3. markers for error bars in clustered column graph
    By Andreea C. in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 11-20-2013, 10:18 AM
  4. Trouble with a Dynamic Clustered Stacked Column Graph
    By DaveBre in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-05-2013, 08:33 PM
  5. Clustered Column Graph Labelling
    By hamhains in forum Excel General
    Replies: 1
    Last Post: 04-05-2011, 04:41 AM
  6. How do I set up a clustered stacked column graph? Is it possible?
    By BradT in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-17-2005, 11:05 PM
  7. How to mix a stacked column and a clustered one on same graph?
    By Armelle in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-05-2005, 09:05 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