Conditional Formatting in the same cell

imback2nite

Board Regular
Joined
Oct 30, 2004
Messages
211
Office Version
  1. 2003 or older
Platform
  1. Windows
Hi and thanks for looking at what I would think would be easy but for some reason I can't understand. I'm trying to use Conditional Formula. This condition will reside in cell G8 and be dragged down to cell G44.
Condition #1 works great. Condition #2 will not. Is this because the Condition will reside in the same cell? Anyway, I appreciate your time.
Condition #1 is
Rich (BB code):
=NOT(ISBLANK($B8))
Condition #2 is
Rich (BB code):
=AND(ISNUMBER($F8),ISBLANK($G8))
 
Here are the two images. The Conditional Formatting conditions. I would like the formatting to reside in cell G8. As I said in an earlier post, both conditions work, just not together. I'm using Excel 2003 which is a dinosaur but it's what I have to work with.
Conditional Format Problem2.jpg
Conditional Format Problem.jpg
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thanks for the images. I do have your version to test so what happens if you swap the order of the conditions (with the same data as above)?
Does G8 then get coloured but no border?
 
Upvote 0
Thanks for the images. I do have your version to test so what happens if you swap the order of the conditions (with the same data as above)?
Does G8 then get coloured but no border?
Yes. If I swap the conditions cell F8 will get coloured with no border. But when is F8 is no longer blank the colour will disappear and the border will appear. Best result will be if there is information in cell B8 there will be a border in cell F8. After that when there is information in cell F8 and G8 is blank, F8 will be coloured. Then when G8 has information the colour in cell G8 will disappear but will still have the border. Am I asking too much?
 
Upvote 0
I'm not quite sure what actual combinations of circumstances you are actually likely to have in those 3 columns (B, F & G) but give this a try.

Condition 1 with the formatting of both border and colour
=AND(NOT(ISBLANK($B8)),ISNUMBER($F8),ISBLANK($G8))

Condition 2 with the formatting of border only
=NOT(ISBLANK($B8))
 
Upvote 0
Solution
I'm not quite sure what actual combinations of circumstances you are actually likely to have in those 3 columns (B, F & G) but give this a try.

Condition 1 with the formatting of both border and colour
=AND(NOT(ISBLANK($B8)),ISNUMBER($F8),ISBLANK($G8))

Condition 2 with the formatting of border only
=NOT(ISBLANK($B8))
That's perfect! I never thought of that! I was trying to add another column but that would have created a whole new set of problems! Thank you!
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top