0
0
Excelspreadsheet~10 mins

UserForm basics in Excel - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

Sample data table with names and ages to be used with a UserForm for data entry.

CellValue
A1Name
B1Age
A2Alice
B230
A3Bob
B325
A4Carol
B428
Formula Trace
=IF(B2>27, "Adult", "Young")
Step 1: B2
Step 2: 30 > 27
Step 3: IF(TRUE, "Adult", "Young")
Cell Reference Map
    A       B
1 | Name  | Age  |
2 | Alice |  30  | <-- referenced by formula
3 | Bob   |  25  |
4 | Carol |  28  |
The formula references cell B2 which contains the age value for Alice.
Result
    A       B       C
1 | Name  | Age  | Status |
2 | Alice |  30  | Adult  |
3 | Bob   |  25  |        |
4 | Carol |  28  |        |
The formula in cell C2 evaluates the age in B2 and outputs 'Adult' because 30 is greater than 27.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the formula =IF(B2>27, "Adult", "Young") return when B2 is 30?
AYoung
B30
CAdult
DFALSE
Key Result
IF(condition, value_if_true, value_if_false) returns one of two values based on a condition.