Formulyo

Excel 365 + Google Sheets · IFS

Stop nesting IF inside IF

Checks conditions in order and returns the value of the first one that's true.

The formula

=IFS(B2>=5000, 10%, B2>=2000, 5%, TRUE, 0%)

What each part means

Example

Before
ABC
1RepSalesCommission
2Laura6,200
3João3,100
4Priya900
5Tom2,000
After
ABC
1RepSalesCommission
2Laura6,20010%
3João3,1005%
4Priya9000%
5Tom2,0005%

Step by step

  1. Click cell C2.
  2. Type the formula: =IFS(B2>=5000, 10%, B2>=2000, 5%, TRUE, 0%)
  3. Press Enter.
  4. Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning