Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Change cell color if data present excel 2002

I have a worksheet with two columns and multiple rows of data in a
workbook that contains multiple sheets. Column "A" has location
information and column "B" has the owner information. I would like to
know how to automate the sheet to look at column "A" and if there is
data present then look at the corresponding cell in column "B" (i.e
"A3" then look at "B3") and if there isn't any data in "B" then change
the color.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Change cell color if data present excel 2002

Hi Mike
try the following
- select cells B1:B100
- goto Format - conditional Format
- enter the following formula
=(A1<"")*(B1="")
- choose a color

--
Regards
Frank Kabel
Frankfurt, Germany


Mike wrote:
I have a worksheet with two columns and multiple rows of data in a
workbook that contains multiple sheets. Column "A" has location
information and column "B" has the owner information. I would like

to
know how to automate the sheet to look at column "A" and if there is
data present then look at the corresponding cell in column "B" (i.e
"A3" then look at "B3") and if there isn't any data in "B" then

change
the color.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Change cell color if data present excel 2002

Hi Frank,

Thanks for the reply, much appreciated! I used a version of this for
a workaround conditional format selected cells equal a cell that is
outside my range and always blank. I tried to use your code
conditional format condition 1 formula is "your code below".

Nothing changed, I removed my conditional formatting and changed some
of the cells and nothing...I must be doing something wrong?

Mike

"Frank Kabel" wrote in message ...
Hi Mike
try the following
- select cells B1:B100
- goto Format - conditional Format
- enter the following formula
=(A1<"")*(B1="")
- choose a color

--
Regards
Frank Kabel
Frankfurt, Germany


Mike wrote:
I have a worksheet with two columns and multiple rows of data in a
workbook that contains multiple sheets. Column "A" has location
information and column "B" has the owner information. I would like

to
know how to automate the sheet to look at column "A" and if there is
data present then look at the corresponding cell in column "B" (i.e
"A3" then look at "B3") and if there isn't any data in "B" then

change
the color.

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
Cell color does not show on screen excel 2002 Talk to me Excel Discussion (Misc queries) 1 April 3rd 09 07:40 PM
Any way to change the color of the cell corner identifier that shows a comment is present? Keith R[_2_] Excel Discussion (Misc queries) 4 December 6th 07 02:12 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
How do I change cell color based upon data range within the cell? Chris Sanders Excel Worksheet Functions 1 March 6th 06 08:59 PM
How do I change fill color in excel based on data in the cell Jason Southco Excel Worksheet Functions 1 September 29th 05 04:56 PM


All times are GMT +1. The time now is 03:24 AM.

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

About Us

"It's about Microsoft Excel"