Back to Blog
Tutorial
10 min read

IF Statements in Google Sheets: How to Use IF Function with Examples & Formulas

GSheetLab Expert

Author

2026-05-08

Published

Learn how to use IF statements in Google Sheets with clear examples and formulas. Master logical conditions to automate decisions and improve spreadsheets.

Google Sheets is one of the best programs for sorting, analyzing, and automating data. The IF statement in Google Sheets is one of the best tools because it lets you make choices based on certain conditions.

Learning how to write IF statements in Google Spreadsheets is one of the most useful spreadsheet skills you can learn. You can use them to figure out grades, check sales goals, keep track of attendance, and make dashboards.

What is an IF Statement in Google Spreadsheet?

An IF statement in Google Spreadsheet is a logical formula that checks if a condition is true or false. If the condition is true, it returns one value; if it is false, it returns another value.

  • If a student scores above 50, show 'Pass'
  • If a sale is above 1000, show 'Target Met'
  • If attendance is below 75%, show 'Low Attendance'

IF Statement Syntax in Google Sheets

=IF(condition, value_if_true, value_if_false)
  • condition → the rule you want to test
  • value_if_true → result if condition is true
  • value_if_false → result if condition is false

Basic Example of IF Statement

=IF(A1>50, "Pass", "Fail")

What it means: If A1 is greater than 50, show 'Pass'. Otherwise, show 'Fail'.

Common IF Statement Examples

  • Pass or Fail: =IF(A1>=50, "Pass", "Fail")
  • Sales Target: =IF(B1>=1000, "Target Met", "Below Target")
  • Attendance Status: =IF(C1>=75, "Eligible", "Not Eligible")
  • Payment Status: =IF(D1="Paid", "Complete", "Pending")

Comparison Operators

OperatorMeaning
=Equal to
>Greater than
<Less than
>=Greater than or equal to
<=Less than or equal to
<>Not equal to

Nested IF Statements

A nested IF statement is when one IF statement is inside another. This is helpful when you need more than one condition.

=IF(A1>=80, "A", IF(A1>=60, "B", "Fail"))

Best Practices

  • Keep conditions simple
  • Use quotes for text values
  • Test formulas step by step
  • Use AND / OR for cleaner logic

IF statements turn Google Sheets from a simple spreadsheet into a tool for making decisions. They can do anything from simple pass/fail checks to complicated formulas with more than one condition.

Did you find this helpful? Share it with your team.