0
0
Figmabi_tool~10 mins

Component set best practices in Figma - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This data shows a simple component set with variants for buttons and input fields, illustrating best practices for naming and organizing component properties.

CellValue
A1Component Name
B1Variant Property
C1Property Value
A2Button
B2State
C2Default
A3Button
B3State
C3Hover
A4Button
B4State
C4Pressed
A5Input Field
B5Size
C5Small
A6Input Field
B6Size
C6Large
Formula Trace
COUNTIF(B2:B6, "State")
Step 1: Range B2:B6 values = ["State", "State", "State", "Size", "Size"]
Step 2: COUNTIF(B2:B6, "State") counts how many times "State" appears
Cell Reference Map
    A           B           C
1 | Component Name | Variant Property | Property Value
2 | Button        | State            | Default
3 | Button        | State            | Hover
4 | Button        | State            | Pressed
5 | Input Field   | Size             | Small
6 | Input Field   | Size             | Large

Formula references cells B2 to B6 for variant properties.
The formula counts how many variants have the property 'State' by looking at cells B2 through B6.
Result
    A           B           C           D
1 | Component Name | Variant Property | Property Value | Count of 'State'
2 | Button        | State            | Default        | 3
3 | Button        | State            | Hover          |
4 | Button        | State            | Pressed        |
5 | Input Field   | Size             | Small          |
6 | Input Field   | Size             | Large          |
The count of variants with the property 'State' is 3, shown in cell D2, helping designers understand how many state variants exist in the component set.
Sheet Trace Quiz - 3 Questions
Test your understanding
How many variants have the property 'State' in the component set?
A5
B2
C3
D1
Key Result
COUNTIF(range, "value") counts how many times 'value' appears in the specified range.