Offset Problem?

hallingh

Well-known Member
Joined
Sep 11, 2010
Messages
769
Hi all. I'm adding a scroll bar to a chart, and I'm doing this by using a named range for the values of the graph, and defining the named range using the offset function with the amount of rows offset determined by a cell linked to the scroll bar on my graph. Here is what my named range is defined as:

Code:
=OFFSET(Data_Import!AF125, Data_Import!M116, 0, Data_Import!P116, 1)

AF125 is the correct cell for the basis of the offset, m116 is the cell that is linked to the scroll bar, and is currently equal to 1. P116 is currently equal to 10, and I have that instead of a constant number so the user can adjust how many values he wants to display in the chart.

The chart will not accept this function as its data values, and when I simply type this into a cell it gives me a Value error. Does anyone have any idea why this won't work and/or what I can do to fix it? I've been looking at this for a while, and cant seem to get it to work!

Any help at all that you can give me will be greatly appreciated. Thanks!

Hank
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Ah, I figured out why I get the Value error, but it doesn't help me solve my problem at all. Putting the formula into a cell gives me the error because it is referencing a range which can't be displayed in the single cell. This still doesn't explain why this won't work for my graph, though?

:banghead:


Thanks again for the looks!
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,548
Members
452,927
Latest member
rows and columns

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