Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old January 23rd 07, 10:11 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jan 2007
Posts: 22
Default Add background color to cell

Using Excel Professional 2003 - I have a text value in B1 and text value in
I1. If both values are true, I would like to change the background color in
B1 to red. For example, if B1="Overdue" and I1="WebForm" then B1 is
"Overdue" in red otherwise no background color. Tried conditional formatting
but don't think that works when two conditions have to be true.

Also tried IF(AND) statement but don't know what or how to specify the
background variable or word. I know vbRed.
=IF((AND(B2="Overdue",I2="WebForm")),"Overdue".vbR ed,"OVERDUE") doesn't work
- error.

Any help would be appreciated. Thanks.

  #2   Report Post  
Old January 23rd 07, 10:27 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jul 2006
Posts: 222
Default Add background color to cell

Conditional formatting works for this. Try putting the condition as as
formula i.e. Formula Is, then enter =AND(B1"",I1"") and set the formatting
you want. If the two cells are greater than null, the cell should change
colour

"Rich K." wrote:

Using Excel Professional 2003 - I have a text value in B1 and text value in
I1. If both values are true, I would like to change the background color in
B1 to red. For example, if B1="Overdue" and I1="WebForm" then B1 is
"Overdue" in red otherwise no background color. Tried conditional formatting
but don't think that works when two conditions have to be true.

Also tried IF(AND) statement but don't know what or how to specify the
background variable or word. I know vbRed.
=IF((AND(B2="Overdue",I2="WebForm")),"Overdue".vbR ed,"OVERDUE") doesn't work
- error.

Any help would be appreciated. Thanks.

  #3   Report Post  
Old January 23rd 07, 10:56 PM posted to microsoft.public.excel.misc
external usenet poster
 
First recorded activity by ExcelBanter: Jan 2007
Posts: 22
Default Add background color to cell

Thank you. Worked like a charm - my mistake was trying to do in two
statements instead of combining into one.

"bigwheel" wrote:

Conditional formatting works for this. Try putting the condition as as
formula i.e. Formula Is, then enter =AND(B1"",I1"") and set the formatting
you want. If the two cells are greater than null, the cell should change
colour

"Rich K." wrote:

Using Excel Professional 2003 - I have a text value in B1 and text value in
I1. If both values are true, I would like to change the background color in
B1 to red. For example, if B1="Overdue" and I1="WebForm" then B1 is
"Overdue" in red otherwise no background color. Tried conditional formatting
but don't think that works when two conditions have to be true.

Also tried IF(AND) statement but don't know what or how to specify the
background variable or word. I know vbRed.
=IF((AND(B2="Overdue",I2="WebForm")),"Overdue".vbR ed,"OVERDUE") doesn't work
- error.

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
Change Cell background color by selection Bob Wall Excel Worksheet Functions 1 August 27th 06 02:13 AM
Cell background color update SalamElias Excel Worksheet Functions 2 July 30th 06 12:23 PM
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
What is the macro to change background based on numeric cell value Still learning Excel Worksheet Functions 2 June 21st 06 05:58 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 02:36 AM


All times are GMT +1. The time now is 02:23 PM.

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017