Is it possible to use Indirect() or OffSet() in the data Range for the source data of a graph? I have been trying but just get an error message
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Offset() in Graph (XL2K)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Offset() in Graph (XL2K)
- This topic has 4 replies, 3 voices, and was last updated 21 years, 8 months ago.
Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerAugust 14, 2003 at 7:47 am #702208You can use Offset with fixed arguments in the Data Range of a chart, but it will be replaced with the result.
To do what you want is rather tedious. As far as I know, you have to set up separate named ranges (that may refer to a formula containing OFFSET, for instance) for the X-values and each of the data series in the chart, then specify these names in the definition of the chart series.
I have attached a simple example.
Change the value in cell E1 to change the source range of the chart.If you select the chart, then Chart | Source Data…, you will see a fixed range in Data Range, but if you activate the Series tab, you’ll see that the series are based on named ranges.
Next, click outside the chart and select Insert | Name | Define… to see the definition of the named ranges. They refer to formulas with Offset.
-
WSBat17
AskWoody Lounger -
WSsdckapr
AskWoody LoungerAugust 14, 2003 at 9:27 am #702223Personally, I don’t find it that tedious. Set up a chart and its good. One x, several Ys is not a big deal.
If you creating “identical” workbooks the names will copy. If you are creating “indentical spreadsheets” in the same workbook, you would have to do it multiple times, but the question I will raise: Do you have to have “MULTIPLE IDENTICAL GRAPHS” ie structured identically, but using different sets of data in the workbook?
The way I do this is to create a sheet with the graph data: setup the data as needed and name the ranges with offset, etc to get the graph as desired. The key is using INDIRECT functions to populate the items on this sheet, so this sheet can grab items from multiple sheets based on pulldowns, spinners etc.
You can even use indirect with the offset to change sheets in the named range. I have created on chart in a workbook that can literally contain the data for 100s of different “Identical charts”. Comboboxes (from FORMS) can be added onto the chart to change the year, line item, etc changing the chart “automagically” I have used it to grab data from MULTIPLE sheets with different number of rows in different sheets. The length of the data can be “counted” with INDIRECT also, so given the name of a worksheet, INDIRECT and OFFSET can literally point to any sheet, any column, any length, based on the changing of several sheets.
The result is literally 1 chart that can be used to view 100s of sheets “live” as the user changes selections. No need for chart copying, use the same chart. It also helps in updating the chart, no need to ever recreate more than 1, since all the charts are literally 1 chart.
Steve
-
WSBat17
AskWoody LoungerAugust 14, 2003 at 10:45 am #702234I am replacing a workbook that has grown up piecemeal over the years, I basically have 10 different report pages with graphs that are repeated about 8 times for different production line. It is rather messy and inefficient so I am resetting it ready for next year. I think that I will probably go your way and use one master set of sheets with
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
13 minutes ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
1 hour, 41 minutes ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
8 hours, 5 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
10 hours, 31 minutes ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
18 hours, 11 minutes ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
1 day, 12 hours ago -
50 years and counting
by
Susan Bradley
17 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
19 hours, 9 minutes ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
1 day, 23 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
1 day, 23 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
1 day, 23 hours ago -
OneNote and MS Word 365
by
CWBillow
2 days, 1 hour ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
2 days, 1 hour ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
2 days, 1 hour ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
2 days, 2 hours ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
2 days, 13 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
2 days, 13 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
2 days, 22 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
2 days, 10 hours ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
1 day, 11 hours ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
3 days, 7 hours ago -
Apple backports fixes
by
Susan Bradley
2 days, 13 hours ago -
Win 11 24H2 will not install
by
Michael1950
1 day, 11 hours ago -
Advice to convert MBR to GPT and install Windows 11 Pro on unsupported PC
by
Andy M
5 hours, 18 minutes ago -
Photos from iPhone to Win 10 duplicating/reformatting to .mov
by
J9438
1 day, 20 hours ago -
Thunderbird in trouble. Here comes Thundermail
by
Alex5723
7 hours, 47 minutes ago -
Get back ” Open With” in context menus
by
CWBillow
3 days, 22 hours ago -
Many AMD Ryzen 9800X3D on ASRock have died
by
Alex5723
2 days, 14 hours ago -
simple general stupid question
by
WSaltamirano
3 days, 20 hours ago -
April 2025 Office non-Security updates
by
PKCano
4 days, 13 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.