COLUMNS Function:
Summary
COLUMN function returns the count of columns selected.
First
will let you know about the purpose and syntax of the same.
Purpose
To
get the number of columns in an array or selected table range.
Arguments & Syntax
|
=COLUMNS(A5:C6)
|
|
=COLUMNS(array)
|
As given above syntax
contain 1 argument, the meaning of the same is given below.
|
Arguments
|
Meaning
|
|
array
|
In this function selected columns are array,
does not matter the same is only columns, columns along with row’s or any
data filled table.
|
Translation
COLUMNS function we can use to know the column count for the selected range or reference.
Selected
range can be only columns, can be columns and row’s or any other data filled
table bur function will return only columns count.
Example:1
Range selected: =(COLUMNS(A5)
|
Sr. No.
|
Argument
|
Selected Range
|
Result
|
Remark for result
|
|
1
|
Array
|
A5
|
1
|
One single cell is selected
|
Example:2
|
Sr. No.
|
Argument
|
Selected Range
|
Result
|
Remark for result
|
|
1
|
Array
|
A5:C5
|
3
|
Only three columns are selected
(Column A,
Column B and Column C)
|
Example:3
Range selected: =(COLUMNS(A5:C6)
|
Sr. No.
|
Argument
|
Selected
Range
|
Result
|
Remark for
result
|
|
1
|
Array
|
A5:C6
|
3
|
Only three columns are selected
(Column A,
Column B, Column C
And
Row’s ignored
as the same is function nature.)
|
Example:4
Range selected: =(COLUMNS(A6:G6)
|
Sr. No.
|
Argument
|
Selected
Range
|
Result
|
Remark for
result
|
|
1
|
Array
|
A6:G6
|
7
|
The result is 7 as seven columns are selected. For our
understanding we can count the columns from Column A to Column G.
|
Click here to download the excel file or open
with Google sheet.
Function Return Value
Getting
the number of columns in an array or selected table range.
Functions Used
=(COLUMNS(A6:G6)
|
Evaluation
Operator
|
Meaning
|
|
=
|
Equal
To
|
Important Notes:
COLUMNS function returns only columns count, the range does not matter.
Are you having any Questions or Comments?
Hit me!
Hi,
ReplyDeleteIf anyone having anything in excel, in which they are stuck, let me know once only...i will be back in as soon as possible with my best efforts...
Hi,
ReplyDeleteWhere this function will work in excel and why???