Rolling Graphs

alimilne

New Member
Joined
Sep 26, 2018
Messages
1
Hi,

I am trying to create an excel based dashboard for work in order to track performance on a monthly basis and all i have managed to create so far is a basic graph which updates when new data is added. What i'd really like is to have it just show the last 3, 6 or 12 months of data (without having to delete previous rows.)

I've seen them before however they've always just had one line on the graph whereas mine would have around 10. Hoping for some expert guidance!

Thanks!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi

The easiest way to do this is to select data table that the graph is based on and filter out all data points that you do not want to graph.

Kind regards

Saba
 
Upvote 0
Hi alimilne

Assuming you have an Excel Table called 'ExampleTable' with one column header called 'A' (and at least 12 rows in the body of the Table), try this formula as a chart reference:

Code:
=OFFSET(INDIRECT(ADDRESS(ROWS(ExampleTable[A])+1,COLUMN(ExampleTable[A]))),-2,0,3,1)

This references the last row in the table, and then SUMs the last three cells in the column (for 3 months). Adapt the '-2' and '3' in the formula for 6 and 12 months respectively.

Cheers

pvr928
 
Last edited:
Upvote 0
Hi alimilne

It appears my solution does not work with Excel Tables.

Instead try this:

1. Create a Defined Name, say 'Range_ref' [ALT - M - N - 'New'] and insert this formula:

Code:
=OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$A:$A)-3,0,3,1)

where your data starts in cell A1

2. Insert into a Series Values of your chart:

Code:
=Sheet1!Range_ref

where the name of sheet where the data is located is called 'Sheet1'.



Cheers

pvr928
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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