Categorized graph with months

mmahrous

New Member
Joined
Oct 25, 2017
Messages
6
Hi,

Does anyone know how to achieve this kind of graph? (assuming the x's are numbers of course)

Thanks,

Mike
B3W3G.png
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
There's two things going on here.

One is having the months sequential, with a separate entry for each "System".
The other is two lines on your X axis - one for System, one for month.

The first is easy, and is driven simply by your data layout.
Try moving the data for August, that is currently in D3:E8, into the range B9:C14, and then move September below that, into B15:C20.
If you don't want to do this to your actual data sheet, because you need to preserve the layout for some reason, then set up some other area in your worksheet that has the data laid out in this way, and make your chart depend on THAT area.

The second thing, with the two lines for the X axis, I've never done it myself, but try this...
https://peltiertech.com/chart-with-a-dual-category-axis/
 
Upvote 0
Very good point thank you. But what if I need the chart to be dynamic when I make changes to this current worksheet with this preserved layout?
 
Upvote 0
You don't need double data entry.

If you want to preserve your data on Sheet 1, and have another area - let's say on Sheet 2 - to drive the chart, just make Sheet 2 link to Sheet 1 using formulas, so that you only need to enter data once on Sheet 1.
 
Upvote 0
Just very simple formulas to repeat the value from another sheet.

For example, to repeat the value from Sheet 1, cell B3, use

=Sheet1!B3
 
Upvote 0
There's two things going on here.

One is having the months sequential, with a separate entry for each "System".
The other is two lines on your X axis - one for System, one for month.

The first is easy, and is driven simply by your data layout.
Try moving the data for August, that is currently in D3:E8, into the range B9:C14, and then move September below that, into B15:C20.
If you don't want to do this to your actual data sheet, because you need to preserve the layout for some reason, then set up some other area in your worksheet that has the data laid out in this way, and make your chart depend on THAT area.

The second thing, with the two lines for the X axis, I've never done it myself, but try this...
https://peltiertech.com/chart-with-a-dual-category-axis/


If I move August and September below July in a separate worksheet like you said, how do I set up the table so that the charts work correctly ? Can I send you a sample workbook and you can show me an example?
 
Last edited:
Upvote 0
Please DON'T send me a sample workbook.

If you've set up your data in a different worksheet, in a different layout as suggested, presumably you now have something like this . . .

Data for JULY, IMPACTED EXPOSURES, 1.1 CID, in cell B3
Data for AUGUST, IMPACTED EXPOSURES, 1.1 CID, in cell B9
Data for SEPTEMBER, IMPACTED EXPOSURES, 1.1 CID, in cell B15
and so on, with all the other month/system figures in between . . . July 1.1 ESN Facility in B4, August 1.1 ESN Facility in B10, and so on.

Your chart data series for IMPACTED EXPOSURES is then simply all the data in column B.

And similarly for TOTAL EXPOSURES which will be all the data in column C.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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