Hi all,
I have an Excel Sheet that is used for task planning.
It is broken into SECTIONS (that I just called Team 1 and Team 2 here).
In each section, there are TASKS.
And under each Task, there are ENTRIES.
I just used entries a-h and just two sections with three tasks but the real sheet is over 10,000 lines long and 100 columns wide.
What I am TRYING to achieve:
Whenever a certain column under a task has an entry, I want the cell in the same column but on the level of the "Task description" to be color-marked. For example, in the example, C7 = x, so I want C6 to be color-filled because line 6 is where "Task 1" is described.
Like so.
I HAVE found a solution using just Excel Formula.
Basically, I am using a bunch (over 100) hidden helper-columns.
The first one just contains a formula that writes "x" into the cell if the corresponding cell in Column B contains an entry. So x means: there is a task description on this line.
The other ones basically contain a formula that says this:
Like so
And then all I have to do is use conditional formatting to mark the cells in columns C-F blue, if the corresponding helper-cell = C (C = please color-fill).
While this insanity works, it has three major flaws:
1. Given the Excel is ACTUALLY over 10000 rows long and over 100 columns wide, just the formulas alone increase the size of the empty excel from 1MB to 28MB
2. It is incredibly slow
3. Oh boy is this solution ugly, it hurts by heart
Can someone PLEASE show me a more elegant solution? This Excel is macro-enabled as it already contains some VBA code that some very kind person in this forum suggested.
Thank you
Matt
I have an Excel Sheet that is used for task planning.
It is broken into SECTIONS (that I just called Team 1 and Team 2 here).
In each section, there are TASKS.
And under each Task, there are ENTRIES.
I just used entries a-h and just two sections with three tasks but the real sheet is over 10,000 lines long and 100 columns wide.
What I am TRYING to achieve:
Whenever a certain column under a task has an entry, I want the cell in the same column but on the level of the "Task description" to be color-marked. For example, in the example, C7 = x, so I want C6 to be color-filled because line 6 is where "Task 1" is described.
Like so.
I HAVE found a solution using just Excel Formula.
Basically, I am using a bunch (over 100) hidden helper-columns.
The first one just contains a formula that writes "x" into the cell if the corresponding cell in Column B contains an entry. So x means: there is a task description on this line.
The other ones basically contain a formula that says this:
Code:
if this line contains a task description (if Task-Helper = x)
then
if the cell below = x
then
write "c" into this cell
else
write "" into this cell (keep it blank)
else
if the cell below = x
then
write "x" into this cell (this basically rolls up the x-marker all the way until the formula 'hits' a line with a task description
else
if the entry-cell corresponding to this cell is empty (there is no entry) or if it just contains the value 0
then
write "" into this cell (keep it blank)
else
write "x" into this cell (this means: there is actually an entry like a-h in the corresponding cell)
Like so
And then all I have to do is use conditional formatting to mark the cells in columns C-F blue, if the corresponding helper-cell = C (C = please color-fill).
While this insanity works, it has three major flaws:
1. Given the Excel is ACTUALLY over 10000 rows long and over 100 columns wide, just the formulas alone increase the size of the empty excel from 1MB to 28MB
2. It is incredibly slow
3. Oh boy is this solution ugly, it hurts by heart
Can someone PLEASE show me a more elegant solution? This Excel is macro-enabled as it already contains some VBA code that some very kind person in this forum suggested.
Thank you
Matt
Last edited: