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

Data Analysis

  • Excel Pie Chart
  • How to Sort by Color in Excel
  • How To Create Frequency Distribution in Excel
  • How to Use Solver Tool in Excel
  • Working With Tables in Excel

References

  • How to use Excel COLUMN Function
  • How to use Excel VLOOKUP Function
  • Approximate match with multiple criteria in Excel
  • Basic INDEX MATCH approximate in Excel
  • How to use Excel OFFSET function

Data Validations

  • Excel Data validation number multiple 100
  • Data validation must not exist in list
  • Excel Data validation with conditional list
  • How To Create Drop-down List in Excel
  • 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

  • OR function Examples in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Nested IF function example in Excel
  • IF, AND, OR and NOT Functions Examples in Excel
  • How to use Excel OR Function

Date Time

  • How to calculate project start date based on end date in Excel
  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • Calculate number of hours between two times in Excel
  • Calculate total hours that fall between two times in Excel
  • Series of dates by day

Grouping

  • Group numbers with VLOOKUP in Excel
  • How to randomly assign people to groups in Excel
  • Map inputs to arbitrary values in Excel
  • Running count group by n size in Excel
  • If cell contains one of many things in Excel

General

  • How to generate random number between two numbers in Excel
  • How to fill cell ranges with random number from fixed set of options in Excel
  • How to generate random date between two dates in Excel
  • Using Existing Templates in Excel
  • How to generate random number weighted probability in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning