Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Get nth match with INDEX / MATCH in Excel
  • How to use Excel VLOOKUP Function
  • How to use Excel TRANSPOSE Function
  • How to use Excel ROWS Function
  • How to use Excel ROW Function

Data Analysis Examples

  • How To Compare Two Lists in Excel
  • How to Use Solver Tool in Excel
  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • Everything about Charts in Excel
  • Conditional Formatting Color Scales Examples in Excel

Data Validation Examples

  • Excel Data validation number multiple 100
  • Excel Data validation no punctuation
  • Excel Data validation unique values only
  • Excel Data validation must contain specific text
  • Excel Data validation exists in list

Get column name from index in Excel Table

by

To get the name of a column in an Excel Table from its numeric index, you can use the INDEX function with a structured reference. See example below:

Formula

=INDEX(Table[#Headers],index)

Explanation

In the example shown, the formula in I4 is:

Worked Example:   How to count table columns in Excel
=INDEX(Table1[#Headers],H5)

When the formula is copied down, it returns an name for each column, based on index values in column H.

How this formula works

This is a standard INDEX formula. The only trick to the formula is the use of a structured reference to return a range for the table headers:

Table1[#Headers]

This range goes into INDEX for the array argument, with the index value supplied from column H:

=INDEX(Table1[#Headers],H5)

The result is he name of the first item in the header, which is “ID”.

Worked Example:   How to calculate two-way lookup VLOOKUP in Excel Table

Although the headers are in a horizontal array, with values in columns, INDEX will use the row number as a generic INDEX for one-dimensional arrays like this and correctly return the value at that position.

Worked Example:   Lookup entire column in Excel

Post navigation

Previous Post:

Check if multiple cells have same value in Excel

Next Post:

How to calculate average last N values in a table in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • Get first name from full name — Manipulating NAMES in Excel
  • How to strip html from text or numbers in Excel
  • How to translate letters to numbers in Excel
  • SUBSTITUTE function: Description, Usage, Syntax, Examples and Explanation
  • How to compare two text strings in Excel
  • Two ways to sum time over 30 minutes in Excel
  • Get days between dates in Excel
  • Display Date is same month in Excel
  • Convert text date dd/mm/yy to mm/dd/yy in Excel
  • MONTH function: Description, Usage, Syntax, Examples and Explanation
  • Calculate original loan amount in Excel
  • INTRATE function: Description, Usage, Syntax, Examples and Explanation
  • RRI function: Description, Usage, Syntax, Examples and Explanation
  • Calculate cumulative loan principal payments in Excel
  • NOMINAL function: Description, Usage, Syntax, Examples and Explanation
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles