Contact

CHOOSE Function in WPS Spreadsheet: Syntax, Examples and Compatibility

Lookup Intermediate WPS Spreadsheet

Use CHOOSE in WPS Spreadsheet to select one of several values by its 1-based index. Two original examples, expected results, cautions and official software documentation.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: CHOOSE returns the option at a one-based index. WPS documents values and range references as choices, and truncates a fractional index before selection. The dated lesson conflicts about the maximum number of choices, so that limit remains unresolved.

Availability and version history

  • Introduced: documented by 2019-05-20 in the official WPS lesson; original introduction is not established.
  • Availability: The lesson is scoped to WPS Office for Windows Personal.
  • Scope: exact current supported builds and equivalent behavior in other WPS clients remain unverified.
  • Checked: October 14, 2026. Complete function-specific references and independent reference/array models; no native WPS test was performed.

Syntax and arguments

=CHOOSE(index_num, value1, [value2], ...)

The index and first choice are required. Position 1 selects the first choice, position 2 the second, and so on. An index below 1 or beyond the supplied list has the documented #VALUE! result. The formal definition says up to 29 choices, while the same page’s walkthrough says indices through 254. Neither number is certified as the current WPS maximum. The controls here use at most three choices.

Use English function names and comma separators, adapting separators for the workbook locale. Expected results are independent models of the stated WPS rules, not native application observations.

Set up the original controls

The original controls are self-contained literal formulas. Put each result in an unused cell.

Example 1: original control

=CHOOSE(2,"Red","Green","Blue")

Expected output: Green.

The second choice is Green.

Example 2: original comparison

=CHOOSE(3,"Mon","Tue","Wed")

Expected output: Wed.

Index 3 returns the third provided label.

Example 3: inspect the index before selecting

For the choices Red, Green and Blue, test indices 1, 2, 3, 2.8, 0 and 4. Expected outcomes are Red, Green, Blue, Green, #VALUE! and #VALUE!.

The positive fraction 2.8 is truncated to 2, not rounded to 3. An application code intended to be a whole number therefore needs its own validation. For an already numeric code in A2:

=AND(A2>=1,A2<=3,A2=INT(A2))

Inputs 1, 2.8, 3, 0 and 4 give expected flags TRUE, FALSE, TRUE, FALSE and FALSE. This rejects a fractional business code even though CHOOSE can select an option from it. Arbitrary text and source errors need a separate input rule.

Advanced example: select a complete range for a total

Enter this independent fixture:

Row D: planned E: actual
2 6 7
3 9 8
4 12 15

Put the numeric selector 1 or 2 in G2:

=SUM(CHOOSE(G2,D2:D4,E2:E4))

Expected totals are 27 for selector 1 and 30 for selector 2. The official WPS definition explicitly demonstrates CHOOSE returning a selected range reference to SUM. This is not an assumption imported from Excel.

The range names are a reporting convention. If the two arguments are swapped without changing the selector labels, the workbook can return a valid number for the wrong meaning. Display the selector and its label next to the total.

Advanced example: keep labels and calculations aligned

Using the same selector in G2:

=CHOOSE(G2,"Planned total","Actual total")
=CHOOSE(G2,SUM(D2:D4),SUM(E2:E4))

Expected label/result pairs are Planned total / 27 and Actual total / 30. This makes the selection rule visible rather than hiding it inside a numerical formula.

Changing G2 to 2.8 would still select the second choice under the documented truncation rule. If G2 represents an approved integer option, use the separate validation policy before interpreting that result.

Advanced check: selection does not combine the alternatives

=SUM(CHOOSE(1,D2:D4,E2:E4))
=SUM(D2:D4)+SUM(E2:E4)

Expected results are 27 and 57. The first chooses one reference. The second adds both columns. Neither expression is a substitute for the other merely because both contain SUM.

Argument limits, arrays and unresolved behavior

The source’s 29-versus-254 conflict is material for long lists. It does not affect these short examples, but it prevents a reliable maximum-choice claim for either the historical lesson or an untested current build.

WPS also states that an array-valued index causes each choice to be evaluated. This guide makes no general claim that an unselected option is never evaluated or that an error there is automatically suppressed. Every calculation in the examples is independently valid.

Array-valued indices, mixed-type conversions and complete native error behavior remain untested. For longer changing lists, a maintained table with MATCH or INDEX can make the mapping easier to inspect, within those functions’ own documented rules.

Evidence level: Full article and complete product-specific formal definition and walkthrough reviewed. Original title, publication date, two worked formulas and input fixtures are preserved. Additional reference, selection and array controls are independently modeled; no native application, performance or file-interchange test is claimed.