excel graph with dynamic range

eng819

New Member
Joined
Sep 26, 2011
Messages
17
Trying to produce a graph with a dynamic range. Excel sheet is linked to Access data base with data populated daily. I only want to graph the last 10 rows (days) of data. I've tried using the following OFFSET formulas for my axis ranges but I keep getting "function is not valid".
=OFFSET(‘Azone MTTR MF’!$A:$A,COUNTA(‘Azone MTTR MF’!$A:$A) -10,0,10,1)

The following formula gives me same "function is not valid", but when I select OK when I get the error, it takes me back to the table and re-highlight the last 10 rows instead of the entire row.
=OFFSET('AZone MTTR MF'!$A$2, ROWS(Table_AZone_DTR_MF.accdb)-10, 0, 10, 1)
NOTE: Excel is linked to access database. Data and graph are on separate sheets within same workbook
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Define a Named Range
Formula>define Name
Name: Date
Scope: sheet name
Refers to: =
OFFSET('AZone MTTR MF'!$A$2,ROWS(Table_AZone_DTR_MF.accdb)-10,0,10,1)
=OFFSET(sheet name!$A$2,ROWS(Table_name.accdb)-10,0,10,1)

Graph
Right click graph>select data>
edit category axis label (dates)
Axis label range
='AZone MTTTR MF'!Date
='sheet name'!NamedRange
 
Upvote 0

Forum statistics

Threads
1,223,167
Messages
6,170,470
Members
452,330
Latest member
AFK_Matrix

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