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
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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, 7 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
-
Two March KB5053606 updates? (Awaiting moderation)
by
Adam
2 hours, 45 minutes ago -
Two March KB5053606 updates? (Awaiting moderation)
by
Adam
2 hours, 47 minutes ago -
Intel® Graphics/Sound Driver updates for 7th-10th Gen Intel® Core™ Processor
by
Alex5723
3 hours, 11 minutes ago -
Is there a comprehensve way to tranfer ALL current Edge Settings into a new Edge
by
Tex265
9 hours, 24 minutes ago -
Transferring ALL info/settings from current Firefox to new computer Firefox
by
Tex265
10 hours, 46 minutes ago -
DOGE Wants to Replace SSA 60 Million Line COBOL Codebase in Months
by
EyesOnWindows
5 hours, 33 minutes ago -
KB5051989 Usb printer Post Ipp
by
licencesti
9 hours, 46 minutes ago -
Removing bypassnro
by
Susan Bradley
21 minutes ago -
Up to 30 seconds to show “Recent Topics”
by
PL1
14 hours, 7 minutes ago -
Sound changes after upgrade from W11 23H2
by
WStaylorpsepa
15 hours, 50 minutes ago -
Windows bug blocks BIOS updates for Lenovo ThinkPad laptops
by
Alex5723
18 hours, 53 minutes ago -
O&O Software – ‘World Backup Day’ Sale
by
unbob
15 hours, 13 minutes ago -
Still version 23H2?
by
WSbxcfilm
19 hours, 41 minutes ago -
Ubuntu 25.04 (Plucky Puffin) Beta released
by
Alex5723
1 day, 1 hour ago -
How to install App Store apps on an external SSD
by
Alex5723
1 day, 2 hours ago -
Where is Windows going?
by
Susan Bradley
16 hours, 49 minutes ago -
Installing Feature Update Windows 11 24H2
by
geekdom
1 day, 20 hours ago -
Windows 11 Insider Preview build 27823 released to Canary
by
joep517
1 day, 20 hours ago -
Windows 11 Hotpatch
by
Hackmuss
1 day, 3 hours ago -
System Guard service error still won’t be fixed
by
Susan Bradley
1 day, 21 hours ago -
Operation ForumTroll: APT attack with Google Chrome zero-day exploit chain
by
Alex5723
1 day, 15 hours ago -
Troy Hunt of HaveIBeenPwned Phished
by
Lars220
6 hours ago -
Microsoft Windows security auditing Code 5061
by
mpw
2 days, 9 hours ago -
Can’t display images in incoming Outlook 365 emails
by
WScopwriter
1 day, 17 hours ago -
Windows 11 Insider Preview Build 26200.5510 early builds of 25H2
by
Alex5723
1 day, 18 hours ago -
0Patch : Micropatches released for SCF File NTLM Hash Disclosure Vulnerability
by
Alex5723
1 day, 18 hours ago -
Select multiple emails and they all open up!
by
CeeJay
3 days, 10 hours ago -
How to remove an update preview
by
Gunny
1 day, 13 hours ago -
Third party add ins reminder
by
Susan Bradley
20 hours, 15 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
3 days, 4 hours ago
Recent blog posts
- Removing bypassnro
- Where is Windows going?
- System Guard service error still won’t be fixed
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
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.