Forum Discussion

JoeWilson5's avatar
JoeWilson5
Copper Contributor
Oct 23, 2024
Solved

Conditional formatting to highlight a cell if a certain value appears in another sheet

I am needing to add shading to a cell to highlight if a figure appears in another tab:   For example, highlight column B, next to 1.1.1, if 1.1.1 appears in any of the cells in columns B-H on...
  • HansVogelaar's avatar
    HansVogelaar
    Oct 24, 2024

    JoeWilson5 

    Sheet names that contain spaces or punctuation must be enclosed in single quotes:

    =COUNTIF('Paper 1'!$B:$H, A3)

    You can also do the following:

    In B3:

    =COUNTIF(INDIRECT('"&B$2&"'!$B:$H"), $A3)

    This can be filled or copied down and to the right.