VBA apply conditional formatting to another cell base on

harky

Active Member
Joined
Apr 8, 2010
Messages
405
Office Version
  1. 2021
  2. 2019
Platform
  1. Windows
The conditional formatting is base on Col F to change colour.

But due to Col B is not in a range so i cant use conditional formatting.

Possible to use VBA apply conditional formatting base on Col F to Col B, without change any Col B data?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
You can use conditional formatting to highlight a cell based on the value in a different cell.
What are you trying to do?
 
Upvote 0
The data which i want to highlight is at Col B
but i cant use Col B on conditional formatting because there is no range data (number).

My range data is located at Col F

You can use conditional formatting to highlight a cell based on the value in a different cell.
What are you trying to do?
 
Upvote 0
But which cells do you want to highlight & why, what are the criteria?
 
Upvote 0
highlight is at Col B

data is located at Col F

The reason is Col B cannot use formula, is like a data of code number so i cant use it.

But which cells do you want to highlight & why, what are the criteria?
 
Last edited:
Upvote 0
You can still highlight col B using conditional formatting, but if you don't tell me what the criteria are, I cannot help.
So I will ask you once more, what are the criteria?
 
Upvote 0
ABCDEF
0010.1
0020.2
0030.3
0040.4
0050.5
0060.6
0070.7
0080.8
0090.9
1001.0

<tbody>
</tbody>


I used conditional formatting on Col F

It suppose to highlight Col A if Col F is between 0.1 to 0.5 (let say green colour)

=AND($F1>=0.1,<=0.5)
 
Upvote 0
something like below?

each range used diff colour.

You can still highlight col B using conditional formatting, but if you don't tell me what the criteria are, I cannot help.
So I will ask you once more, what are the criteria?
 
Upvote 0
In that case select B1:B10 & in conditional formatting > New rule > Use a formula
=AND($F1>=0.1, $F1<=0.5)
 
Upvote 0
oh haha..

i dont know tht can be done like this.
i sound silly.

Thanks

In that case select B1:B10 & in conditional formatting > New rule > Use a formula
=AND($F1>=0.1, $F1<=0.5)
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,268
Members
448,558
Latest member
aivin

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