Conditional Formatting: Formula Reference

baudiasuev

New Member
Joined
Aug 5, 2022
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
Hello,

I have somewhat of a unique conditional formatting request and I'm not even sure that this can be done but thought I'd ask anyways. I am looking for a way to highlight cells that are referenced in a formula somewhere else.

For example, Sheet1 has 10 formulas in which the data is coming from Sheet2. In order to make sure that all the numbers from Sheet2 are being placed somewhere in Sheet1, I would want them to turn green if Excel detects that that exact cell reference was used to make a calculation.

Please let me know if you know a way or want me to explain in more detail!

Thank you!!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
This won't be the final solution, I'm sure, but it may hopefully be a step in the right direction? It even seems counterintuitive to me in the result of the IF() function... You can hide the column with the FORMULATEXT() if you want.

Sheet1
Book1
AB
12
2
36
48
5
6
7
816
918
1020
Sheet1
Cell Formulas
RangeFormula
A1,A8:A10,A3:A4A1=Sheet2!A1*2


Sheet2
Book1
AB
11TRUE
22
33TRUE
44TRUE
55
66
77
88TRUE
99TRUE
1010TRUE
Sheet2
Cell Formulas
RangeFormula
B1:B10B1=IFERROR(IF(FORMULATEXT(Sheet1!$A$1:$A$10)=CELL("address",A1),FALSE,TRUE),"")
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A10Expression=$B1=TRUEtextNO
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:
Conditional Formatting: Highlight when referenced
Conditional Formatting: Highlight when referenced

If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,820
Members
449,049
Latest member
cybersurfer5000

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