Demystifying VLOOKUP, XLOOKUP

Learn about the unique properties and uses of an Excel table, which offers additional functionalities that can significantly enhance data management and processing tasks.

What is an Excel Table? Its structure is just a list of data, with no missing rows or columns. But when you tell Excel it’s a table, it takes on properties which are very useful to work with. For example, if you add data to the bottom, it’s automatically included in the table. Formulas automatically are filled down the column. References to the table take on a new syntax (which can optionally be turned off, and we’ll cover them later in this article).

Let’s look at data before and after it’s a table:

Before:

Screenshot of an Excel table with column headers: Agent, Date Listed, Area, and List Price. Below the headers are four rows of sample data: Adams (10/9/2013, Central, $199,000), Jenkins (8/19/2013, N. County, $214,500), Romero (4/28/2013, S. County, $265,000), and Hamilton (7/19/2013, N. County, $268,500).

Then either of these methods:

Excel Bootcamp: Live & Hands-on, In NYC or Online, Learn From Experts, Free Retake, Small Class Sizes,  1-on-1 Bonus Training. Named a Top Bootcamp by Forbes, Fortune, & Time Out. Noble Desktop. Learn More.

Two side-by-side screenshots of the Excel ribbon. On the left, an arrow points to the 'Format as Table' button in the Styles group (between 'Conditional Formatting' and 'Cell Styles'). On the right, an arrow points to the 'Table' button in the Tables group (next to 'PivotTable' and 'Recommended PivotTables').

The illustration on the left is from the Home tab of the ribbon, and on the right is from the Insert tab. Either choice makes a table, but the one on the left first brings up a palette of color choices. They do the same thing, basically, and personally I think the label “Format as Table” is misleading, since it’s beyond formatting! Then:

Screenshot of the Excel ‘Create Table’ dialog box showing a selected range of $A$1:$D$5. A checkbox labeled ‘My table has headers’ is selected, and there are two buttons: OK and Cancel.

After:

Screenshot of an Excel table with red headers and light red shading for the data rows. The columns are labeled 'Agent,' 'Date Listed,' 'Area,' and 'List Price.' The four rows of sample data are Adams (10/9/2013, Central, $199,000), Jenkins (8/19/2013, N. County, $214,500), Romero (4/28/2013, S. County, $265,000), and Hamilton (7/19/2013, N. County, $268,500).

There’s a 3rd way to make a table, and that’s to press Ctrl/T (or Ctrl/L, a leftover from when it was referred to as a List).

The color choice is flexible from the palette which is on the Table Design tab of the ribbon (which exists only when the active cell is inside the table). Here’s a part of the color choices (there’s more):

Screenshot of Excel’s Table Design tab showing a list of table style options organized under 'Light' and 'Medium' categories, each displaying colored thumbnails with different formatting. On the left side, there are checkboxes for 'First Column,' 'Last Column,' 'Banded Columns,' and a 'Filter Button' option.

You can see from the first table shown that row 6 is empty, as is column E. If something is entered in A6, it’s obvious it was added to the table, because of the coloring:

Screenshot of an Excel table with a red header row labeled 'Agent,' 'Date Listed,' 'Area,' and 'List Price,' and light red shading for data rows. The four existing rows show Adams (10/9/2013, Central, $199,000), Jenkins (8/19/2013, N. County, $214,500), Romero (4/28/2013, S. County, $265,000), and Hamilton (7/19/2013, N. County, $268,500). A new row at row 6 begins with 'Adams' in the Agent column, while cell B6 (Date Listed) is highlighted.

Or if something is entered in E1:

Screenshot of an Excel table with a red header row labeled 'Agent,' 'Date Listed,' 'Area,' 'List Price,' and a new 'Misc' column. Four rows of data are shown: Adams (10/9/2013, Central, $199,000), Jenkins (8/19/2013, N. County, $214,500), Romero (4/28/2013, S. County, $265,000), and Hamilton (7/19/2013, N. County, $268,500). The 'Misc' column is currently blank.

In both cases, you can leave the data you entered but not have it included in the table by pressing Ctrl/Z (undo):

Screenshot of an Excel table with a red header row labeled 'Agent,' 'Date Listed,' 'Area,' 'List Price,' and a new 'Misc' column in column E. The table shows four rows of data—Adams (10/9/2013, Central, $199,000), Jenkins (8/19/2013, N. County, $214,500), Romero (4/28/2013, S. County, $265,000), and Hamilton (7/19/2013, N. County, $268,500). The 'Misc' column is currently empty.

Okay, it’s a table. Now what? Let’s look at selecting a row or column. When you hover the mouse over column A, there are 2 different shapes possible. 

Partial screenshot of an Excel worksheet showing columns A and B. The 'Agent' header in column A and the 'Date Listed' header in column B both have red shading. Beneath these headers, rows display data for Adams (10/9/2013), Jenkins (8/19/2013), and Romero (4/28/2013). The top of column A is highlighted in green with a black downward arrow icon.

This is the usual shape before you click the mouse. If you do click here, you select all of column A. Then there’s this, if you move the cursor down just a little:

Partial screenshot of an Excel table with columns labeled 'Agent,' 'Date Listed,' and 'Area,' each with a red header row and drop-down arrows. Rows beneath show data like Adams (10/9/2013, Central), Jenkins (8/19/2013, N. County), and Romero (4/28/2013, S. County). The top of column A shows a black downward arrow, indicating a selection or filter.

And if you click the mouse now, it selects only column A cells which are in the table, in this case, A2:A5. (A1 is not selected with this method). If you click here:

Partial screenshot of an Excel table with columns labeled 'Agent,' 'Date Listed,' and 'Area' in a red header row. Rows beneath show names and dates like Adams (10/9/2013), Jenkins (8/19/2013), and Romero (4/28/2013). A black arrow appears in the top-left corner above column A, indicating a selection or filter.

This cursor rotates and you can select the entire table (again, not the header row).

You can see the name of the table is shown as well:

Screenshot of an Excel worksheet with a table named 'Table3' shown in the Name Box. The table includes headers 'Agent' and 'Date Listed' and displays sample data such as Adams (10/9/2013) and Jenkins (8/19/2013). The table rows are highlighted in red, and a large arrow points to the table name.

You can (and should) give your tables a more meaningful name!

If you start entering a formula referencing Table3, after the 3 you type a left square bracket, and you see this:

Screenshot of an Excel cell where a formula starts with ‘=table3’. A dropdown list appears beneath, showing options such as ‘@ - This Row’ (with tooltip ‘Choose only this row of the specified column’), ‘(Agent)’, ‘(Date Listed)’, ‘(Area)’, ‘(List Price)’, ‘#All’, ‘#Data’, ‘#Headers’, and ‘#Totals’.

This is all new syntax, called structured referencing.

To refer to the row of the table in which the formula you’re entering is, you use the @-symbol:

Screenshot of an Excel cell containing a partial formula '=Table3[@' with a dropdown list offering column references labeled '(...)Agent,' '(...)Date Listed,' '(...)Area,' and '(...)List Price.'

The dropdown displays a list of all the column headers in the table.

So, if you enter =Table3[@Area] in cell G4, say, then the data from the Area column will come from row 4. If you refer to a field which has special characters or a blank, another set of square brackets is used. For example, to refer to the Date Listed field, you’d use =Table3[@[Date Listed]].

#All is the entire table. #Data is the table without the headers. #Headers is the headers, and #Totals is the totals row. If there is no Totals row, this will return #REF!. How to put in a Totals row is shown below.

Once you create a table, you’re automatically presented with column filters. 

Let’s take a look at the commands in the ribbon when the active cell is part of the table:

Screenshot of the Excel ribbon with the 'Table Design' tab selected. On the left is the Table Name field (e.g., 'Table3'). In the center are tools like 'Summarize with PivotTable,' 'Remove Duplicates,' and 'Convert to Range.' On the right, the Table Style Options group displays checkboxes for 'Header Row,' 'Total Row,' 'Banded Rows,' 'Banded Columns,' 'First Column,' 'Last Column,' and 'Filter Button.' The other Excel tabs (File, Home, Insert, etc.) appear above the ribbon.

Properties

This is where you can give the table a meaningful name as well as resize the table – in this illustration, the table was from A1:D5, yet there’s data below, in rows 6 and 7 which are not part of the table (yet). 

Screenshot of an Excel table with red headers labeled 'Agent,' 'Date Listed,' 'Area,' and 'List Price,' showing rows of data (e.g., Adams, Jenkins, Romero, Hamilton). The 'Resize Table' dialog box is open, displaying the range '$A$1:$D$5' and a note about keeping headers in the same row. The dialog includes OK and Cancel buttons.

When you have the dialog shown, you can simply change the reference to be A1:D7:

Screenshot of an Excel table with red/pink shading. The columns are labeled 'Agent,' 'Date Listed,' 'Area,' and 'List Price.' The rows show data such as Adams (10/9/2007, Central, $199,000), Jenkins (8/19/2007, N. County, $214,500), Romero (4/28/2007, S. County, $265,000), and Hamilton (7/19/2007, N. County, $268,500). The selected cell in column C reads 'N. County.'

Tools

    • Some of these are pretty obvious and don’t really need a discussion, like Summarize with PivotTable or Remove duplicates
    • Convert to Range will remove the status as a table, but will keep the coloring. 
    • Insert Slicer (available for Tables and Pivot Tables, not regular ranges) will bring up the Slicer dialog (outside the scope of this article).

Export Table Data

    • Outside the scope of this article

Table Style Options

There are 7 checkboxes in this group. You can turn these on or off. By default, Header Row and Banded Rows are checked. I can’t imagine why you’d want to remove the Header Row, but you can. The table would look like this:

Screenshot of an Excel worksheet with columns A through D filled with data. The rows show entries like Adams (10/9/2007, Central, $199,000), Jenkins (8/19/2007, N. County, $214,500), Romero (4/28/2007, S. County, $265,000), Hamilton (7/19/2007, N. County, $268,500), and additional Adams entries with different dates and prices. The cells are shaded pink, and row 1 is currently empty.

Banded rows gives the appearance of a slightly different shading to every other row. Without it:

Screenshot of an Excel table with red column headers labeled 'Agent,' 'Date Listed,' 'Area,' and 'List Price.' Rows include Adams (10/9/2007, Central, $199,000), Jenkins (8/19/2007, N. County, $214,500), Romero (4/28/2007, S. County, $265,000), and Hamilton (7/19/2007, N. County, $268,500). The cells are shaded pink, and the Date Listed cell for Jenkins (8/19/2007) is highlighted.

Total Row will add a row to the table with the word Total and a total in the last column, using the SUBTOTAL(109,…) formula.

First Column is to give a shading to the first column:

Screenshot of an Excel table with red column headers labeled 'Agent,' 'Date Listed,' 'Area,' and 'List Price.' Every row lists 'Adams' in the Agent column, with varied listing dates in 'Date Listed.' The 'Area' column is consistently 'Central,' and cell C3 (Central) is highlighted. The 'List Price' column ranges from $199,000 to $309,950. All data rows are shaded pink.

Similarly for the Last Column:

Screenshot of an Excel table with red headers labeled 'Agent,' 'Date Listed,' 'Area,' and 'List Price.' Each row lists 'Adams' as the Agent, with various dates in 'Date Listed' and 'Central' in the 'Area' column. The list prices range from $199,000 to $309,950. Cell C3 containing 'Central' is highlighted, and all data rows are shaded pink.

Banded Columns gives every other column a shade (here, the first, last, and Banded Rows were unchecked):

Screenshot of an Excel table with red column headers for 'Agent,' 'Date Listed,' 'Area,' and 'List Price.' Each of the five rows lists 'Adams' as the Agent, with varying dates in the 'Date Listed' column. The 'Area' column is 'Central' for every row, and 'Central' is currently selected in cell C3. The 'List Price' values range from $199,000 to $273,500.

With each of the shading options, the gallery of styles is also updated. For example, with First Column and Banded Columns only checked (and Header Row), here’s a sample of the Medium styles in the gallery:

Screenshot of Excel’s ‘Medium’ table style gallery, displaying multiple colored style previews arranged in a grid (e.g., black, blue, red, green, and purple headers or banded rows). Each preview shows how the header row and data rows would appear in that specific style.

Filter button toggles the filters from the header row on or off.

Table Styles

Obvious, but to make it not look like a table, you can select the top left icon:

and the table looks like this:

Screenshot of an Excel table with columns labeled 'Agent,' 'Date Listed,' 'Area,' and 'List Price.' The rows show four entries: Adams (10/9/2007, Central, $199,000), Jenkins (8/19/2007, N. County, $214,500), Romero (4/28/2007, S. County, $265,000), and Hamilton (7/19/2007, N. County, $268,500). Each column header has a filter dropdown arrow.

By the way, if you don’t like the structured referencing, you can have Excel not apply it by a setting in File/Options – deselect “Use table names in formulas”:Screenshot of the Excel Options dialog box with 'Formulas' selected in the left panel. The right pane shows 'Change options related to formulas,' including 'Calculation options' (Automatic, Automatic except for data tables, or Manual) and 'Working with formulas.' Under 'Working with formulas,' a checkbox for 'Formula AutoComplete' is enabled, and a large red arrow points to the unchecked 'Use table names in formulas' option.

If a PivotTable is based on a table (and it should be), as the table grows or shrinks, a refresh will refer to the correct data. If a Chart is based on a table, as the table grows or shrinks, the Chart is updated.

photo of Bob Umlas

Bob Umlas

Bob Umlas is an instructor who has been using Microsoft Excel since version 0.99 in 1986. Bob has been awarded a Microsoft MVP Award for 25 years running. He is the author of 5 Excel books and has been the Technical Editor for many of Bill Jelen's ("Mr. Excel") books. Bob is an Excel and VBA instructor at NYC Career Centers, a Noble Desktop partner company. He conducts online Excel training and consulting and writing articles on Excel tips & tricks and techniques. 

More articles by Bob Umlas

How to Learn Excel

Master Excel with hands-on training. Excel is the leading spreadsheet application used by over 750 million people worldwide.

Yelp Facebook LinkedIn YouTube Twitter Instagram