PC Review


Reply
Thread Tools Rate Thread

Colourcoding range between two values

 
 
=?Utf-8?B?U3VuZSBGaWJhZWs=?=
Guest
Posts: n/a
 
      10th Oct 2006
Hi,

In the range C3:BC277 I have an arrayformula. In each row there will always
be one cell with the value 1 and sometimes a cell with the value 2. 2 will
always be to the right of 1.

The sheet is basically a gantt chart, so I would like to colour the cells
with values 1 or 2 - this is easy enough, but colouring the cells between the
1 and the 2 is giving me some trouble. I cannot use xlToRight since all cells
contains a formula, so what to do?

Any pointers?

/Sune
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      10th Oct 2006
Try this as the third conditional format with CF's (first CF for value 1 &
second for value 2)

=AND(SUM($C3:C3)=1,SUM(D3:$BC3) = 2)

When entering this ensure C3 is the selected cell. Copy and paste-special
formats to your range C3:BC277

Depending on what you need you might try Count instead of Sum or something
else.

Regards,
Peter T


"Sune Fibaek" <(E-Mail Removed)> wrote in message
news:0C2DF2F7-47B9-440D-8F70-(E-Mail Removed)...
> Hi,
>
> In the range C3:BC277 I have an arrayformula. In each row there will

always
> be one cell with the value 1 and sometimes a cell with the value 2. 2 will
> always be to the right of 1.
>
> The sheet is basically a gantt chart, so I would like to colour the cells
> with values 1 or 2 - this is easy enough, but colouring the cells between

the
> 1 and the 2 is giving me some trouble. I cannot use xlToRight since all

cells
> contains a formula, so what to do?
>
> Any pointers?
>
> /Sune



 
Reply With Quote
 
=?Utf-8?B?U3VuZSBGaWJhZWs=?=
Guest
Posts: n/a
 
      10th Oct 2006
Peter,

That does exactly what I wanted it to!

I almost had a VBA solution, but that is about 50 lines of quite badly
written code and obviously must be run whenever the range changes and it has
just been scrapped.

Thanks loads,

/Sune

"Peter T" wrote:

> Try this as the third conditional format with CF's (first CF for value 1 &
> second for value 2)
>
> =AND(SUM($C3:C3)=1,SUM(D3:$BC3) = 2)
>
> When entering this ensure C3 is the selected cell. Copy and paste-special
> formats to your range C3:BC277
>
> Depending on what you need you might try Count instead of Sum or something
> else.
>
> Regards,
> Peter T
>
>
> "Sune Fibaek" <(E-Mail Removed)> wrote in message
> news:0C2DF2F7-47B9-440D-8F70-(E-Mail Removed)...
> > Hi,
> >
> > In the range C3:BC277 I have an arrayformula. In each row there will

> always
> > be one cell with the value 1 and sometimes a cell with the value 2. 2 will
> > always be to the right of 1.
> >
> > The sheet is basically a gantt chart, so I would like to colour the cells
> > with values 1 or 2 - this is easy enough, but colouring the cells between

> the
> > 1 and the 2 is giving me some trouble. I cannot use xlToRight since all

> cells
> > contains a formula, so what to do?
> >
> > Any pointers?
> >
> > /Sune

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize Table Range to exclude zero values and Input New Range into achart object jparnold Microsoft Excel Programming 10 22nd Dec 2009 04:09 PM
SUMPRODUCT or SUMIF if any values in a range equal any values in another range PCLIVE Microsoft Excel Worksheet Functions 3 15th Jul 2009 07:43 PM
Cond. Format Data Bars of range based on values of another range alexmo Microsoft Excel Worksheet Functions 4 16th Jan 2009 04:03 AM
loop through cells in a range and pick up corresponding cell values in another range patrice.cezzar@gmail.com Microsoft Excel Programming 9 19th Oct 2006 05:11 AM
Data Range - Why wont it pick up my series values and Xaxis Values? vankallm Microsoft Excel Charting 1 8th May 2004 06:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:30 PM.