Structured Referencing of a portion of a colum

protrader

New Member
Joined
Oct 1, 2013
Messages
2
What is the syntax to reference a table's column, not the whole column but the portion from row 1 to the current row?

Let's say we are in the 5th row of a table, in column "MyColumn"
Equivalent to 6th row and 2nd column (column B) in the spreadsheet

Referencing the cell will be [@MyColumn]
Referencing the whole column will be [MyColumn]
What is the structured referencing that would generate the same result such as $B$1:$B6 ?
 

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,000
Try...

=SUM(Table1[[#Headers],[MyColumn]]:Table1[@MyColumn])

If you actually meant $B$2:$B6, try the following instead...

=SUM($B$2:Table1[@MyColumn])

or

=SUM(INDEX(Table1[[#All],[MyColumn]],2):Table1[@MyColumn])

Hope this helps!
 
Last edited:

Forum statistics

Threads
1,081,421
Messages
5,358,584
Members
400,505
Latest member
JacquiT

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top