IFS

Logicalintermediate

IFS replaces nested IF statements. Instead of writing =IF(A, x, IF(B, y, IF(C, z, default))), you write =IFS(A, x, B, y, C, z, TRUE, default). It's more readable and less error-prone for multi-condition logic. Available in Excel 2019+ and Google Sheets.

Syntax

Excel:=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)
Google Sheets: Same syntax

Parameters

logical_test1The first condition to evaluate.
value_if_true1The value to return if the first condition is true.
logical_test2, value_if_true2?Additional condition/value pairs. Use TRUE as the final test for a default/catch-all.

? = optional parameter

Worked Example

Categorize invoices: over $20k = 'Enterprise', over $5k = 'Mid-Market', everything else = 'Small'.

Row numbersE
Header rowamounttier
2$33,000.00Enterprise
3$12,500.00Mid-Market
4$7,600.00Mid-Market
5$3,200.00Small
6$487.50Small

Formula

=IFS(A2>20000, "Enterprise", A2>5000, "Mid-Market", TRUE, "Small")

Result

Enterprise

IFS checks the amount in A2 against each threshold in order. Because A2 is $33,000.00, the first test is true and the formula returns 'Enterprise' without evaluating the later labels.

Practice Exercises

2 exercises - work through each one using the data table below

Exercise 1 of 2intermediate
#IFS-001

Question

Categorize each invoice's amount into tiers: over $20,000 = 'Tier 1', over $10,000 = 'Tier 2', over $5,000 = 'Tier 3', everything else = 'Tier 4'. What tier is invoice INV-1003 ($18,750)?

Dataset

Showing rows 1-10

Download CSV
Row numbersABC
Header row
2INV-1001Cloudline Software$12,500.00
3INV-1002Apex Office Supply$487.50
4INV-1003Summit Consulting Group$18,750.00
5INV-1004Meridian Travel Co.$3,200.00
6INV-1005Forge & Frame Creative$7,600.00
7INV-1006NovaTech Solutions$9,800.00
8INV-1007Atlas Hardware Co.$2,150.00
9INV-1008Clearview Data Systems$15,300.00
10INV-1009Redstone Marketing$4,250.00
11INV-1010Keystone Legal Advisors$8,900.00
12

Scroll to explore the table, then sort or filter by column as needed.

Hints

Your Answer

Exercise 2 of 2intermediate
#IFS-002

Question

Create a payment speed label: if payment_date is within 14 days of invoice_date = 'Fast', within 30 days = 'Normal', over 30 days = 'Slow'. For unpaid invoices, it should say 'Unpaid'. What label would INV-1001 get? (Invoice date: Jan 15, Payment date: Feb 1 = 17 days)

Dataset

Showing rows 1-5

Download CSV
Row numbersABCDE
Header row
2INV-1001Cloudline Software2025-01-15Paid2025-02-01
3INV-1002Apex Office Supply2025-01-18Paid2025-01-25
4INV-1003Summit Consulting Group2025-01-22Paid2025-02-10
5INV-1004Meridian Travel Co.2025-02-03Paid2025-02-15
6INV-1005Forge & Frame Creative2025-02-08Paid2025-02-20
7

Scroll to explore the table, then sort or filter by column as needed.

Hints

Your Answer

Want more practice?

Test Me mode randomizes exercises across all formulas without telling you which formula to use.

Try Test Me ->