SkipVought
Programmer
[tt]
1) The ST is created (in my case it is usually as a result of a query).
I returned 2 columns from an external table: CC_CATEGORY, CC
2) A formula is created in an adjacent column of the table to reference a heading.
I named my table tCC.
My formula is =COUNTIF([CC_CATEGORY], tCC[[#This Row],[CC_CATEGORY]])
3) Edit the External Table Data > Properties -- UNCHECK Preserve column sort/filter/layout
4) Edit the query and simply change the column order by making the last column the first column and return data to Excel
5) Observe the formula ST references to column headings have changed.
My formula is =COUNTIF([CC], tCC[[#This Row],[CC]])
[/tt]
It seems that Excel is using the relative position, rather than the Column Heading as originally entered.
Has anyone else experienced this and what might be the solution?
I have used Create Names in TOP ROW to make named ranges based on table headings, and simply ran the nameing anytime the query ran.
Skip,
Just traded in my old subtlety...
for a NUANCE!
1) The ST is created (in my case it is usually as a result of a query).
I returned 2 columns from an external table: CC_CATEGORY, CC
2) A formula is created in an adjacent column of the table to reference a heading.
I named my table tCC.
My formula is =COUNTIF([CC_CATEGORY], tCC[[#This Row],[CC_CATEGORY]])
3) Edit the External Table Data > Properties -- UNCHECK Preserve column sort/filter/layout
4) Edit the query and simply change the column order by making the last column the first column and return data to Excel
5) Observe the formula ST references to column headings have changed.
My formula is =COUNTIF([CC], tCC[[#This Row],[CC]])
[/tt]
It seems that Excel is using the relative position, rather than the Column Heading as originally entered.
Has anyone else experienced this and what might be the solution?
I have used Create Names in TOP ROW to make named ranges based on table headings, and simply ran the nameing anytime the query ran.
Skip,
Just traded in my old subtlety...
for a NUANCE!