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

Data Analysis

  • How to Create Area Chart in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • Randomize/ Shuffle List in Excel
  • How to sum a total in multiple Excel tables
  • How To Perform and Interpret Regression Analysis in Excel

References

  • Vlookup Examples in Excel
  • How to retrieve first match between two ranges in Excel
  • Extract data with helper column in Excel
  • Last row number in range
  • How to get relative column numbers in a range in Excel

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation with conditional list
  • Excel Data validation exists in list
  • Prevent invalid data entering in specific cells
  • Excel Data validation must begin with

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
  • IF with wildcards in Excel
  • How to use IFS function in Excel
  • Return blank if in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • TIMEVALUE function: Description, Usage, Syntax, Examples and Explanation
  • Convert Excel time to decimal minutes
  • Convert decimal hours to Excel time
  • How to calculate percent of year complete in Excel
  • Calculate date overlap in days in Excel

Grouping

  • Map text to numbers in Excel
  • How to randomly assign data to groups in Excel
  • Group times into 3 hour buckets in Excel
  • Map inputs to arbitrary values in Excel
  • Group times into unequal buckets in Excel

General

  • Spell Check in Excel
  • Customize Ribbon In Excel
  • Excel Autofill Cell Ranges, Copy, Paste
  • Find Most Frequently Occurring Word in Excel Worksheet
  • Basic numeric sort formula in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning