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

Data Analysis

  • Example of COUNTIFS with variable table column in Excel
  • Conflicting Multiple Conditional Formatting Rules in Excel
  • How to Sort by Color in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • Understanding Pivot Tables in Excel

References

  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • Merge tables with VLOOKUP in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • How to get first row number in range in Excel
  • Basic INDEX MATCH approximate in Excel

Data Validations

  • Excel Data validation date in specific year
  • Excel Data validation require unique number
  • Data validation must not exist in list
  • Excel Data validation no punctuation
  • Excel Data validation whole percentage only

How to count table columns in Excel

by

This tutorial shows how to count columns in an Excel table. To achieve this, you can use the COLUMNS function. See example below:

Formula

COLUMNS(table)

Explanation

In the example shown, the formula in I4 is:

=COLUMNS(Table1)

How this formula works

This formula uses structured referencing, a syntax that allows table parts to be referred to by name. When a table is referred to by the name only, Excel returns a reference to the data region of the table only. In this case, the entire table range is B4:F104 so Table1 returns the range B5:F105 to the COLUMNS function.

=COLUMNS(Table1)
=COLUMNS(B5:F105)

COLUMNS then returns a final result of 5, since there are 5 columns in the table.

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

  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Not Equal To ‘<>‘ operator in Excel
  • Excel If, Nested If, And/Or Criteria Examples
  • Check multiple cells are equal in Excel
  • AND function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Display Date is workday in Excel
  • NOW function: Description, Usage, Syntax, Examples and Explanation
  • Calculate series of dates by workdays in Excel
  • How to get number of days, weeks, months or years between two dates in Excel
  • TODAY function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group numbers at uneven intervals in Excel
  • Group times into 3 hour buckets in Excel
  • How to randomly assign people to groups in Excel
  • Group numbers with VLOOKUP in Excel
  • How to randomly assign data to groups in Excel

General

  • How to create dynamic worksheet reference in Excel
  • How to Create Calendar in Excel
  • How to choose page/paper size in Excel before Printing
  • 3D SUMIF for multiple worksheets in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning