Highlight Cells whose Contents Exist Anywhere in the Workbook

ramaxac

New Member
Joined
Jan 21, 2021
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
I have a workbook with separate sheets of data for every work day of the month. The columns of each sheet are the same, so for now I'm using a COUNTIF to highlight cells in a column if their contents exist in the previous day's sheet (ex. in conditional formatting: =COUNTIF('10-25'!$A:$H,A4) applied to $A$4:A$70). I want to expand this formula so that it searches all of the sheets, not only the previous day. Again, the columns are always the same across all of the sheets, so it can always search A:H.

I tried =COUNTIF('9-30:10-25'!$A:$H,A4), but got the error "This type of reference cannot be used in a Conditional Formatting formula."

Thanks in advance for your help!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
One option would be to create a list of all the sheets & then make that a named range. you could then use
Excel Formula:
=SUMPRODUCT(COUNTIF(INDIRECT("'"&SheetList&"'!$A:$H"),A4))
where SheetList is the named range.
 
Upvote 0
can you setup a sheet , with all the sheetnames in

then use
something like
=SUMPRODUCT(COUNTIF(INDIRECT("'"&A1:A30&"'!A:H"), A4))
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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