Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Two-column Lookup in Excel
  • Count rows with at least n matching values
  • How to retrieve first match between two ranges in Excel
  • How to get address of named range in Excel
  • Lookup entire row in Excel

Data Analysis Examples

  • Add Outline to Data in Excel
  • Example of COUNTIFS with variable table column in Excel
  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • Reverse List in Excel
  • Conflicting Multiple Conditional Formatting Rules in Excel

Data Validation Examples

  • Excel Data validation whole percentage only
  • Excel Data validation allow uppercase only
  • Excel Data validation date in specific year
  • Excel Data validation must contain specific text
  • Excel Data validation require unique number

How to use Excel COLUMNS Function

by

This Excel tutorial explains how to use the COLUMNS function with syntax and examples.

Excel COLUMNS function Description

The Microsoft Excel COLUMNS function returns the number of columns in a cell reference.

Worked Example:   How to count table columns in Excel

The COLUMNS function is a built-in function in Excel that is categorized as a Lookup/Reference Function. It can be used as a worksheet function in Excel. As a worksheet function, the COLUMNS function can be entered as part of a formula in a cell of a worksheet.

Worked Example:   How to count total number of cells in a rectangular range in Excel

Explanation: The Excel COLUMNS function returns the count of columns in a given reference. For example, COLUMNS(A1:C3) returns 3, since the range A1:C3 contains 3 columns.

Worked Example:   How to get last column number in range in Excel

Syntax

The syntax for the COLUMNS function in Microsoft Excel is:

COLUMNS( reference )

Returns

The COLUMNS function returns a numeric value.

Post navigation

Previous Post:

How to use Excel COLUMN Function

Next Post:

How to use Excel INDEX Function

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
  • Remove text by position in a cell in Excel
  • How to check if cell contains one of many things in Excel
  • How to check if cell contains all of many things in Excel
  • How to count number of characters of text in a cell in Excel
  • How to create email address from name in Excel
  • Calculate series of dates by workdays in Excel
  • Calculate retirement date in Excel
  • Get day name from date in Excel
  • How to calculate percent of year complete in Excel
  • Generate series of dates by weekends in Excel
  • PMT, RATE, NPER, PV and FV Financial Functions in Excel
  • Calculate periods for annuity in Excel
  • ISPMT function: Description, Usage, Syntax, Examples and Explanation
  • XIRR function: Description, Usage, Syntax, Examples and Explanation
  • How to Calculate Tax Rates in Excel
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles