Combo Graph with multiple sets of data in it

PS_Richard

New Member
Joined
Nov 22, 2022
Messages
13
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Here is a small sample of the dataset I am working on. For context this will be worked on a 12 month review so there will be approximately over 1000 rows of data for each month.

Book2
ABCD
1PeriodPool NameMinimum batteriesMaximum batteries
22021-11C BAL110
32021-11C BAL38
42021-11C BAL49
52021-11C BAL49
62021-11C BAL26
72021-11C BAL26
82021-11C BAL38
92021-11C BAL28
102021-11C BAL26
112021-11VNA16
122021-11VNA15
132021-11VNA15
142021-11VNA16
152021-11VNA14
162021-11VNA17
172021-11VNA15
182021-11VNA18
192021-11VNA13
202021-11VNA15
212021-12C BAL26
222021-12C BAL15
232021-12C BAL05
242021-12C BAL26
252021-12C BAL16
262021-12C BAL26
272021-12C BAL36
282021-12C BAL25
292021-12C BAL26
302021-12C BAL26
312021-12VNA514
322021-12VNA611
332021-12VNA310
342021-12VNA510
352021-12VNA510
362021-12VNA511
372021-12VNA712
382021-12VNA59
392021-12VNA311
402021-12VNA312
Sheet1


When the report is run it will produce a line per day per charger per pool. I've filtered out fields that aren't needed for this example. The period column is done via EOMONTH formula to get it into yyyy-mm.

Currently I have the following being done.

Book2
GHI
12021-112021-12
2Minimum Available Batteries10
3Maximum Available Batteries1014
Sheet1
Cell Formulas
RangeFormula
H2:I2H2=MEDIAN(MINIFS($C:$C,$A:$A,H$1))
H3:I3H3=MEDIAN(MAXIFS($D:$D,$A:$A,H$1))
Press CTRL+SHIFT+ENTER to enter array formulas.
Named Ranges
NameRefers ToCells
_FilterDatabase=Sheet1!$A$1:$D$40H2:I3


This is looking at the combined data to report what the minimum is for that month as a whole compared to the maximum so I get a graph like this.
1669737699912.png


However this doesn't give me a true picture as its containing both pools, where as separating them they would look like this.
1669737812403.png


I don't want to have too many graphs shown, so what I would like is a way to have these two datasets into one combo chart which could look like this (I've done this by filling in cells etc...).
1669737921317.png


So there is a line for each of the types of pools minimum amount and the bars for the maximum amount. The big catch is, as I want to be able to use this on multiple customers who use different names for the pools I don't want to hard code that description in and there is a chance that there could be more than 2 pools so it needs to be dynamic enough to know it needs to do 3, 4 or however many unique names are in the pool column. The data is to be put into one sheet (sheet 1 for example) of the spreadsheet and the graph creates on another page (sheet 2 for example) using formulas to look at the data.

Is there a way to do this? Am I using the correct formulas in the first section of using an array with MIDIAN?

Apologies this is a long post to have a look over but thanks as always for any help that can be given.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I'm scrapping this in my project for now so if anyone reads this there is no rush but if anyone does come up with an idea that would be great.

Thanks, PS_Richard
 
Upvote 0

Forum statistics

Threads
1,215,048
Messages
6,122,862
Members
449,097
Latest member
dbomb1414

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