Dynamic Charts

AnilPullagura

Board Regular
Joined
Nov 19, 2010
Messages
98
Hello Pros,

Excel 2007

I was trying to create some dynamic charts and was successful on some of them. I was stuck with the below issue.

I need a chart which will track productivity on a daily basis. I now need a chart which shows last 6days of data everyday. So it should include today and past 5 days as the datarange.

I tried using named ranges and offset function, but was unsuccessful in making the datarange to be the last 6 cells in a column


Posted here and hoping for a sure help.

Thanks,
Anil
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Assuming your dates are in column A on Sheet1, you can define a name 'myDates' like this:
Rich (BB code):
=OFFSET(INDEX(Sheet1!$A:$A,MATCH(TODAY(),Sheet1!$A:A,$0)),0,0,-6,1)
and substitute it in the SERIES formula for your chart's x axis like this:
Rich (BB code):
=SERIES(Sheet1!$B$1,TestBook.xlsm!myDates,Sheet1!$B$2:$B$12,1)
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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