How do I create a dynamic graph which follows a data range horizontally?

rossmolden22

New Member
Joined
Sep 4, 2011
Messages
1
So I figured out how to create a dynamic range going vertically from a guide online.

However, my data runs horizontally like so:

B1 C1 D1 E1
A1: Date Jan Feb Mar Apr
A2: Value A 50 41 6 73
A3: Value B 49 35 14 46

So I would like my graph to automatiically select the last 6 months, even if it has 12 months worth of data entered. Ideally, I want to enter say "6" or "3" into a cell in order to define the amount of months I want in the chart.

Can someone please help me with instructions on the formnulas for the "Define Name" process and setting the values in the graph wizard?

I would be eternally grateful to anyone that can help!

Thanks
Ross
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,215,231
Messages
6,123,754
Members
449,119
Latest member
moudenourd

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