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

Data Analysis

  • Chart Axes in Excel
  • How to do a t-Test in Excel?
  • How to create Checklist in Excel
  • Understanding Pivot Tables in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel

References

  • Left Lookup in Excel
  • How to get first row number in range in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • How to use Excel FORMULATEXT function
  • Complete List of Excel Lookup and Reference Functions, References and Examples

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation must contain specific text
  • Excel Data validation allow uppercase only
  • Excel Data validation must begin with
  • Prevent invalid data entering in specific cells

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

  • Not Equal To ‘<>‘ operator in Excel
  • Excel If, Nested If, And/Or Criteria Examples
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to calculate Quarter of Date in Excel
  • Convert date to month and year in Excel
  • Convert Unix time stamp to Excel date
  • TIMEVALUE function: Description, Usage, Syntax, Examples and Explanation
  • Calculate time difference in hours as decimal value in Excel

Grouping

  • Group times into unequal buckets in Excel
  • Map text to numbers in Excel
  • Group numbers at uneven intervals in Excel
  • How to randomly assign people to groups in Excel
  • Categorize text with keywords in Excel

General

  • AutoRecover file that was never saved in Excel
  • Advanced Number Formats in Excel
  • Index and match on multiple columns in Excel
  • Count cells that do not contain errors in Excel
  • 231 Keyboard Shortcut Keys In Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning