CHIGH function
Description
The CHIGH() function takes no argument and returns the highest column number used in the spreadsheet.
Example
When you enter CHIGH() in cell A1 of a spreadsheet that contains data in 3 columns, the function returns the value 3.