Visual a rota in a Gantt chart

njenkins

New Member
Joined
Nov 24, 2012
Messages
23
I have a rota with job roles as columns and a dates down the first column and initials in the cells displaying who is in what role that day.

I would like to link this data to a worksheet that has this information as a Gantt chart - with roles down column A and dates long the columns with a bar chart effect (each persons initial as a different colour) blocking out the cells where they are working
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I have done these on single sheets but they are adaptable to 2. If you have trouble with that, please advise which of these two (or something else) you actually want.

Apply the Conditional Formatting to H2:Q4

Excel Workbook
ABCDEFGHIJKLMNOPQ
1Job 1Job 2Job 301-Oct-1902-Oct-1903-Oct-1904-Oct-1905-Oct-1906-Oct-1907-Oct-1908-Oct-1909-Oct-1910-Oct-19
201-Oct-19EFJob 1
302-Oct-19ABJob 2
403-Oct-19ABJob 3
504-Oct-19AB
605-Oct-19ABCD
706-Oct-19CDAB
807-Oct-19CDAB
908-Oct-19CDEF
1009-Oct-19CDEF
1110-Oct-19EF
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H21. / Formula is =INDEX($B$2:$D$11,MATCH(H$1,$A$2:$A$11,0),MATCH($G2,$B$1:$D$1,0))="EF"Abc
H22. / Formula is =INDEX($B$2:$D$11,MATCH(H$1,$A$2:$A$11,0),MATCH($G2,$B$1:$D$1,0))="CD"Abc
H23. / Formula is =INDEX($B$2:$D$11,MATCH(H$1,$A$2:$A$11,0),MATCH($G2,$B$1:$D$1,0))="AB"Abc



Below, the formula in H2 is copied across and down & the CF applied to H2:Q4

Excel Workbook
ABCDEFGHIJKLMNOPQ
1Job 1Job 2Job 301-Oct-1902-Oct-1903-Oct-1904-Oct-1905-Oct-1906-Oct-1907-Oct-1908-Oct-1909-Oct-1910-Oct-19
201-Oct-19EFJob 1 ABABCDCDCDCD
302-Oct-19ABJob 2EFABABAB
403-Oct-19ABJob 3ABCDEFEFEF
504-Oct-19AB
605-Oct-19ABCD
706-Oct-19CDAB
807-Oct-19CDAB
908-Oct-19CDEF
1009-Oct-19CDEF
1110-Oct-19EF
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H21. / Formula is =H2="EF"Abc
H22. / Formula is =H2="CD"Abc
H23. / Formula is =H2="AB"Abc
 
Upvote 0
Thank you.
I can do this using a paste special and transposing the data. Is there anyway of linking the two tables so that any change in the vertical data automatically changes in the other?
 
Upvote 0
Is there anyway of linking the two tables so that any change in the vertical data automatically changes in the other?
I assume that you mean the dates and job titles?
If so ..
H1 copied across as far as you might ever need. [I have assumed that the dates in column A are 'real' dates (numbers) not text values]
G2 copied down as far as you might ever need. My layout on the same sheet means that my G2 can only get copied down as far as row 6 but you should be unrestricted if your second table is on another sheet.
H2 (across and down) has also changed a little

Conditional formatting for either option remains the same but is applied to whatever columns and rows are determined by where you copied the headings to.

Excel Workbook
ABCDEFGHIJKLMNOPQR
1Job 1Job 2Job 301-Oct-1902-Oct-1903-Oct-1904-Oct-1905-Oct-1906-Oct-1907-Oct-1908-Oct-1909-Oct-1910-Oct-19
201-Oct-19EFJob 1 ABABCDCDCDCD
302-Oct-19ABJob 2EFABABAB
403-Oct-19ABJob 3ABCDEFEFEF
504-Oct-19AB
605-Oct-19ABCD
706-Oct-19CDAB
807-Oct-19CDAB
908-Oct-19CDEF
1009-Oct-19CDEF
1110-Oct-19EF
12
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H21. / Formula is =H2="EF"Abc
H22. / Formula is =H2="CD"Abc
H23. / Formula is =H2="AB"Abc
 
Upvote 0
apologies.

I meant the data in the cells might change. So people may swap roles on a particular day
 
Upvote 0
apologies.

I meant the data in the cells might change. So people may swap roles on a particular day
In that case there is nothing to do.
The suggestions that I made in post 2 are automatically updated if the data in B2:D11 change. Did you try changing that data?

For example, here I have taken the sheet exactly as posted as my second example in post 2 and moved 'AB' from cells B3:B4 to D3:D4 and 'EF' from C2 to B4 and the new arrangement is automatically shown in columns G:Q

Excel Workbook
ABCDEFGHIJKLMNOPQ
1Job 1Job 2Job 301-Oct-1902-Oct-1903-Oct-1904-Oct-1905-Oct-1906-Oct-1907-Oct-1908-Oct-1909-Oct-1910-Oct-19
201-Oct-19Job 1 EFCDCDCDCD
302-Oct-19ABJob 2ABABAB
403-Oct-19EFABJob 3ABABABCDEFEFEF
504-Oct-19AB
605-Oct-19ABCD
706-Oct-19CDAB
807-Oct-19CDAB
908-Oct-19CDEF
1009-Oct-19CDEF
1110-Oct-19EF
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H21. / Formula is =H2="EF"Abc
H22. / Formula is =H2="CD"Abc
H23. / Formula is =H2="AB"Abc
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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