Conditional Format "Specific Formula"

rcb007

Board Regular
Joined
Nov 12, 2020
Messages
90
Office Version
  1. 365
Platform
  1. Windows
I hope this is an easy one. I am trying to Highlight a Cell Border to RED, if a specific formula is used in the column.

I am not having any luck seeing how to do it. The formula I want to use is below, but I usually start at the top and drag it to the bottom.

=IFERROR(((INDEX($DC$20:$DC$910,MATCH($AK20,$A$20:$A$910,0)))),"")

The Format would be for Column X20 to X 220.

Thank
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I'm not understanding. If you want to test for that formula and you have put it in the top cell and dragged it down, won't it be in every cell?
Can you clarify further?
 
Upvote 0
If I select a column, create a new conditional formatting by formula and paste the above formula. Can the cells that have that particular formula in it color the cell border even though there are not any values being shown? I hope that is more clear?
 
Upvote 0
Can the cells that have that particular formula
That exact formula only?

If that formula was copied down the column, the next cell would have the formula below which is not exactly the same.
=IFERROR(((INDEX($DC$20:$DC$910,MATCH($AK21,$A$20:$A$910,0)))),"")

Would you want that second cell highlighted too?
 
Upvote 0
Yes you are correct I would want the AK20, AK21, AK22, etc.
 
Upvote 0
Red borders do not show up well with the XL2BB tool so I have instead coloured the cell red if it contains a formula in that form. Hope that is what you want.

21 05 21.xlsm
X
20 
21 
22 
23
24 
2511
26 
27 
28abcd
29 
30 
rcb007 1
Cell Formulas
RangeFormula
X20:X22,X29:X30,X24,X26:X27X20=IFERROR(((INDEX($DC$20:$DC$910,MATCH($AK20,$A$20:$A$910,0)))),"")
X25X25=5+6
Cells with Conditional Formatting
CellConditionCell FormatStop If True
X20:X220Expression=AND(LEFT(FORMULATEXT(X20),41)="=IFERROR(((INDEX($DC$20:$DC$910,MATCH($AK",RIGHT(FORMULATEXT(X20),23)=",$A$20:$A$910,0)))),"""")")textNO
 
Upvote 0
That is right on! Thank you so much! Yea, I do not think I would have figured that out... lol
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,600
Members
449,038
Latest member
Arbind kumar

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