Graph Range

vmjan02

Well-known Member
Joined
Aug 15, 2012
Messages
1,132
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
I have this graph and the range will be dynamic, i tried with name manager with Name =OFFSET(Graphs!$A$7,,,COUNTIF(Graphs!$A$7:$A$16,"<>")) and Value =OFFSET(Graphs!$B$7:$G$16,,,COUNTIF(Graphs!$B$7:$G$16,"<>")) but no luck any best way to fix this dynamic range,

in case there is a vba will also work for me.



1719471601750.png
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
If I understand well the idea - to show data from extra rows when they are added, you may put your data in excel table (Insert->Tables->Table). Then recreate the graph based on a table. And then series will be automatically adopted to all rows as you add new row to a table.
 

Attachments

  • Zrzut ekranu 2024-07-03 104121.png
    Zrzut ekranu 2024-07-03 104121.png
    99.4 KB · Views: 6
Upvote 0
What version of excel are you using for this workbook?
It would be a better help if you provided some of the total data instead of what the chart source data.
Thanks in advance.
 
Upvote 0
@awoohaw
Using 2016. version
please provide some data. In a table or ideally a xl2bb mini sheet (see link below). Images are not helpful as it means the forum needs to completely type the data into their own worksheets which can lead to errors
 
Upvote 0
Here is a simplified example:
(Please ignore the concat formula in column F, I just added it so the named ranges are included in the XL2BB code)

Book1
ABCDEF
1
2
3
4
5
6W-21W-22Total
7Name1213859Name1213859
8Name2232851
9Name325530
10
11
12
13
14
15
16
Graphs
Cell Formulas
RangeFormula
F7F7=CONCAT(A7:D7)
D7:D9D7=SUM(B7:C7)
Named Ranges
NameRefers ToCells
Names=OFFSET(Graphs!$A$7,0,0,COUNTA(Graphs!$A$7:$A$16))F7
Total=OFFSET(Graphs!$D$7,0,0,COUNTA(Graphs!$A$7:$A$16))F7
W_21=OFFSET(Graphs!$B$7,0,0,COUNTA(Graphs!$A$7:$A$16))F7, D7
W_22=OFFSET(Graphs!$C$7,0,0,COUNTA(Graphs!$A$7:$A$16))F7, D7


1720622118544.png


For it to work you have to include the sheet name in the the graph data source when you reference the named ranges (if the scope of the named range is Workbook, it automatically replaces it with the book name).

Now if you add another line it updates as expected:

1720622264527.png
 
Upvote 0
I've tried to create a data set that may help. The data is in an xl2bb minisheet below this image
1720623108710.png



Here is the xl2bb, (charts don't show up, you'll have to build it yourself, but this has all the data you need for it.
Please note, this is dynamic by changing the date in cell H1.
(I had to post this in 2 sections, first is rows 1-150, then 151 to 376.

Book1
BCDEFGHIJK
1Titla:Calls per FDT for wk-1 to wk-5Report Start Week:Wed 2024-01-03
2(weeks begin on Mondays)
3FDTwk-1wk-2wk-3wk-4wk-5
4wk-1Sahafah0Sahafah5931435427
5wk-1Sahafah0Yasmeen5632465937
6wk-1Sahafah1Malqa4040483454
7wk-1Yasmeen3Total155103137147118
8wk-1Yasmeen6
9wk-1Yasmeen0
10wk-1Malqa4
11wk-1Sahafah5
12wk-1Sahafah4
13wk-1Sahafah3
14wk-1Yasmeen3
15wk-1Sahafah7
16wk-1Yasmeen0
17wk-1Malqa7
18wk-1Malqa6
19wk-1Sahafah5
20wk-1Malqa1
21wk-1Yasmeen4
22wk-2Malqa0
23wk-1Sahafah4
24wk-1Malqa7
25wk-1Malqa1
26wk-1Sahafah7
27wk-1Sahafah2
28wk-1Yasmeen8
29wk-1Yasmeen5
30wk-1Malqa1
31wk-1Yasmeen0
32wk-2Yasmeen5
33wk-1Yasmeen7
34wk-1Yasmeen5
35wk-1Malqa1
36wk-1Sahafah8
37wk-1Yasmeen4
38wk-1Yasmeen4
39wk-1Malqa4
40wk-1Sahafah6
41wk-2Malqa1
42wk-2Malqa1
43wk-3Malqa0
44wk-1Sahafah1
45wk-3Sahafah1
46wk-3Yasmeen2
47wk-3Malqa3
48wk-1Malqa1
49wk-2Yasmeen7
50wk-3Sahafah8
51wk-2Yasmeen3
52wk-2Yasmeen2
53wk-1Malqa4
54wk-1Yasmeen2
55wk-1Yasmeen0
56wk-2Sahafah2
57wk-2Yasmeen1
58wk-2Sahafah1
59wk-2Malqa5
60wk-2Yasmeen7
61wk-2Malqa2
62wk-1Malqa3
63wk-4Sahafah5
64wk-4Yasmeen6
65wk-4Sahafah3
66wk-2Malqa6
67wk-1Sahafah2
68wk-4Malqa6
69wk-2Malqa0
70wk-4Sahafah2
71wk-1Sahafah1
72wk-2Sahafah6
73wk-2Sahafah8
74wk-1Sahafah3
75wk-3Sahafah3
76wk-1Yasmeen5
77wk-3Malqa7
78wk-4Yasmeen1
79wk-4Yasmeen2
80wk-4Sahafah3
81wk-4Yasmeen5
82wk-3Sahafah0
83wk-3Yasmeen0
84wk-5Yasmeen4
85wk-4Malqa1
86wk-4Yasmeen8
87wk-3Yasmeen1
88wk-2Malqa2
89wk-5Yasmeen6
90wk-2Sahafah6
91wk-2Yasmeen5
92wk-3Sahafah5
93wk-5Malqa7
94wk-3Malqa6
95wk-3Malqa8
96wk-4Sahafah0
97wk-3Sahafah2
98wk-3Malqa5
99wk-5Yasmeen6
100wk-4Yasmeen2
101wk-4Malqa5
102wk-6Sahafah1
103wk-2Malqa4
104wk-6Yasmeen2
105wk-4Malqa8
106wk-6Yasmeen8
107wk-3Yasmeen0
108wk-5Malqa7
109wk-2Malqa0
110wk-2Malqa8
111wk-6Sahafah6
112wk-3Sahafah1
113wk-2Malqa7
114wk-4Malqa0
115wk-5Malqa7
116wk-4Malqa6
117wk-6Yasmeen4
118wk-5Malqa5
119wk-3Sahafah8
120wk-5Sahafah4
121wk-3Malqa3
122wk-2Malqa4
123wk-2Yasmeen1
124wk-7Yasmeen4
125wk-2Yasmeen1
126wk-3Malqa7
127wk-3Yasmeen7
128wk-4Sahafah6
129wk-7Sahafah7
130wk-2Sahafah8
131wk-3Malqa4
132wk-3Yasmeen4
133wk-5Yasmeen4
134wk-6Sahafah4
135wk-7Yasmeen1
136wk-5Yasmeen8
137wk-4Yasmeen5
138wk-3Malqa5
139wk-7Yasmeen1
140wk-7Yasmeen2
141wk-7Sahafah8
142wk-4Yasmeen8
143wk-8Sahafah8
144wk-9Yasmeen0
145wk-6Malqa2
146wk-7Sahafah4
147wk-5Sahafah5
148wk-4Yasmeen0
149wk-9Sahafah6
150wk-4Malqa0
Sheet1
Cell Formulas
RangeFormula
C1C1="Calls per FDT for "& G3 & " to " & K3
G3:K3G3="wk-"&WEEKNUM($H$1)+SEQUENCE(,5,0,1)
F4:F6F4=UNIQUE(C4:C376)
G4:K6G4=SUMIFS($D$4:$D$376,$B$4:$B$376,G$3,$C$4:$C$376,$F4)
G7:K7G7=SUM(G4:G6)
Dynamic array formulas.



Book1
BCD
151wk-9Yasmeen0
152wk-8Sahafah4
153wk-4Yasmeen1
154wk-7Yasmeen2
155wk-3Yasmeen4
156wk-8Yasmeen8
157wk-9Malqa3
158wk-6Yasmeen0
159wk-6Sahafah8
160wk-4Sahafah7
161wk-4Sahafah4
162wk-4Yasmeen6
163wk-10Yasmeen4
164wk-3Yasmeen6
165wk-10Yasmeen2
166wk-6Malqa6
167wk-10Yasmeen3
168wk-10Yasmeen1
169wk-7Malqa2
170wk-3Malqa0
171wk-5Malqa6
172wk-4Yasmeen6
173wk-6Yasmeen7
174wk-6Yasmeen5
175wk-3Yasmeen2
176wk-7Yasmeen6
177wk-10Malqa8
178wk-10Malqa0
179wk-7Sahafah5
180wk-10Sahafah3
181wk-8Malqa5
182wk-8Sahafah8
183wk-7Malqa1
184wk-11Yasmeen4
185wk-11Sahafah0
186wk-11Yasmeen0
187wk-6Yasmeen8
188wk-3Yasmeen8
189wk-7Malqa8
190wk-7Malqa6
191wk-3Yasmeen6
192wk-11Malqa4
193wk-8Yasmeen1
194wk-4Malqa0
195wk-11Sahafah4
196wk-11Sahafah3
197wk-8Malqa0
198wk-11Sahafah7
199wk-4Yasmeen1
200wk-11Yasmeen7
201wk-8Malqa8
202wk-3Sahafah7
203wk-8Sahafah4
204wk-8Sahafah7
205wk-3Yasmeen6
206wk-12Yasmeen0
207wk-9Yasmeen3
208wk-8Yasmeen2
209wk-6Malqa7
210wk-3Sahafah6
211wk-6Sahafah4
212wk-5Malqa7
213wk-8Sahafah7
214wk-8Malqa0
215wk-11Malqa5
216wk-6Yasmeen5
217wk-9Sahafah3
218wk-6Sahafah5
219wk-3Sahafah2
220wk-11Sahafah0
221wk-8Sahafah2
222wk-5Sahafah8
223wk-7Yasmeen8
224wk-7Yasmeen6
225wk-13Malqa5
226wk-10Malqa3
227wk-7Sahafah5
228wk-13Malqa8
229wk-7Yasmeen5
230wk-5Malqa0
231wk-4Sahafah2
232wk-5Malqa5
233wk-12Sahafah5
234wk-12Yasmeen5
235wk-5Sahafah8
236wk-10Sahafah2
237wk-4Yasmeen7
238wk-10Malqa4
239wk-10Sahafah8
240wk-4Yasmeen1
241wk-4Sahafah6
242wk-9Yasmeen0
243wk-6Malqa8
244wk-13Malqa8
245wk-11Sahafah3
246wk-13Yasmeen6
247wk-6Malqa3
248wk-11Yasmeen0
249wk-9Yasmeen5
250wk-9Yasmeen8
251wk-14Yasmeen8
252wk-7Sahafah0
253wk-7Malqa5
254wk-6Sahafah4
255wk-7Yasmeen6
256wk-11Yasmeen7
257wk-9Yasmeen2
258wk-13Yasmeen6
259wk-6Malqa8
260wk-4Sahafah5
261wk-6Yasmeen2
262wk-12Sahafah2
263wk-14Sahafah4
264wk-14Yasmeen6
265wk-4Sahafah3
266wk-8Malqa5
267wk-6Yasmeen2
268wk-6Yasmeen7
269wk-4Malqa0
270wk-14Malqa1
271wk-14Yasmeen8
272wk-4Sahafah8
273wk-10Sahafah3
274wk-15Malqa2
275wk-4Malqa6
276wk-4Malqa2
277wk-4Sahafah0
278wk-8Sahafah8
279wk-8Sahafah5
280wk-12Yasmeen0
281wk-13Sahafah3
282wk-9Malqa8
283wk-13Yasmeen3
284wk-5Yasmeen5
285wk-5Malqa4
286wk-7Sahafah8
287wk-13Malqa8
288wk-13Yasmeen0
289wk-7Malqa5
290wk-7Malqa4
291wk-15Yasmeen4
292wk-7Sahafah3
293wk-7Yasmeen8
294wk-9Yasmeen5
295wk-17Malqa7
296wk-9Yasmeen0
297wk-13Yasmeen3
298wk-15Yasmeen8
299wk-5Malqa3
300wk-11Malqa3
301wk-9Yasmeen4
302wk-18Malqa8
303wk-11Yasmeen6
304wk-7Malqa7
305wk-7Malqa2
306wk-9Malqa2
307wk-11Malqa8
308wk-13Sahafah3
309wk-11Sahafah6
310wk-7Yasmeen4
311wk-7Yasmeen2
312wk-9Sahafah8
313wk-7Sahafah7
314wk-13Sahafah7
315wk-16Sahafah0
316wk-9Malqa4
317wk-16Yasmeen6
318wk-18Sahafah2
319wk-18Sahafah6
320wk-16Yasmeen2
321wk-14Yasmeen7
322wk-12Yasmeen4
323wk-7Sahafah1
324wk-17Malqa7
325wk-10Sahafah2
326wk-19Sahafah6
327wk-5Malqa3
328wk-7Sahafah6
329wk-12Malqa1
330wk-14Malqa7
331wk-14Yasmeen6
332wk-10Yasmeen6
333wk-5Yasmeen4
334wk-10Malqa5
335wk-10Sahafah2
336wk-12Malqa5
337wk-19Yasmeen0
338wk-14Yasmeen6
339wk-12Malqa2
340wk-10Malqa1
341wk-20Yasmeen6
342wk-18Malqa8
343wk-20Malqa6
344wk-13Sahafah7
345wk-8Malqa5
346wk-15Malqa0
347wk-13Yasmeen6
348wk-13Yasmeen2
349wk-18Malqa3
350wk-20Malqa4
351wk-20Malqa3
352wk-13Malqa1
353wk-13Malqa1
354wk-13Malqa6
355wk-8Malqa2
356wk-13Sahafah2
357wk-5Sahafah2
358wk-8Sahafah8
359wk-8Malqa2
360wk-10Malqa7
361wk-6Yasmeen4
362wk-8Sahafah4
363wk-21Sahafah3
364wk-8Yasmeen1
365wk-21Yasmeen5
366wk-11Yasmeen6
367wk-6Malqa5
368wk-16Sahafah3
369wk-13Malqa0
370wk-16Yasmeen6
371wk-21Yasmeen6
372wk-21Sahafah3
373wk-6Yasmeen5
374wk-11Sahafah2
375wk-11Malqa5
376wk-16Sahafah5
Sheet1
 
Upvote 0
Solution

Forum statistics

Threads
1,224,527
Messages
6,179,334
Members
452,907
Latest member
Roland Deschain

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