ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional Formatting (https://www.excelbanter.com/excel-discussion-misc-queries/81628-conditional-formatting.html)

umba-sr

Conditional Formatting
 
Hi,

Is there a way to apply conditional formatting to a range of cells that
depend not on their own value, but on a value of another cell? If not with
Conditional Formating, then with Functions or, in final case, Programming?
Also, can I make more than three conditions in Conditional Formatting?

I know questions look ridiculous, but I need to find a way to do it. If not,
then I better start programming.

Ron Coderre

Conditional Formatting
 
You should still be able to use Conditional Formatting...

<Format<Conditional Formatting
Click the first drop-down
Change the selection from "Cell Value is" to "Formula is"
Then reference the cell you want to compare to:

Example:
If you want cell B1 to have red text if A1 is greater than zero:
Formula Is: =A10


Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"umba-sr" wrote:

Hi,

Is there a way to apply conditional formatting to a range of cells that
depend not on their own value, but on a value of another cell? If not with
Conditional Formating, then with Functions or, in final case, Programming?
Also, can I make more than three conditions in Conditional Formatting?

I know questions look ridiculous, but I need to find a way to do it. If not,
then I better start programming.


umba-sr

Conditional Formatting
 
Thanks, it does help, but I sort of knew that already.
But allow me to give you my own example. It's a little bit more complex.

I have 30 columns with dates as labels, which means 30 days in month. Now,
bellow labels I have amount of money inserted every day. What I want is for
every column to change its color basing on present date of which I have
formula Today() on top.
So, If I open file on April 5, I want columns of before this date to turn
blue, column of April 5 to turn red, and columns of future dates to turn
yellow or remain at automatic, doesn't matter. I managed to do that with
label cells of course, but I need a fast way of how to do it with cells
bellow, cause I don't want to format every single column for every month of
the year.

Sorry for all the trouble and text you have to read. It would be OK if you
couldn't assist me, anyway.

"Ron Coderre" wrote:

You should still be able to use Conditional Formatting...

<Format<Conditional Formatting
Click the first drop-down
Change the selection from "Cell Value is" to "Formula is"
Then reference the cell you want to compare to:

Example:
If you want cell B1 to have red text if A1 is greater than zero:
Formula Is: =A10


Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"umba-sr" wrote:

Hi,

Is there a way to apply conditional formatting to a range of cells that
depend not on their own value, but on a value of another cell? If not with
Conditional Formating, then with Functions or, in final case, Programming?
Also, can I make more than three conditions in Conditional Formatting?

I know questions look ridiculous, but I need to find a way to do it. If not,
then I better start programming.


Pete_UK

Conditional Formatting
 
Assuming your dates are in B1 to AD1 (30 of them), and that your
monetary data is thus in B2 to AD20 (say), then highlight B2:AD20,
ensuring that you start with cell B2, and click Format | Conditional
Format and select Formula Is and enter this:

=B$1<TODAY()

and choose Blue on the Patterns tab. Then click Add for the second
condition and enter Formula Is;

=B$1=TODAY()

and choose Red on the Patterns tab. Then for your third condition,
Formula Is:

=B$1TODAY()

and select Yellow on the Patterns tab.

Hope this helps.

Pete


umba-sr

Conditional Formatting
 
It does help, of course. Thanks a lot. Silly me, I never thought of putting
just one dollar sign for rows.
Can you just tell me if there is a way to make more than three conditions
with Conditional Formatting, or in any other way similar to this one.

"Pete_UK" wrote:

Assuming your dates are in B1 to AD1 (30 of them), and that your
monetary data is thus in B2 to AD20 (say), then highlight B2:AD20,
ensuring that you start with cell B2, and click Format | Conditional
Format and select Formula Is and enter this:

=B$1<TODAY()

and choose Blue on the Patterns tab. Then click Add for the second
condition and enter Formula Is;

=B$1=TODAY()

and choose Red on the Patterns tab. Then for your third condition,
Formula Is:

=B$1TODAY()

and select Yellow on the Patterns tab.

Hope this helps.

Pete



John James

Conditional Formatting
 

Hi umba-sr,

Try these references:

http://www.mcgimpsey.com/excel/conditional6.html
http://tinyurl.com/ktyqx
http://tinyurl.com/efguy

umba-sr Wrote:

Can you just tell me if there is a way to make more than three
conditions
with Conditional Formatting, or in any other way similar to this one.



--
John James
------------------------------------------------------------------------
John James's Profile: http://www.excelforum.com/member.php...o&userid=32690
View this thread: http://www.excelforum.com/showthread...hreadid=530013



All times are GMT +1. The time now is 04:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com