Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Conditional Formatting

This might be very simple, but i cant for the life of me work out how to do it.

I have two columns
A B
1
2

I want to shade the corresponing cell if the other has something in it
(doesnt matter what it is - if could be different every time)

for example
A B
1 a value (shaded)
2 (shaded) a value

What coding do i need?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Conditional Formatting

What do you want ot happen if both cells have a value?

If in that case no colour then in A1:

=AND(A1="",B1<"")

and in B1:

=AND(B1="",A1<"")

If you are trying to stop a entery in the second cell if there is already an
entry in the other one the try Data Validation:

=COUNTA(A1:B1)<2


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"KimC" wrote in message
...
This might be very simple, but i cant for the life of me work out how to
do it.

I have two columns
A B
1
2

I want to shade the corresponing cell if the other has something in it
(doesnt matter what it is - if could be different every time)

for example
A B
1 a value (shaded)
2 (shaded) a value

What coding do i need?




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
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
Conditional formatting ChristinaC Excel Discussion (Misc queries) 4 February 18th 05 11:53 PM


All times are GMT +1. The time now is 12:18 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"