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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,223,792
Messages
6,174,608
Members
452,574
Latest member
hang_and_bang

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