Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
COLUMNS returns the number of columns in a given range or array. It is the horizontal counterpart to ROWS and is useful when building dynamic formulas that must account for the width of a dataset, such as in combination with INDEX, OFFSET, or array operations.
=COLUMNS(A1:D1)=COLUMNS(A1:D1)Computed by a real spreadsheet engine on the sample data below.
| Name | Age | City | Score |
| Alice | 30 | NY | 88 |
| Bob | 25 | LA | 92 |
=COLUMNS(A1:D1)→4
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: