how to format only 30 columns on spreadsheet

I am on spreadsheet and cannot find how to put in 24 for the columns I want

“I am on spreadsheet and cannot find how to put in 24 for the columns I want”
Please try to write understandable questions. You may want to read this thread: Guidelines for asking.

Apparently a duplicate of How to only format 20 columns on spreadsheet

Did you have in mind something like Excessive number of rows and columns in a new Calc worksheet?