Forum Discussion
manosh
Jan 17, 2019Copper Contributor
Create 'incell' 5 day gant with diff colors to show office, home but working, not available
Hello!
I'd like to create an overall manpower chart with coloured symbols to give an at a glance idea of whether the staff is
1. working from office (dark green)
2. working from home (light green)
3. not available.
Currently i have a helper cell where i can quickly type out "O", "H", "X" but i'd like my display cell to convert this into an appropriate coloured block which is visually more appealing.
Typical weeks might be
1. OOOOO - working in office for 5 days - solid dark green block
2. HHOOX - work two days from home, two days in office and not available - Light green x 2 blocks, Dark green x 2 blocks and a red block.
Visual example attached.
Currently i am formatting the display cell manually, but as staff movement changes its quite tedious.
I would have done a unique cell for each day but it makes for a long table so went with the incell approach.
Any help would be appreciated.
I guess that's only with VBA programming. As variant the code will analyse the cell below, depends on combination of symbols combine Wingding font blocks with their own colors into one text and return it to your cell, formatting it as Wingding.
- NauthstarIron Contributor
Hi,
You can create something like the attached and you won't need to have helper rows.
Hope that helps.
Kind regards
- manoshCopper ContributorThanks N,
As Sergei mention, its 5 diff colors in 1 cell to represent the week. As I understood that shall be 5 different colors blocks in ONE cell which covers entire week. One cell - one week - 5 colors.
Hi,
The conditional formatting rule could be like
The key point, if your range starts from B1 in the rule you shall use B2 (next row and relative references). Please check attached.
- manoshCopper Contributor
Thanks Sergei.
I was avoiding putting each day in a column since i have
1. other references in cells above which breaks up into non adjacent cells
2. there are numerous days that i have to consider in the programme.
Can you suggest any other way that makes in cell with 5 block symbols to indicate days... that would really help!
thanks
M
I guess that's only with VBA programming. As variant the code will analyse the cell below, depends on combination of symbols combine Wingding font blocks with their own colors into one text and return it to your cell, formatting it as Wingding.