VBA: creating a chart from data

GMHLee

New Member
Joined
Aug 26, 2020
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Hi all,

I am looking to streamline graph creation which uses raw data from a source that will regularly change (The data types in each column remains the same but names and numbers may vary).
I would be grouping data by month and separating series by year (for yearly comparison), and filtering by differing criteria.
Previously when making the graphs I sorted it all into a pivot table, copy/paste, create graph, then manually alter by hand (titles, series names, labels, etc.)

I'd like to be able to create a graph in a new worksheet, like the one above, directly from the raw data, is this feasible?
For example, instead of having VBA group the data into a pivot table with assigned filters, paste that table in the worksheet, then make the chart from that table, can I make a chart, like the one described above, with VBA directly from the raw data?

Thanks.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,215,012
Messages
6,122,682
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top