The COLUMNS function is one of the lookup and reference functions. It is used to return the number of columns in a cell reference.
COLUMNS(array)
The COLUMNS function has the following argument:
How to apply the COLUMNS function.
The figure below displays the result returned by the COLUMNS function.