FormulaCraft

How to create a pass or fail formula in Excel and Google Sheets

Topic:IF, IFS & nested conditions
Excel & Google Sheets
=IF(B2>=60,"Pass","Fail")

Verified example

Computed by a real spreadsheet engine on the sample data below.

StudentScoreResult
Alice85
Bob55
Carol60
David72
Eve40

=IF(B2>=60,"Pass","Fail")Pass

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1In the result column (e.g., C2), enter =IF(B2>=60,"Pass","Fail") — replace 60 with your passing score.
  2. 2Copy the formula down all rows to evaluate every student or record.
  3. 3Optionally store the passing score in a separate cell (e.g., $E$1) and reference it: =IF(B2>=$E$1,"Pass","Fail") so it's easy to change.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What if I want multiple conditions to all be true before passing?

Wrap multiple conditions in AND: =IF(AND(B2>=60,C2>=60),"Pass","Fail").

Can I return numeric 1/0 instead of text?

Yes: =IF(B2>=60,1,0) — or even shorter, just =(B2>=60)*1 which evaluates TRUE/FALSE as 1/0.

More on IF, IFS & nested conditions

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: