Stacked Bar Chart

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
Apologies if I am being really thick here, but I can't get my head around this!

In Column C (18-21) I have Stage 1, Stage 2, Stage 3 Stage 4
In Column D (18-21) I have a start date -
In Column E (18--21) I have an end date
In Column F (18-21) I have the Days Required - this is how the End Date is worked out.

1590590083991.png


I want to create a bar graph so that on the left are the stages, and across the bottom are the start dates, so it shows how many days each stage was in progress.

Whatever I select isn't working! Please can someone put me out of my misery and advise how I need to do this!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hello,

Could you give a few more details as to what you need plotting? The Y axis can't be the 'Stages' as this is a text value. Below is my best guess?

Graph Example.JPG


Caleeco
 
Upvote 0
Ah ok, you want a GANTT chart. This will be more than just a chart as the date range is 'additional data'

I would set up some formulas to evaluate if the date on the bottom row is between the start and end date.

So in CELL I18 i have:
Code:
=IF(AND(I$7>=$D18,I$7<=$E18),1,0)
Copy down and then across

Then I have setup conditional formatting on each row.
- If cell = 0 > Text is White
- if Cell = 1 > Text is Chosen Colour & Cell Fill is Chosen Colour.

Half done version shown below:
GANTT.JPG



This will then dynamically update.

Hope that helps
Caleeco
 
Upvote 0
Ah ok, you want a GANTT chart. This will be more than just a chart as the date range is 'additional data'

I would set up some formulas to evaluate if the date on the bottom row is between the start and end date.

So in CELL I18 i have:
Code:
=IF(AND(I$7>=$D18,I$7<=$E18),1,0)
Copy down and then across

Then I have setup conditional formatting on each row.
- If cell = 0 > Text is White
- if Cell = 1 > Text is Chosen Colour & Cell Fill is Chosen Colour.

Half done version shown below:
View attachment 14886


Lovely, I will give it a try in the morning. Thanks in advance for your help!

This will then dynamically update.

Hope that helps
Caleeco
 
Upvote 0
No worries, give me a shout if you run into trouble with it ?

Cheers
Caleeco
 
Upvote 0
Apologies if I am being really thick here, but I can't get my head around this!

In Column C (18-21) I have Stage 1, Stage 2, Stage 3 Stage 4
In Column D (18-21) I have a start date -
In Column E (18--21) I have an end date
In Column F (18-21) I have the Days Required - this is how the End Date is worked out.

View attachment 14848

I want to create a bar graph so that on the left are the stages, and across the bottom are the start dates, so it shows how many days each stage was in progress.

Whatever I select isn't working! Please can someone put me out of my misery and advise how I need to do this!
So select the tasks and start date columns of the data set (C17D21), then press the ctrl key and select the Days Req. column (F17:F21). (I assume the column headers are in row 17.) Insert a stacked column chart.
 
Upvote 0
Apologies, what is in I$7?

Ah ok, you want a GANTT chart. This will be more than just a chart as the date range is 'additional data'

I would set up some formulas to evaluate if the date on the bottom row is between the start and end date.

So in CELL I18 i have:
Code:
=IF(AND(I$7>=$D18,I$7<=$E18),1,0)
Copy down and then across

Then I have setup conditional formatting on each row.
- If cell = 0 > Text is White
- if Cell = 1 > Text is Chosen Colour & Cell Fill is Chosen Colour.

Half done version shown below:
View attachment 14886


This will then dynamically update.

Hope that helps
Caleeco
 
Upvote 0
Sorry I had created a copy to match your rows for illustation purposes. I forgot to reset the formulas:
Row 7 was just the row for all the date, so in the screenshot above it should be:

Code:
=IF(AND(I$22>=$D18,I$22<=$E18),1,0)

Hopefully that works, let me know if not

Cheers
Caleeco
 
Upvote 0
Superb, thank you - to be fair that should have been obvious!! (rofl)

Sorry I had created a copy to match your rows for illustation purposes. I forgot to reset the formulas:
Row 7 was just the row for all the date, so in the screenshot above it should be:

Code:
=IF(AND(I$22>=$D18,I$22<=$E18),1,0)

Hopefully that works, let me know if not

Cheers
Caleeco
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,824
Members
449,050
Latest member
Bradel

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