XL2007 Table's "Structured References" & Absolute ref

nbrcrunch

Well-known Member
Joined
Jan 1, 2003
Messages
2,062
How to make a table reference absolute?....

I extracted a table from an Oracle db, which XL2007 automatically formats as a Table. No problem there.

However, when I wrote a sumproduct() formula where

=sumproduct((year(Table1[ReqstDate])=$A3)*(month(Table1[ReqstDate])=B$1)*(Table1[ReponseDate]>1))

The formula works fine in the first column. But when i copy it over to columns B thru whatever, it not only increments the cell references for the sumproduct summary but also increments the column heading references from the table.

For example:
Table1, column A is "ReqstDate"
Table1, column B is "ReponseDate"
Table1, column C is "Choice"
Table1, column C is "Choice2"
Table1, column C is "Choice3"


When I drag the sumproduct formula to the right, the 3rd column is changed to

=sumproduct((year(Table1[Choice])=$A3)*(month(Table1[Choice])=B$1)*(Table1[choice2]>1))
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi,
suggested in a thread at stackoverflow is (I think):
1) Copy, rather than drag and 2) hold down the control key while copying...

Microsoft's Using Structured References with Excel Tables was I thought a good link generally It covers this (not very obviously though) under "moving, copying, and filling structured references"

Regards,
Alex.

EDIT: it also appears in the above from MS that you can turn off the "structured referencing" also - I'll have to read all that again though I think.
 
Last edited:
Upvote 0
Alexander: Thank you for that. I tried to find an article on structured references. I'm surprised that one on MS site didn't come up.

I'm a bit disappointed with the way this way implemented. The note about filling, copying, etc, is incorrect. Holding down the Ctrl key does not prevent the columns from being referenced in as in a series. Copying and then pasting to the other cells is the only way I found to do this. What I was worried about is if doing so would also impact the summary grid I designed. Happily, those reference still adjust correctly.
 
Upvote 0
Thanks for posting back - no doubt we'll see more threads on table behavior in the future (for better or worse). I've used lists/tables sparingly - the new 2007 tables seem to offer some potential and I should investigate more but I was also surprised at the lack of documentation (I did not find that article searching at MS Online for help on tables...it was only via a link in the thread posted earlier).

Regards,
Alex
 
Upvote 0
For the columns you want to anchor with an absolute reference you need to duplicate the reference as if it were a range of multiple columns. The following will be anchored to the Choice column.

Table1[[Choice]:[Choice]]

The notation is similar if you want anchor a cell in the same row of the table.

Table1[@[Choice]:[Choice]] will create an absolute reference to the same row in the Choice column if the formula is in Table1.

It's important to note that you must drag the formula across the columns, copy/paste won't work.

I have a post and video on my blog that gives detailed explanation.

Absolute Formula References in Structured Table | Excel Campus
 
Last edited:
Upvote 0
For the columns you want to anchor with an absolute reference you need to duplicate the reference as if it were a range of multiple columns. The following will be anchored to the Choice column.

Table1[[Choice]:[Choice]]

The notation is similar if you want anchor a cell in the same row of the table.

Table1[@[Choice]:[Choice]] will create an absolute reference to the same row in the Choice column if the formula is in Table1.

It's important to note that you must drag the formula across the columns, copy/paste won't work.

I have a post and video on my blog that gives detailed explanation.


Absolute Formula References in Structured Table | Excel Campus

I saw your post, Jon - very helpful. Can you explain how to mix fixed and variable references in table notation? For example, say I have values in the range A1:G1 (1.01, 1.05, 1.02, ..., 1.10). Then in regular range notation, in Cell A2, I'd put
=PRODUCT($A$1:A$1)
and then drag this across Row 2 to have a running product of values in Row 1.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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