Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SRN SRN is offline
external usenet poster
 
Posts: 6
Default conditional formatting

hi

I am trying to format a cell to change two two different colors when values
in two other cells meet some conditions. For example

The cell being formatted is E2 (This cell will have no text just a color
pattern)
I want it to change to Yellow when a particular date is reached in B2 (This
I have figured out)
I want the cell to change to green when the first condition is met AND there
is any alphanumeric data in F2

Any ideas or suggestions. Any help would be appreciated

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default conditional formatting

Try something like this as the CF's "Formula Is" for E2:
=AND(B2= --"19 Oct 2008",ISTEXT(F2))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"SRN" wrote:
I am trying to format a cell to change two two different colors when values
in two other cells meet some conditions. For example

The cell being formatted is E2 (This cell will have no text just a color
pattern)
I want it to change to Yellow when a particular date is reached in B2 (This
I have figured out)
I want the cell to change to green when the first condition is met AND there
is any alphanumeric data in F2

Any ideas or suggestions. Any help would be appreciated

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default conditional formatting

Hi,

1. Select the cell E2 and choose Format, Conditional Formatting
2. For the first condition choose Formula is from the first drop down
3. In the box to the right enter
=AND($B$2=DATE(2008,10,1),$F$2<"")
Adjust the DATE argument to meet your needs.
4. Click the Format button and choose Green on the patterns tab and click OK
once
5. Click Add
6. Choose Formula is from the first drop down and enter the formula
=$B$2=DATE(2008,10,1)
7. Set the Format of this condition to yellow.

If you are using 2007 you need to tell us because the steps are different.

If this helps, please click the Yes button.
--
Thanks,
Shane Devenshire


"SRN" wrote:

hi

I am trying to format a cell to change two two different colors when values
in two other cells meet some conditions. For example

The cell being formatted is E2 (This cell will have no text just a color
pattern)
I want it to change to Yellow when a particular date is reached in B2 (This
I have figured out)
I want the cell to change to green when the first condition is met AND there
is any alphanumeric data in F2

Any ideas or suggestions. Any help would be appreciated

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SRN SRN is offline
external usenet poster
 
Posts: 6
Default conditional formatting

Max
thanks for the response but the problem is that the date in b2 is not fixed
it is generated by the following formula

=AND(B2<"",B2<TODAY()+183)

or in some caes by

=TODAY()39857

As you probably figured out I am new at this and maybe it is not possible to
change the color this way

Thanks




"Max" wrote:

Try something like this as the CF's "Formula Is" for E2:
=AND(B2= --"19 Oct 2008",ISTEXT(F2))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"SRN" wrote:
I am trying to format a cell to change two two different colors when values
in two other cells meet some conditions. For example

The cell being formatted is E2 (This cell will have no text just a color
pattern)
I want it to change to Yellow when a particular date is reached in B2 (This
I have figured out)
I want the cell to change to green when the first condition is met AND there
is any alphanumeric data in F2

Any ideas or suggestions. Any help would be appreciated

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SRN SRN is offline
external usenet poster
 
Posts: 6
Default conditional formatting

Works perfectly!!

Thanks a lot guys

SRN

"ShaneDevenshire" wrote:

Hi,

1. Select the cell E2 and choose Format, Conditional Formatting
2. For the first condition choose Formula is from the first drop down
3. In the box to the right enter
=AND($B$2=DATE(2008,10,1),$F$2<"")
Adjust the DATE argument to meet your needs.
4. Click the Format button and choose Green on the patterns tab and click OK
once
5. Click Add
6. Choose Formula is from the first drop down and enter the formula
=$B$2=DATE(2008,10,1)
7. Set the Format of this condition to yellow.

If you are using 2007 you need to tell us because the steps are different.

If this helps, please click the Yes button.
--
Thanks,
Shane Devenshire


"SRN" wrote:

hi

I am trying to format a cell to change two two different colors when values
in two other cells meet some conditions. For example

The cell being formatted is E2 (This cell will have no text just a color
pattern)
I want it to change to Yellow when a particular date is reached in B2 (This
I have figured out)
I want the cell to change to green when the first condition is met AND there
is any alphanumeric data in F2

Any ideas or suggestions. Any help would be appreciated

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 05:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"