Conditional formatting for a SPECIFIC formula or reference to another tab?

HKFargo

New Member
Joined
Apr 5, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Conditional formatting for a SPECIFIC formula or reference to another tab?
Hi,

I'm tearing my hair over this. I'm trying to have 2 conditional formatting rules to highlight cells on these 2 things:

1) Any cell that contains a reference to another tab (the tab name is "Current FOC").

and

2) Any cell that contains an Offset formula

I'm doing Conditional Formatting -> Highlight Cell Rules -> Text that contains

This doesn't seem to work.


I have attached 2 images:

Column I contains cells with this formula as an example: ='Current FOC'!Z4

Column J contains cells with this formula as an example: =OFFSET(INDIRECT($A$30),0,0)

The 2nd image shows my conditional formatting for "text contains"


I have Microsoft 365 for Enterprise Version 2302 (if that helps). Thanks!
 

Attachments

  • excel question.JPG
    excel question.JPG
    82.9 KB · Views: 16
  • conditional formatting.JPG
    conditional formatting.JPG
    46 KB · Views: 13

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi & welcome to MrExcel.
Select New Rule, use a formula & use
Excel Formula:
=ISNUMBER(SEARCH("Current FOC",FORMULATEXT(A1)))
 
Upvote 0
Solution
Format your cells based on "Use formula to determine which cells to format" and below formula for OFFSET

=IF(IFERROR(FIND("OFFSET",FORMULATEXT(C5)),0)>0,TRUE,FALSE)

Replace 'C5' with your first formatting cell and should be relative. Remove $ signs

similar formula for other condition
 
Upvote 0
Or use the simpler formula I suggested. ;)
 
Upvote 0
Hi & welcome to MrExcel.
Select New Rule, use a formula & use
Excel Formula:
=ISNUMBER(SEARCH("Current FOC",FORMULATEXT(A1)))
Thanks guys, i used this one and it worked!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,414
Members
448,895
Latest member
omarahmed1

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