ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   conditional formatting (https://www.excelbanter.com/excel-discussion-misc-queries/189702-conditional-formatting.html)

jackrobyn1

conditional formatting
 
i understand basic conditional formatting but if i have a number in cell A1
and a series of numbers in a column from A2:A102 what formula can i use to
colour cell A1 if there is the same number anywhere in the colum A2:A102. ??

In other words a formula that looks for a match for whatever the number
happens to be in A1
Thanks

Jim Thomlinson

conditional formatting
 
This should do it...

=COUNTIF(A2:A102, A1)
--
HTH...

Jim Thomlinson


"jackrobyn1" wrote:

i understand basic conditional formatting but if i have a number in cell A1
and a series of numbers in a column from A2:A102 what formula can i use to
colour cell A1 if there is the same number anywhere in the colum A2:A102. ??

In other words a formula that looks for a match for whatever the number
happens to be in A1
Thanks


L. Howard Kittle

conditional formatting
 
Select the cells you want to conditional format and use this formula.

=COUNTIF(A2:A102,A2)1

HTH
Regards,
Howard

"jackrobyn1" wrote in message
...
i understand basic conditional formatting but if i have a number in cell A1
and a series of numbers in a column from A2:A102 what formula can i use to
colour cell A1 if there is the same number anywhere in the colum A2:A102.
??

In other words a formula that looks for a match for whatever the number
happens to be in A1
Thanks




L. Howard Kittle

conditional formatting
 
I believe I missread your post. Not sure my formula will do what you want.

Regards,
Howard

"L. Howard Kittle" wrote in message
. ..
Select the cells you want to conditional format and use this formula.

=COUNTIF(A2:A102,A2)1

HTH
Regards,
Howard

"jackrobyn1" wrote in message
...
i understand basic conditional formatting but if i have a number in cell
A1
and a series of numbers in a column from A2:A102 what formula can i use
to
colour cell A1 if there is the same number anywhere in the colum A2:A102.
??

In other words a formula that looks for a match for whatever the number
happens to be in A1
Thanks






jackrobyn1

conditional formatting
 
thanks the first formula works a treat, exactly what i wanted. cheers

"L. Howard Kittle" wrote:

I believe I missread your post. Not sure my formula will do what you want.

Regards,
Howard

"L. Howard Kittle" wrote in message
. ..
Select the cells you want to conditional format and use this formula.

=COUNTIF(A2:A102,A2)1

HTH
Regards,
Howard

"jackrobyn1" wrote in message
...
i understand basic conditional formatting but if i have a number in cell
A1
and a series of numbers in a column from A2:A102 what formula can i use
to
colour cell A1 if there is the same number anywhere in the colum A2:A102.
??

In other words a formula that looks for a match for whatever the number
happens to be in A1
Thanks








All times are GMT +1. The time now is 03:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com