0
0
Solidworksbi_tool~10 mins

Rectangle and polygon tools in Solidworks - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This data represents dimensions for rectangles and polygons. Length and Width are for rectangles. Number of Sides is for polygons. Perimeter and Area will be calculated.

CellValue
A1Length
B1Width
C1Number of Sides
D1Perimeter
E1Area
A25
B23
C24
A36
B36
C36
Formula Trace
IF(C2=4, 2*(A2+B2), C2 * A2)
Step 1: C2=4
Step 2: 2*(A2+B2)
Step 3: IF(TRUE, 16, C2 * A2)
Cell Reference Map
    A     B     C     D     E
1 |Length|Width |Sides |Perim.|Area |
2 |  5   |  3   |  4   |  ?   |  ?  
3 |  6   |  6   |  6   |  ?   |  ?  
The formula uses cells A2 (Length), B2 (Width), and C2 (Number of Sides) to calculate perimeter in D2.
Result
    A     B     C     D     E
1 |Length|Width |Sides |Perim.|Area |
2 |  5   |  3   |  4   |  16  |     
3 |  6   |  6   |  6   |      |     
The perimeter for the rectangle in row 2 is calculated as 16 using the formula. Area is not calculated here.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the formula check first?
AIf the length is greater than width
BIf the shape is a rectangle (4 sides)
CIf the number of sides is greater than 4
DIf the width is zero
Key Result
IF(Number_of_Sides=4, Perimeter_of_Rectangle=2*(Length+Width), Perimeter_of_Polygon=Number_of_Sides*Length)