Automatic update of chart using offset or vba but with hidden columns

saadalrahman

New Member
Joined
May 1, 2014
Messages
4
ABCDENOP
1MonthJan'13Feb'13Mar'13Jan'14Feb'14Mar'14
2Assets323130292927
3Equity4.34.24.34.14.34.3

<tbody>
</tbody>

I have a table as above and have created a bar chart that compares 3 months of 2013 with 3 months of 2014. The values of Apr'13 thru Dec'13 are in hidden columns F thru N. I have a macro setup so that the value for Apr'14 are automatically entered into the table and the relevant columns are hidden/unhidden so that the corresponding 3 months are shown for last year and this year. So for example, once the data for Apr'14 is entered the Jan'13 and Jan'14 columns are hidden and the Apr'13 column (Column F) is unhidden.

I have been trying unsucessfully to have the chart update automatically using only the visible columns. I have tried the offset range option for the chart data and it always includes the hidden columns as well so I am not sure how to set it to only use Visible columns. I would appreciate any help whether with the offset range option or vba code.

Thanks.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,410
Messages
6,124,749
Members
449,186
Latest member
HBryant

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