Complete the code to return "Apple" when the value is 1.
=SWITCH(A1, [1], "Apple", "Unknown")
The SWITCH function compares the first argument to the cases. Here, 1 matches the case 1, so it returns "Apple".
Complete the code to return "Banana" when the value is 2.
=SWITCH(A2, 1, "Apple", [1], "Banana", "Unknown")
The second case is 2 without quotes to match the numeric value in A2. This returns "Banana" when A2 is 2.
Fix the error in the SWITCH formula to return "Orange" when the value is 3.
=SWITCH(A3, 1, "Apple", 2, "Banana", [1], "Orange", "Unknown")
The case 3 must be a number without quotes to match the numeric value in A3 and return "Orange".
Fill both blanks to return "Red" for 1 and "Green" for 2.
=SWITCH(A4, [1], "Red", [2], "Green", "Unknown")
Use numbers 1 and 2 without quotes to match numeric values in A4 and return the correct colors.
Fill all three blanks to return uppercase fruit names for 1, 2, and 3.
=SWITCH(A5, [1], "APPLE", [2], "BANANA", [3], "CHERRY", "UNKNOWN")
Use numbers 1, 2, and 3 without quotes to match numeric values in A5 and return uppercase fruit names.