Spreadsheet Practice

IFS formula generator

Describe what you need and get a working IFS formula for Excel and Google Sheets, tested on real data before you copy it. IFS checks a list of conditions in order and returns the value paired with the first one that is TRUE.

The generator is switching on soon. Meanwhile, the examples below are all tested.

Tested IFS examples

Each formula below was calculated on its own sample sheet. Open one to see the sheet, why it works, and to try it yourself.

Group ages into ranges

=IFS(B2<18,"Under 18",B2<35,"18-34",B2<55,"35-54",TRUE,"55+")

Excel · result on the sample sheet: 8 rows (C2:C9)

Use IFS

=IFS(B2<1,"Small",B2<5,"Medium",B2<20,"Large",TRUE,"Freight")

Google Sheets · result on the sample sheet: 8 rows (C2:C9)

Group invoices into aging buckets

=LET(days,$G$1-B2,IFS(days<=0,"Current",days<=30,"1-30",days<=60,"31-60",days<=90,"61-90",TRUE,"Over 90"))

Excel · result on the sample sheet: 7 rows (D2:D8)

Questions

What does the IFS formula generator do?

You describe the task in plain English, and it writes the formula, using IFS where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

What does IFS do?

IFS checks a list of conditions in order and returns the value paired with the first one that is TRUE.

Can I learn to write IFS formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the IFS function page has a practice exercise.

More formula generators