How to Use the COLUMNS Function in WPS on Windows

Last updated:July 20, 2026

This how-to guide includes 4 operation topics, all available without membership; use the index below to jump to the task you need.

How-to Index

How-to Guide

1. Enter the COLUMNS function

Entry point: Formula tab → formula bar

  1. Open WPS Spreadsheet and select the cell where you want to show the result.
  2. Type = in the formula bar or directly in the cell.
  3. Continue by typing COLUMNS(.
  4. Get ready to enter the array or range argument you want to count.

Success Criteria

  • Interface result: The cell enters formula editing mode and shows =COLUMNS(.
  • Next action available: You can continue entering the range argument and complete the formula.

Tips While Using

  • Common mistake: If you do not start with =, the content may be treated as plain text.
  • Environment note: You need to work in an editable cell in WPS Spreadsheet.

2. Fill in arguments with syntax prompts

Entry point: Function input state in the formula bar

  1. After typing COLUMNS(, check the syntax prompt shown by the app.
  2. Enter the correct range or array argument based on the prompt.
  3. Make sure the closing parenthesis is complete.
  4. Press Enter to confirm the formula.

Success Criteria

  • Interface result: The cell shows the calculated result.
  • Next action available: You can select the cell again to review or edit the formula.

Tips While Using

  • Common mistake: Mismatched parentheses or incorrect argument format can cause a formula error.
  • Environment note: It is helpful to review the full expression in the formula bar before confirming it.

3. Use COLUMNS in a cross-sheet reference

Entry point: Formula bar

  1. Select the target cell and type =COLUMNS(.
  2. Switch to the worksheet you want to reference.
  3. Select the target range to create a cross-sheet reference.
  4. Complete the closing parenthesis and press Enter.

Success Criteria

  • Interface result: The result cell returns the number of columns in the referenced range.
  • Next action available: You can continue checking linked updates when the source range changes.

Tips While Using

  • Common mistake: Selecting the wrong range can produce an unexpected result.
  • Environment note: Make sure the referenced worksheet and range are accessible.

4. Use COLUMNS in a nested formula

Entry point: Formula bar

  1. Enter the outer formula structure in the target cell.
  2. Insert COLUMNS(range) where the formula needs a column count.
  3. Check separators and parenthesis levels in the full formula.
  4. Press Enter to finish the calculation, then adjust the formula if needed.

Success Criteria

  • Interface result: The cell returns the result of the full nested formula.
  • Next action available: The result updates automatically after you change the referenced range.

Tips While Using

  • Common mistake: In deeper nested formulas, it is easy to miss a parenthesis or separator.
  • Environment note: For complex formulas, it is easier to edit in the formula bar.