HomeGoogle DocsSpreadsheetHow to Use COLUMNS Function in Google Sheets

How to Use COLUMNS Function in Google Sheets

Published on

COLUMNS and COLUMN are two different functions in Google Sheets. Here I’m simply detailing you how to use COLUMNS function in Google Sheets. But I’ll be back with another tutorial where you can learn the advanced use of Google Sheets Columns function.

Then what is the difference between the functions Column and Columns? First learn the use of Columns then I’ll explain you the difference.

Learn How to Use of Columns Function in Google Sheets

Purpose:

The purpose of Google Sheets Columns function is to return the number of columns in a range.

Syntax:

COLUMNS(range)

Example to Columns Function:

example to columns function in google sheets

See the formula used on the screenshot. Here the range is A1:B7 and there are two columns Column A and B. So the formula returns 2.

See another formula.

=COLUMNS(A1:D5)

Can you guess the result of this formula? Of course it returns 4 since there are four column numbers in the range. They are columns A, B, C and D.

That means the Columns function in Google Sheets returns the number of columns in an array irrespective of the values in that columns. The columns can be filled with values or empty cells. It doesn’t affect the result.

The Difference Between COLUMN and COLUMNS Functions in Google Sheets

You have already learned how to use Columns function in Google Sheets. Similarly I’ve already a post on Column function. Still here is the comparison.

  1. Columns returns total number of columns in a referred range.
  2. Column returns the column number of a referred cell.

Example to Column.

=COLUMN(C1)

This formula returns 3 as C is the third column in the Sheet. You can also refer a range in COLUMN to return multiple column numbers. See one example.

=ArrayFormula(COLUMN(C1:E1))

This formula returns column number 3, 4, 5 in separate cells.

You May Like: Learn ArrayFormula Use in Google Sheets

That’s the difference between COLUMNS and COLUMN functions in Google Sheets.

You can use both columns and column in advanced use. Below is one example to the advanced use of Column.

Column Function Advanced Use: How to Expand Count Results in Google Sheets Like Array Formula Does

But for the advanced use of COLUMNS I’ve no tutorial so far. I’ll come back with one and post the link below soon. Enjoy!

Advanced Use of Google Sheets Column Function

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Appointment Schedule Template in Google Sheets

An appointment schedule template in Google Sheets can assist you in efficiently managing your...

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Running Total By Month in Excel

This tutorial demonstrates how to calculate the running total by month in a range...

SORT and SORTBY – Excel Vs Google Sheets

While Excel offers the SORT and SORTBY functions for sorting a table, Google Sheets...

More like this

Appointment Schedule Template in Google Sheets

An appointment schedule template in Google Sheets can assist you in efficiently managing your...

Creating Sequential Dates in Equally Merged Cells in Google Sheets

Do you know how to create sequential dates in equally merged cells across a...

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.