Conditional Format

kashyap

Board Regular
Joined
Mar 28, 2009
Messages
173
Hi, I was trying to apply conditional format for A2. That is if the value of A2 repeats in either Column D or Column H or Column L, A2 should be highlighted.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
In the conditional format box select the option Formula is and put the formula

Code:
=OR(COUNTIF($D:$D,A2)>=1,COUNTIF($H:$H,A2)>=1,COUNTIF($L:$L,A2)>=1)
and click ok

copy down to the other cells.
 
Upvote 0
I tried below formula.. but not working..

=or(countif($A:$a,A3)>=1,countif($e:$e,A3)>=1,countif($i:$i,A3)>=1,
countif($m:$m,A3)>=1,countif($q:$q,A3)>=1,countif($u:$u,A3)>=1,
countif($y:$y,A3)>=1,countif($ac:$ac,A3)>=1,countif($ag:$ag,A3)>=1,
countif($ak:$ak,A3)>=1,countif($ao:$ao,A3)>=1,countif($as:$as,A3)>=1,
countif($aw:$aw,A3)>=1,countif($ba:$ba,A3)>=1)
 
Upvote 0
It is not working cuz of =or(countif($A:$a,A3)>=1

The Criteria range (A3) occurs within the range to be checked (Column A).

It works find if you remove the 1st condition.

Code:
=OR(COUNTIF($E:$E,A3)>=1,COUNTIF($I:$I,A3)>=1,COUNTIF($M:$M,A3)>=1,COUNTIF($Q:$Q,A3)>=1,COUNTIF($U:$U,A3)>=1,COUNTIF($Y:$Y,A3)>=1,COUNTIF($AC:$AC,A3)>=1,COUNTIF($AG:$AG,A3)>=1,COUNTIF($AK:$AK,A3)>=1,COUNTIF($AO:$AO,A3)>=1,COUNTIF($AS:$AS,A3)>=1,COUNTIF($AW:$AW,A3)>=1,COUNTIF($BA:$BA,A3)>=1)
 
Upvote 0
Kashyab,

There is a limitation of charractors in Conditional format box. So in A1 use this formula it will give you TRUE or FALSE. then in A3 make conditional format =A1=TRUE. You can hide this row, if you want.
 
Upvote 0
Kashyab,

There is a limitation of charractors in Conditional format box. So in A1 use this formula it will give you TRUE or FALSE. then in A3 make conditional format =A1=TRUE. You can hide this row, if you want.


I completely forgot about the limitation. :laugh:
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

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