# How to Use Multiple IF Statements in Google Sheets

To use multiple IF statements in Google Sheets, you can use the IF function in combination with other IF functions or logical functions like AND, OR. This is also known as nesting IF statements. The general syntax for a nested IF statement is:

`=IF(condition1, value_if_true1, IF(condition2, value_if_true2, value_if_false))`

Here are the steps to use multiple IF statements in Google Sheets:

- Open your Google Sheets document.
- Select the cell where you want to write the formula.
- Start by typing the
`=IF(`

function. - Enter the first condition (logical expression) followed by a comma.
- Enter the value you want to return if the first condition is true, followed by a comma.
- Now, you can add another IF statement within the current IF statement. Type
`IF(`

and repeat steps 4 and 5 for the second condition. - If you have more conditions, you can continue nesting IF statements. Otherwise, enter the value you want to return if all the conditions are false.
- Close the parentheses for each IF statement. Make sure the number of closing parentheses matches the number of opening parentheses.
- Press Enter to apply the formula.

## Example

Let's say you have a sheet with the following data:

```
A B
1 Score Grade
2 85
```

You want to find the grade based on the score in cell A2 using the following criteria:

- A: Score >= 90
- B: Score >= 80
- C: Score >= 70
- D: Score >= 60
- F: Score < 60

You can use multiple IF statements to determine the grade:

- Select cell B2 to write the formula.
- Enter the formula:

`=IF(A2>=90, "A", IF(A2>=80, "B", IF(A2>=70, "C", IF(A2>=60, "D", "F"))))`

- Press Enter to apply the formula.

Now, the grade for the score in cell A2 will appear in cell B2. In this example, the grade is "B".