Excel tutorial
/

Functions

Intermediate

How to use CHOOSE in Excel: pick an option by number

CHOOSE returns an option from a list by its number 1, 2, 3…: payment method, weekday, quarter, scenario. Syntax, examples, why it beats nested IFs.

CHOOSE is the simplest picking function: you give it a number and a list of options, and it returns the option at that position. 1 is the first, 2 the second, and so on.

Where it helps:

  • Data exported from accounting or till software with codes: 1 — cash, 2 — card, 3 — online.
  • A weekday name or quarter number from a date.
  • Switching scenarios in a financial model: pessimistic / base / optimistic.

With three or four options, CHOOSE is much shorter and easier to read than nested IFs.

Книга1 - Excel
—☐✕
D3fx=ВЫБОР(C3;"Cash";"Card";"Online")
ABCDE
1ReceiptAmountCodePayment
2#104185 0001Cash
3#1042240 00031Online2
4#104356 0002Card
5#1044130 0001Cash
6
Готово
Code 3 (1) is the 3rd option in the list — “Online” (2)

Syntax

=ВЫБОР(index_num; value1; [value2]; ...)

  • index_num — which option you want: a number from 1 to 254, or a formula that returns one. Decimals are truncated: 2.7 → 2.
  • value1, value2, … — the options (up to 254): text, numbers, cell references, ranges or other formulas.

If index_num is less than 1 or greater than the number of options, you get #VALUE!.

Writing CHOOSE step by step

1

Select D2 and click Формулы → Ссылки и массивы → CHOOSE.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
D2fx
ABCDE
1ReceiptAmountCodePayment
2#1041850001
3#10422400003
4#1043560002
5
Готово

2

Index_num — C2 (the code). Value1 — “Cash”, Value2 — “Card”, Value3 — “Online”. A new Value box appears as you fill in the previous one. If you type text without quotes, the dialog adds them for you.

Книга1 - Excel
—☐✕
D2fx
ABCDE
1ReceiptAmountCodePayment
2#1041850001
3#10422400003
4#1043560002
5#10441300001
6
Готово

3

Click OK and double-click the fill handle to copy the formula down. Each receipt gets its payment method from its own code.

Книга1 - Excel
—☐✕
D2fx=ВЫБОР(C2;"Cash";"Card";"Online")
ABCDE
1ReceiptAmountCodePayment
2#104185 0001Cash
3#1042240 0003Online
4#104356 0002Card
5#1044130 0001Cash
6
ГотовоКоличество: 4

Example: weekday and quarter from a date

CHOOSE often teams up with a function that returns a number.

Weekday. WEEKDAY(A2,2) returns 1 for Monday and 7 for Sunday. CHOOSE turns that number into a name:

=ВЫБОР(ДЕНЬНЕД(A2;2);"Mon";"Tue";"Wed";"Thu";"Fri";"Sat";"Sun")

Quarter. MONTH(A2) gives a number from 1 to 12. Out of 12 options, every three belong to one quarter:

="Q"&ВЫБОР(МЕСЯЦ(A2);1;1;1;2;2;2;3;3;3;4;4;4)

The same trick easily adapts quarters to a fiscal year that starts in July — just change the order of the options.

Книга1 - Excel
—☐✕
B4fx=ВЫБОР(ДЕНЬНЕД(A4;2);"Mon";"Tue";"Wed";"Thu";"Fri";"Sat";"Sun")
ABCD
1DateDayQuarter
201.01.2025WedQ1
301.03.2025SatQ1
401.05.2025ThuQ2
531.08.2025SunQ3
608.12.2025MonQ4
7
Готово
01.05.2025 is a Thursday (WEEKDAY = 4), and May is in quarter 2

Pro level: a scenario switch

In a financial model you can change one number in one cell and switch the whole report to another scenario:

=ВЫБОР($B$1;B4;C4;D4)

B1 = 1 takes the pessimistic column, 2 the base, 3 the optimistic. Add a drop-down list to B1 (Data Validation) and you have a handy “switch” for your manager.

Two more techniques:

  • Picking a range. CHOOSE can return a reference: =СУММ(ВЫБОР(B1;B2:B13;C2:C13;D2:D13)) totals the selected year.
  • How it differs from SWITCH. If the codes aren’t consecutive (10, 20, 50) or are text, SWITCH in Excel 2019+ is handier: =ПЕРЕКЛЮЧ(C2;10;"Cash";20;"Card";"Other").
Книга1 - Excel
—☐✕
E6fx=ВЫБОР($B$1;B6;C6;D6)
ABCDEF
1Scenario:21
2
3MeasurePessimisticBaseOptimisticSelected
4Revenue800100012501000
5Costs700750850750
6Profit100250400250
7
Готово
Million soums. The 2 in B1 (1) selects the base scenario: column E takes the values from column C. Type 3 in B1 and the report turns optimistic

Try it in the simulator

Type =ВЫБОР(C2;"Cash";"Card";"Online") in D2 and fill it down to D6. C6 holds code 4 — see what you get. Then wrap the formula in D2 in IFERROR so it shows “Unknown”, and fill it down again.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1ReceiptAmountCodePayment
2#1041850001
3#10422400003
4#1043560002
5#10441300001
6#1045720004
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

101 / 154