Conditional formatting (vba)

tsitsicat1

New Member
Joined
Jun 27, 2018
Messages
10
Hey there!!
I have a problem with my worksheet.

[TABLE="width: 746"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]A/A[/TD]
[TD]name[/TD]
[TD]ΠΕΡΙΟΧΗ[/TD]
[TD]ΤΚ[/TD]
[TD]REP[/TD]
[TD]FOCUS[/TD]
[/TR]
[TR]
[TD]41308[/TD]
[TD]ALBERT NAME[/TD]
[TD]ATHENS[/TD]
[TD]33051[/TD]
[TD]109[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]21776[/TD]
[TD]KONSTANT NAME[/TD]
[TD]ATHENS[/TD]
[TD]35001[/TD]
[TD]109[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]38235[/TD]
[TD]TSAPROS NAME[/TD]
[TD]LAMIA[/TD]
[TD]35002[/TD]
[TD]109[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]40982[/TD]
[TD]ANESTOS[/TD]
[TD]LAMIA[/TD]
[TD]35004[/TD]
[TD]109[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]35287[/TD]
[TD]MATSOS NAME[/TD]
[TD]MIKONOS[/TD]
[TD]35004[/TD]
[TD]109[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]

I would like to color the row
from A to F if 1 with green
from A to F if 2 with blue
from A to F if 3 with orange
from A to F if 4 with red

Can you help me please?
Thanks in advance
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
* Highlight all your data from A2:F1000 or whatever row it ends on.
* Start a new conditional format - Use a formula to determine the cell format
* Type: =$F2=1
* Choose the format to fill with green

Do the same thing for the other colors but type: =$F2=2 for blue.... and so on

Jeff
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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