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

Data Analysis

  • Number and Text Filters Examples in Excel
  • Data Series in Excel
  • Remove Duplicates Example in Excel
  • Move chart to a separate worksheet in Excel
  • Get column index in Excel Table

References

  • Last row number in range
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • Count rows with at least n matching values
  • Vlookup Examples in Excel
  • How to use Excel TRANSPOSE Function

Data Validations

  • Excel Data validation must begin with
  • Excel Data validation only dates between
  • Excel Data validation must not contain
  • Excel Data validation unique values only
  • Excel Data validation must contain specific text

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

  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function example in Excel
  • Excel If, Nested If, And/Or Criteria Examples
  • How to use Excel NOT Function
  • AND function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Extract date from a date and time in Excel
  • Dynamic date list in Excel
  • How to get year from date in Excel
  • Steps to create Dynamic calendar grid in Excel
  • WEEKNUM function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group arbitrary text values in Excel
  • How to randomly assign data to groups in Excel
  • Running count group by n size in Excel
  • If cell contains one of many things in Excel
  • Group times into 3 hour buckets in Excel

General

  • Excel Ribbon Quick Overview For Beginners
  • How to generate random times at specific intervals in Excel
  • Basic error trapping example in Excel
  • How to get original number from percent change in Excel
  • How to calculate decrease by percentage in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning