If cell is black color cell next to it black

berty2000

Board Regular
Joined
Mar 29, 2011
Messages
71
Hi guys

Is it possible by conditional formatting or VBA code to check down a column in "B1:B300" and if any cells are black then color the cells next to it in column "C" and "D" black as well. :confused:

Thanks in advance
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Are the black cells in B1:B300 themselves black by Conditional Formatting or some other way? If Conditional Formatting then use the same conditions to format the other two columns.
 
Upvote 0
How will the cells in B1:B300 have been formatted black?

Manually, with conditional formatting or VBA?
 
Upvote 0
Colours the box with conditional formatting =ISTEXT(B1) only colours the box if text in it, the next two boxes in "C" and "D" I want to colour but will always be empty.
 
Upvote 0
If I understand correctly, use nearly the same formula in columns C:D, just make the reference always to column B. That is, =ISTEXT($B1)

OK?
 
Upvote 0
Or you could make them all exactly the same by removing the existing Conditional Formatting then selecting B1:D300 and applying the CF formula suggested by Fazza
=ISTEXT($B1)
 
Upvote 0
Thanks guys this worked so simple didnt think of referencing back to first column.

Trying to think of VB code to do it but this easier

Cheers guys :)
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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