I'm gone take the Conditional Formatting from some of my data, that someone did for me long time ago, but it stop at 3 consecutive numbers, and I would like if someone can help me, by going further with the 4 consecutive numbers with the appropriate borders.
My data start in : C30:G30. and they are : 2,17,18,35,46
Here are the Conditional Formatting formulas ( If someone need them for their own stuff make sure you respect the order I am gone give it on this post other wise the coloring get mix up ).The color are red and green.
-------------------------------------------------------------------------
Cell : C30.
first formula : =AND(C30=D30-1,C30=E30-2)
color : Red
Borders : Top/Bottom/left.
Cell : C30.
first formula : =AND(C30=D30-1,C30<>E30-2)
color : Green
Borders : Top/Bottom/left.
-------------------------------------------------------------------------
Cell : D30.
first formula : =AND(D30=E30-1,D30=F30-2)
color : Red
Borders : Top/Bottom/left.
Cell : D30.
first formula : =AND(D30=C30+1,D30=E30-1)
color : Red
Borders : Top/Bottom.
Cell : D30.
first formula : =AND(D30<>C30+1,D30=E30-1)
color : Green
Borders : Top/Bottom/left.
Cell : D30.
first formula : =AND(D30=C30+1,D30<>E30-1)
color : Green
Borders : Top/Bottom/Right.
-------------------------------------------------------------------------
Cell : E30.
first formula : =AND(E30=F30-1,E30=G30-2)
color : Red
Borders : Top/Bottom/Left.
Cell : E30.
first formula : =AND(E30=D30+1,E30=F30-1)
color : Red
Borders : Top/Bottom.
Cell : E30.
first formula : =AND(E30=C30+2,E30=D30+1)
color : Red
Borders : Top/Bottom/Right.
Cell : E30.
first formula : =AND(E30<>D30+1,E30=F30-1)
color : Green
Borders : Top/Bottom/Left.
Cell : E30.
first formula : =AND(E30=D30+1,E30<>F30-1)
color : Green
Borders : Top/Bottom/Right.
-------------------------------------------------------------------------
Cell : F30.
first formula : =AND(F30=E30+1,F30=G30-1)
color : Red
Borders : Top/Bottom.
Cell : F30.
first formula : =AND(F30=D30+2,F30=E30+1)
color : Red
Borders : Top/Bottom/Right.
Cell : F30.
first formula : =AND(F30<>E30+1,F30=G30-1)
color : Green
Borders : Top/Bottom/Left.
Cell : F30.
first formula : =AND(F30=E30+1,F30<>G30-1)
color : Green
Borders : Top/Bottom/Right.
-------------------------------------------------------------------------
Cell : G30.
first formula : =AND(G30=E30+2,G30=F30+1)
color : Red
Borders : Top/Bottom/Right.
Cell : G30.
first formula : =AND(G30=F30+1,G30<>E30+2)
color : Green
Borders : Top/Bottom/Right.
-------------------------------------------------------------------------
Those above are working perfectly for me, here below are the formula I tried to do for the 4 consecutive numbers but for some reason ( eather there are not correct or I don't place them in the right order in each cell with the Conditional Formatting ?
Here they are :
Cell : C30.
first formula : =AND(C30=D30-1,C30=E30-2,C30=F30-3)
color : Blue
Borders : Top/Bottom/Left.
Cell : D30.
first formula : =AND(D30=E30-1,D30=F30-2,D30=G30-3)
color : Blue
Borders : Top/Bottom/Left.
Cell : D30.
first formula : =AND(D30=C30+1,D30=E30-1,D30=F30-2)
color : Blue
Borders : Top/Bottom.
Cell : E30.
first formula : =AND(E30=C30+2,E30=D30+1,E30=F30-1)
color : Blue
Borders : Top/Bottom.
Cell : F30.
first formula : =AND(F30=C30+3,F30=D30+2,F30=E30+1)
color : Blue
Borders : Top/Bottom/Right.
Cell : F30.
first formula : =AND(F30=D30+2,F30=E30+1,F30=G30-1)
color : Blue
Borders : Top/Bottom.
Cell : G30.
first formula : =AND(G30=D30+3,G30=E30+2,G30=F30+1)
color : Blue
Borders : Top/Bottom/Right.
I hope someone can help to correct the error and or tell me where to put those CF in the right order ?
Thank you in advance... Serge.