diversification
New Member
- Joined
- Jun 24, 2020
- Messages
- 38
- Office Version
- 365
- Platform
- Windows
Hi there, I've got a Table (let's call it Table1) with a number of 'spacer' columns in it. Those spacer columns each have the word "spacer" somewhere in their column headers. For example, a header might be "Spacer Column 3" or "SPACER66" and so on. I want to conditionally format all the spacer columns so that they're blacked out.
I know structured references can be used with conditional formatting by way of the INDIRECT function, however I'm having a difficult time figuring out how to even reference the column header of a specific cell using a structured reference. If I could do that, I could then search the header for "Spacer", and combine that with the indirect function to format entire columns whose headers contain the word "spacer."
I was really hoping that
would spit out the header text, but it doesn't. Does anyone know of a way to do this? For the record, if that function did work, I'd then use something like
to handle the conditional formatting I mentioned.
I know structured references can be used with conditional formatting by way of the INDIRECT function, however I'm having a difficult time figuring out how to even reference the column header of a specific cell using a structured reference. If I could do that, I could then search the header for "Spacer", and combine that with the indirect function to format entire columns whose headers contain the word "spacer."
I was really hoping that
Excel Formula:
=Table1[@Headers]
Excel Formula:
=SEARCH("SPACER",INDIRECT("Table1[@Headers]"))>0