I'm trying to make this by Excel rules:
That any cell (in column B) that is near (beside) "1" (in A) will be red, and any cell near (beside) "2" will be green.
Is there a possible way to do it (without VBA, only with excel rules)?
You need to use Conditional Formatting
using the last rule --> Use a formula to determine which cells to format
Column B
range from B1:B8
Home
Tab --> From Styles
Group --> Click on Conditional Formatting
--> Click New
(Alternatively, shortcut to open the New Formatting Rule
window box is --> ALT+H+L+N )Use a formula to determine which cells to format
edit the rule description
enter the following formula:=A1=1
Format
--> Choose your preferences.OK
-> Twice. Done.Same way for 2
repeat the process but change A1=2
and change the formatting. Or you can select the range B1:B8
press ALT+H+L+R to open Conditional Formatting Rules Manager
--> Click Duplicate
--> Click on Edit
--> Change in the rule description 1
to 2
and change the formatting press OK
done.
near
here? If you meant to say only its equal to1
or2
then select the rangeB
, Goto CF (ALT
+H
+L
+N
<-- Shortcut to open), Select the last rule and enter the formula as=A1=1
click format to choose preference and selectOK
twice done. Same way for2
. If not then explain more. Also numbers shouldn't be within speechmarks/quotes.