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

Data Analysis

  • Excel Frequency Function Example
  • Error Bars in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • How to create a Histogram in Excel
  • Filter Data Based on Date in Excel

References

  • Vlookup Examples in Excel
  • How to get relative column numbers in a range in Excel
  • Count unique text values with criteria
  • Last row number in range
  • Perform case-sensitive Lookup in Excel

Data Validations

  • Excel Data validation date in specific year
  • Excel Data validation allow uppercase only
  • Excel Data validation no punctuation
  • Excel Data validation specific characters only
  • Excel Data validation require unique number

Get column index in Excel Table

by

To get the index of a column in an Excel Table, you can use the MATCH function. See example below:

Formula

=MATCH(name,Table[#Headers],0)

Explanation

In the example shown, the formula in I4 is:

=MATCH(H4,Table1[#Headers],0)

When the formula is copied down, it returns an index for each column listed in column H. Getting an index like this is useful when you want to refer to table columns by index in other formulas, like VLOOKUP, INDEX and MATCH, etc.

How this formula works

This is a standard MATCH formula where the lookup values come from column H, the array is the headers in Table1, and match type is zero, to force an exact match.

The only trick to the formula is the use of a structured reference to return a range for the table headers to the MATCH function:

Table1[#Headers]

The nice thing about this reference is that it will automatically adjust to any changes in the table. Even when columns are added or removed, the reference will continue to return the correct range.

Post navigation

Previous Post:

How to calculate project complete percentage 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

  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel TRUE Function
  • SWITCH function example in Excel
  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • Nested IF function example in Excel

Date Time

  • TIMEVALUE function: Description, Usage, Syntax, Examples and Explanation
  • Find Last Day of the Month in Excel
  • Get days between dates in Excel
  • Convert Excel time to decimal hours in Excel
  • Create date range from two dates in Excel

Grouping

  • Categorize text with keywords in Excel
  • Group numbers with VLOOKUP in Excel
  • Map text to numbers in Excel
  • Group times into 3 hour buckets in Excel
  • Group numbers at uneven intervals in Excel

General

  • Split Cell Content Using Text to Columns in Excel
  • Zoom Worksheet in Excel
  • Create dynamic workbook reference to another workbook in Excel
  • 44 Practical Excel IF function Examples
  • How to calculate percent sold in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning