Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel 2016 - Reference specific row in table

Trying to use Microsoft's fancy new table reference system, using table names, @'s and #'s to reference a specific row in my table. The only documentation and examples I can find tell me either how to reference specific columns, or reference the pre-made Headers or Totals rows.

I came across what every source calls "@ or [#This Row]" but I have no idea what that means, and putting the @ before my row name isn't working...

[removed ascii table, simplified below]

I can use the old reference system, but all my other formulas use the new one and I want to use it for the sake of uniformity, and just for the simple fact that gosh darn it I should be able to reference rows like this!

EDIT: My formulas are in separate tabs than my tables. I can use the new table reference system to reference only pre-defined "special" rows, such as the Totals row. But I have to use the old reference method '[tab_name]'![XY] when I want to reference a specific row other than the fancy Totals row.

Here is my formula which references the Totals row in the "Groceries" table in a separate tab than my formula. As you can see, I can use the Table_Name[[#Totals],[Column_Name]] syntax just fine: Totals formula

But I can't figure out how to reference specifically the "Costco" row in that table- Excel automatically uses the old syntax:
Costco formula

Here's the table for reference:
table
Does Excel 2016 really not have a way to reference rows in this new system? That seems like a pretty huge oversight in design...

like image 975
Willman Avatar asked Jan 28 '18 22:01

Willman


People also ask

How do you reference a specific row in a table in Excel?

The @ symbol inside a table means "this row". You can combine this with a column name to reference a particular cell in the current row. To reference the Total row, use the #Totals specifier. To reference a specific total, use a double set of brackets, and the column name, just like the headers row.

How do you reference a row in a column?

To create a range reference, select a range of cells on the worksheet. To refer to the whole row or entire column, click the row number or the column letter, respectively.

How do you refer to a specific column in a table in Excel?

Referencing a specific column is accomplished like this: TableName[ColumnName]. For example, to refer to the Q1 column in the DeptA table, we would use: DeptA[Q1]. In addition to referring to specific columns, we can refer to specific rows.

How do you reference rows?

It is a built-in function and takes only one argument as the reference. The method to use this function is as follows: =ROW( Value ). It will only show the cell's row number, not its value. For example, =ROW(A5) returns 5 because A5 is the fifth row in the Excel spreadsheet.


1 Answers

Use the INDEX() function, where the named table is your input for "array". You then only need to specify the row for a table with one column, or row and column for an n by m table.

You can also specify a field within the table as your array, and then specify just the row number.

For example, if you have a table called "Birthdays" with the columns "Name" and "Birth year": "Birthdays" table

The following two syntax options can be used to return the second value under "Birth year":

=INDEX(Birthdays,2,2)

=INDEX(Birthdays[Birth year],2)

like image 70
awhitlatch Avatar answered Oct 13 '22 12:10

awhitlatch