Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • Understanding Pivot Tables in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • How to count table columns in Excel
  • How to create Gauge Chart in Excel

References

  • Count unique text values with criteria
  • Perform case-sensitive Lookup in Excel
  • How to use Excel OFFSET function
  • How to calculate two-way lookup VLOOKUP in Excel Table
  • Two-column Lookup in Excel

Data Validations

  • Excel Data validation must not contain
  • Excel Data validation date in specific year
  • Excel Data validation allow weekday only
  • Excel Data validation require unique number
  • Excel Data validation with conditional 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:

=INDEX(Table1[#Headers],H5)

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

Worked Example:   First match in range with wildcard in Excel

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 get relative row numbers in a range in Excel

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.

Post navigation

Previous Post:

How to generate random date between two dates in Excel

Next Post:

Popularly Used Excel Functions and their examples

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

Logical Functions

  • OR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel TRUE Function
  • Return blank if in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function example in Excel

Date Time

  • How to calculate future date say 6 months ahead in Excel
  • Calculate expiration date in Excel
  • How to calculate percent of year complete in Excel
  • DAYS function: Description, Usage, Syntax, Examples and Explanation
  • TODAY function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • How to randomly assign data to groups in Excel
  • Running count group by n size in Excel
  • How to randomly assign people to groups in Excel
  • Group numbers with VLOOKUP in Excel
  • Group times into unequal buckets in Excel

General

  • How to count total number of cells in a rectangular range in Excel
  • Check if multiple cells have same value with case sensitive in Excel
  • How to create dynamic named range with INDEX in Excel
  • How to calculate percent sold in Excel
  • How to add sequential row numbers to a set of data in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning