Conditional Format a Table Column?

Raysoc

Board Regular
Joined
Feb 10, 2009
Messages
227
Hi I am trying to apply conditional formatting to a table column.

I import data from a MSSQL query into a table, the table could be variable in length (rows) but I want the conditional formatting to always apply to one column.
I tried setting the range in the conditional formatting to =Table_ExternalData_1[[#All],[Col1]] and even tried =Table_ExternalData_1[[#Data],[Col1]] but it refuses and always sets the absolute range and when I apply filters on the table to exclude some rows the range doesn't change because it refuses to acknowledge the table header as what I want.

I even tried named ranges and dynamic named ranges it always sets the range back to cell values not a table heading or range.. is this impossible what I am asking or am I missing something entirely simple?

Thanks in advance.
 
Make sure you select the option "Insert entire rows for new data, clear unused cells" in the query properties.

This solved an unrelated problem for me. Whether I had conditional formatting on the Table (i.e. =Table_Query_From...) or an encompassing range on the Worksheet, when I refreshed the query and the number of rows changed Excel 2010 was splitting the Conditional Format formula up into sections. The more refreshes, the more it became disjointed, with some ranges becoming invalid with #REF errors and some rows not being incorporated into the Conditional Format. I'd been manually fixing it for weeks. :(

But once I set the "clear" option this stopped happening. I know this is a long way down the track from your post, but thank you boulio!!
(y)
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,215,136
Messages
6,123,247
Members
449,093
Latest member
Vincent Khandagale

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