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

Data Analysis

  • Excel Bar Chart
  • Working With Tables in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • How To Remove Duplicates In Excel Column Or Row?
  • How to Create One and Two Variable Data Tables in Excel

References

  • Left Lookup in Excel
  • Get nth match with INDEX / MATCH in Excel
  • How to use Excel ROW Function
  • How to use Excel LOOKUP Function
  • How to get last column number in range in Excel

Data Validations

  • Data validation must not exist in list
  • Excel Data validation date in specific year
  • Excel Data validation don’t exceed total
  • Excel Data validation whole percentage only
  • Excel Data validation require unique number

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

  • Extract multiple matches into separate rows in Excel
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • IF, AND, OR and NOT Functions Examples in Excel
  • Nested IF function example in Excel

Date Time

  • Display Days in month in Excel
  • Convert decimal hours to Excel time
  • Basic timesheet formula with breaks in Excel
  • Convert time to time zone in Excel
  • How to calculate workdays per month in Excel

Grouping

  • Calculate conditional mode with criteria in Excel
  • Running count group by n size in Excel
  • Group times into unequal buckets in Excel
  • Map inputs to arbitrary values in Excel
  • If cell contains one of many things in Excel

General

  • Excel Operators
  • Creating and Opening an existing file in Excel
  • Customize Ribbon In Excel
  • Check if range contains a value not in another range in Excel
  • Count cells that contain errors in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning