Create 'incell' 5 day gant with diff colors to show office, home but working, not available

New Contributor


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.


6 Replies



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.

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!




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.



You can create something like the attached and you won't need to have helper rows.


Hope that helps.


Kind regards


As I understood that shall be 5 different colors blocks in ONE cell which covers entire week. One cell - one week - 5 colors.

Thanks N,
As Sergei mention, its 5 diff colors in 1 cell to represent the week.
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies