If anybody can suggest a way to tackle this problem I will be very happy:
I have a table in Excel, to keep things simple for now, 3 rows by 3 columns (the actual table is bigger) - something like this:
[tt]
| C1 C2 C3
==============
R1 | 12 05 22
R2 | 06 16 03
R3 | 01 09 35
[/tt]
What I need to do is shade the cells with the highest values, until the combined total of the shaded values >80
So in the example above, the following cells would be shaded:-
R3C3 = 35
R1C3 = 22
R2C2 = 16
R1C1 = 12
TOTAL = 85
So the final output would look like this:
[tt]
| C1 C2 C3
==============
R1 | [highlight]12[/highlight] 05 [highlight]22[/highlight]
R2 | 06 [highlight]16[/highlight] 03
R3 | 01 09 [highlight]35[/highlight]
[/tt]
I do not know whether I would be best tackling this with VBA or if there is a method that avoids VBA code. Either way I really am stuck at the moment as to how to start.
Has anybody tackled anything like this before - if so, how?
Thanks
Ade
I have a table in Excel, to keep things simple for now, 3 rows by 3 columns (the actual table is bigger) - something like this:
[tt]
| C1 C2 C3
==============
R1 | 12 05 22
R2 | 06 16 03
R3 | 01 09 35
[/tt]
What I need to do is shade the cells with the highest values, until the combined total of the shaded values >80
So in the example above, the following cells would be shaded:-
R3C3 = 35
R1C3 = 22
R2C2 = 16
R1C1 = 12
TOTAL = 85
So the final output would look like this:
[tt]
| C1 C2 C3
==============
R1 | [highlight]12[/highlight] 05 [highlight]22[/highlight]
R2 | 06 [highlight]16[/highlight] 03
R3 | 01 09 [highlight]35[/highlight]
[/tt]
I do not know whether I would be best tackling this with VBA or if there is a method that avoids VBA code. Either way I really am stuck at the moment as to how to start.
Has anybody tackled anything like this before - if so, how?
Thanks
Ade