Dynamic Graphs/Offset

chef

Well-known Member
Joined
Jul 10, 2002
Messages
610
Office Version
  1. 365
  2. 2016
Hi
Using office 365 and I am having problems with dynamic graphs and using offset formula

I have a table of individual headings in B5 to B14 in a workbook called Family
Months are C4 to N4 ( Apr-21 to March 22 )

When I map out a graph for each heading I have to amend 10 graphs manually each month as the graph drops to 0 after current month and its time consuming and I am also only showing the currents mths value as a label
So for example I need to graph heading Admin Cell B6 and pick up values C6 to N6 and show months C4 to N4 on graph and then for all other headings but stop all graphs dropping to 0 and automatically changing when next months values input
Hope this makes sense

I have spent hours with named ranges and offset/counta etc but to be honest i am not really sure how it all gets glued together , cant get to work and would really appreciate any help at all

I have another horizontal one on another sheet called Workforce with months C13 to C14 and values E13 to E14 and assuming same concept but i cant get my head around the offset/counta/columns

Im hoping there is a solution and a quicker way to do this.


regards
ian
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi Chef,

There's probably an easier way and maybe this suits, but below I'm using Filter & index to extract/return only dates between start & current month. There's a drop-down to dynamically swap between headings with one chart instead of 10.

When inserting your chart make sure to highlight the total range of what you data can return eg B12:N22 (april - Mar) is the total area the filter and index would use.


Family.xlsx
BCDEFGHIJKLMN
4Months1/04/2021May-2021Jun-2021Jul-2021Aug-2021Sep-2021Oct-2021Nov-2021Dec-2021Jan-2022Feb-2022Mar-2022
5Headings1123456789101112
6Admin165166167168169170171172173174175176
7Headings3123456789101112
8Headings4222324252627282930313233
9Headings5123456789101112
10Headings6123456789101112
11Headings7123456789101112
12Headings8123456789101112
13Headings9123456789101112
14Headings10123456789101112
15
16
17Start Month1/04/2021
18Current EOM30/11/2021
19HeadingAdmin
20
21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21
22Admin165166167168169170171172    
Sheet1
Cell Formulas
RangeFormula
D4:N4D4=EOMONTH(C4,0)+1
C17C17=C4
C18C18=EOMONTH(TODAY(),0)
C21:J21C21=FILTER(Months,($C$4:$N$4>=$C$17)*($C$4:$N$4<=$C$18))
B22B22=C19
C22:N22C22=IFNA(INDEX(Data,MATCH($B$22,Headings,0),MATCH(C$21,Months,0)),"")
Dynamic array formulas.
Named Ranges
NameRefers ToCells
Data=OFFSET(Sheet1!$C$5,,,COUNT(Sheet1!$C$5:$C$14),COUNT(Sheet1!$C$5:$N$5))C22:N22
Headings=Sheet1!$B$5:$B$14C22:N22
Months=OFFSET(Sheet1!$C$4,,,COUNTA(1),COUNT(Sheet1!$C$4:$N$4))C22:N22, C21, D4, C17
Cells with Data Validation
CellAllowCriteria
C19List=Headings
 
Upvote 0
I will give this a go and map our graphs from this

Many many thanks for taking the time to help me. It's much appreciated
regards
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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