Returns the number of columns in a given array or reference.
Syntax
Examples
|
Formula |
Result |
|
=COLUMNS( A1:C8 ) |
3 |
|
=COLUMNS( B1:B8 ) |
1 |
|
=COLUMNS(Sales_data) |
1 |
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
Similar Functions