EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Excel Tips COLUMNS Formula in Excel
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup Reference Functions in Excel (35+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course

COLUMNS Formula in Excel

By Arun GuptaArun Gupta

columns formula in excel

COLUMNS Formula in Excel (Table of Contents)

  • Introduction to COLUMNS Formula
  • How to Use COLUMNS Formula in Excel?

Introduction to COLUMNS Formula

The COLUMNS formula is used to determine the number of columns available in the given array or the reference in the input array. It is an in-built function that comes under the Lookup and Reference function. It is useful in looking for the number of columns in the array.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

All in One Excel VBA Bundle(120+ Courses, 30+ Projects)
Basic ExcelAdvanced ExcelVBA & MacrosExcel Dashboards
Pivot TablesStatistical FunctionsFinancial FunctionsCharts & Graphs
Price
View Courses
120+ Online Courses | 30+ Projects | 500+ Hours | Verifiable Certificates | Lifetime Access
4.9 (64,412 ratings)

As an example, let’s assume there is an array “B2:F7” then in the COLUMNS function (=COLUMNS (B2:F7)) will return 5. It means there are 5 columns existing in the range of B2 to F7.

Syntax 

COLUMNS () – It will return the total number of columns available in the given input. There is only one argument – array.

COLUMNS formula syntax

The Argument in the COLUMNS Function:

  • array: It is a mandatory parameter for which the user wants to count the number of columns in the cell range.

How to Use COLUMNS Formula in Excel?

COLUMNS Formula in Excel is very simple and easy. Let’s understand how to use the COLUMNS Formula in Excel with some examples.

You can download this COLUMNS -Formula -Excel- Template here – COLUMNS -Formula -Excel- Template

Example #1- How to use COLUMNS Function in Excel

There is some data given in a table in Sheet1, so a user wants to count how many numbers columns are there in the table.

Let’s see how the COLUMNS Function can solve this problem.

Open MS Excel; go to Sheet1, where the user wants to find out the numbers of columns in the table.

COLUMNS formula example 1-1

Create one header for the COLUMNS results to show the function result in column D.

COLUMNS formula example 1-2

Click on cell D2 and apply COLUMNS Formula.

COLUMNS formula example 1-3

Now it will ask for an array which is the range of the table means total cells.

COLUMNS formula example 1-4

Press the Enter Key.

COLUMNS formula example 1-5

Now merge cells from D2 to D10.

COLUMNS formula example 1-6

Summary of Example 1:

As the user wants to find out the numbers of columns in the table. The function result is available in column D, which is coming as 3, which means there are a total of 3 number columns in the range A1 to C10.

Example #2- Different Types of Array and References

There is some data range given in a table in Sheet2, so a user wants to count how many numbers of columns are there in the data range.

Let’s see how the COLUMNS Function can solve this problem.

Open MS Excel; go to Sheet2, where the user wants to find out the numbers of columns in the range.

COLUMNS formula example 2-1

Create one header for the COLUMNS results to show the function result in column C.

COLUMNS formula example 2-2

Click on cell C2 and apply COLUMNS Formula.

COLUMNS formula example 2-3

The result is shown below after using the above formula.

COLUMNS formula example 2-4

Use the Columns Formula in the next cell.

COLUMNS formula example 2-5

The result is shown below after using the above formula.

COLUMNS formula example 2-6

Use the Columns Formula in the next cell.

COLUMNS formula example 2-7

The result is shown below after using this formula.

COLUMNS formula example 2-8

Use the Columns Formula in the next cell.

COLUMNS formula example 2-9

The result is shown below after using the above formula.

COLUMNS formula example 2-10

Use the Columns Formula in the next cell.

COLUMNS formula example 2-11

The result is shown below after using this formula.

COLUMNS formula example 2-12

Use the Columns Formula in the next cell.

COLUMNS formula example 2-13

The result is shown below after using the columns formula.

COLUMNS formula example 2-14

Use the Columns Formula in the next cell.

COLUMNS formula example 2-15

The result is shown below after using the columns formula.

COLUMNS formula example 2-17

Summary of Example 2:

As the user wants to find out the number of columns in the table. The function result is available in column C, which is coming for each data.

Example #3- Find the Total Cells in the Array or References

There is some data given in a table in Sheet3, which have Emp ID, Name, and city. So, a user wants to count how many numbers of cells are there in the table.

Let’s see how the COLUMNS Function can solve this problem with the rows function.

Open MS Excel; go to Sheet3, where the user wants to find out the total cells in the table.

total cells in the array -1

Create three headers for the COLUMNS result, rows result, and to show the total cells to show the function result in column D.

total cells in the array -2

Click on cell E2 and apply COLUMNS Formula.

total cells in the array -3

It will then ask for an array that is the range of the table means the total cells, select cells A1 to C10.

total cells in the array -4

Press the Enter Key.

total cells in the array -5

 Click on cell E3 and apply ROWS Function to count the total number of rows in the table.

total cells in the array -6

It will then ask for an array that is the range of the table means the total cells in the table, select cells A1 to C10.

total cells in the array -7

Press the Enter Key.

total cells in the array -8

Now just multiply the cells data of the total number of columns and the total number of rows in the E4 to find out the total number of cells in the table.

total cells in the array -9

‘OR’

Calculate the total number of columns and the total number of rows in cell E4 and multiply there only.

total cells in the array -10

Press the Enter Key.

total cells in the array -11

Summary of Example 3:

As the user wants to find out the total number of cells in the table. The function result is available in cell F4, which is coming 30 after calculation.

Things to Remember

  • The COLUMNS function will return the number of columns available in the given array or the reference in the input array.
  • It can be used in the formula when a user wants to find out the total number of columns available in the array.
  • The array argument is allowed even for a single cell or as provided by a reference in the array which has a single cell. But it will not support multiple cells or reference in the columns function; a user can pass a single range at a time.

Recommended Articles

This has been a guide to COLUMNS Formula in Excel. Here we discuss How to use COLUMNS Formula in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. Excel COLUMNS Function
  2. Excel COLUMN to Number
  3. Column Header in Excel
  4. Freeze Columns in Excel
Popular Course in this category
All in One Excel VBA Bundle (120+ Courses)
  120+ Online Courses |  500+ Hours |  Verifiable Certificates |  Lifetime Access
4.9
Price

View Course

Related Courses

Excel Training (23 Courses, 9+ Projects)4.9
Excel Data Analysis Training (17 Courses, 8+ Projects)4.8
Excel for Finance Training (18 Courses, 7+ Projects)4.7
1 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download COLUMNS -Formula -Excel- Template

EDUCBA

Download COLUMNS -Formula -Excel- Template

EDUCBA

डाउनलोड COLUMNS -Formula -Excel- Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more