Upload
pralay-basu
View
98
Download
1
Embed Size (px)
Citation preview
Microsoft Office Excel for EngineersExcel Primer
Created By: Darren Henry, Director of Product Marketing Dassault Systèmes SolidWorks Corporation
©2010 Dassault Systèmes, All Rights Reserved
This document outlines many of the commands reviewed in the SolidWorks screencast Microsoft Office Excel Tips for Engineers
Data PopulationQuickly populate adjacent cells with series of values
Saturday Sunday Monday TuesdayJanuary
Cell Addressing
To lock down the cell location insert a dollar sign "$" in the cell address.
Equation How Excel interprets the address=A5 relative addressing=$A$5 equation will always reference cell A5 no matter where it is copied=$A5 equation will always reference column A, but will adjust the row number as it is copied=A$5 equation will always reference row 5, but will adjust the column letter as it is copied
Darren's Tips: Use the F4 key to quickly cycle through the various address combinations
In formulas, Excel uses relative addressing by default. As you copy formulas through your spreadsheet it will adjust the cell locations.
Data Validation (List)Location: Data →Data Validation
Possible Uses:Prompting for options and accessoriesSelecting languages, units, or styles
Example:Color hexadecimalBlue 16711680
Color Red Green Blue HexadecimalBlack 0 0 0 0Red 255 0 0 255Orange 255 128 0 33023Green 0 255 0 65280Blue 0 0 255 16711680Purple 255 128 255 16744703Turquoise 0 255 255 16776960White 255 255 255 16777215
Use Data Validation to make user friendly pick lists
Darren's Tips: The list used for validation must reside on the same worksheet as the cell being validated. The "Source" field of a Data Validation list can utilize "IF" functions to add another level of customization.
Data Validation (List)
Prompting for options and accessoriesSelecting languages, units, or styles
Darren's Tips: The list used for validation must reside on the same worksheet as the cell being validated. The "Source" field of a Data Validation list can utilize "IF" functions to add another level of
IFSyntax: IF(logical_test,value_if_true,value_if_false)
Possible Uses:Ca
ster
?
$STA
TE@
Cast
er<1
>
Example: Yes R
Use IF to conduct conditional tests on values and formulas. Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE.
Millions of uses, from conditional formulas based on dimensions, to part number prefixes based on options. When driving CAD models with Excel, use IF functions to control whether a component is suppressed or resolved.
Darren's Tips: You can nest up to six IF functions, but if there is more than three, consider storing data in a table and use Vlookup.
Darren Henry:Here an IF function suppresses or resolves a caster component based on a user's choice. Type in "No" in cell B11 to see the change.
CONCATENATESyntax: CONCATENATE (text1,text2,...)
Possible Uses:Piecing together part numbers
Material Length Hole spacingExample: SS 12 1.5
Special Character- Part Number SS-12-1.5
Text1, text2, ... are 1 to 30 text items to be joined into a single text item. The text items can be text strings, numbers, or single-cell references.
Darren's Tips: You can explicitly type in any symbols that separate prefixes and suffixes, but I find if you list them in individual cells, it aids in edit-ability
&Syntax: "Text1"&" Text 2"
Possible Uses:Piecing together part numbers
Darren's Tips: Remember to add " " Space between variables when desired
material Length hole spacingExample: SS 12 15
Part Number SS - 12 - 15
Easy way to concatenate text strings
Darren Henry:Here we used a simple formula with & to piece together a part number. We explicitly typed in the dashes and spaces.
VLOOKUP
Possible Uses:
Example: Color hexadecimalBlack 0
Color Red Green Blue HexadecimalBlack 0 0 0 0Red 255 0 0 255Orange 255 128 0 33023Green 0 255 0 65280Blue 0 0 255 16711680Purple 255 128 255 16744703Turquoise 0 255 255 16776960White 255 255 255 16777215
Syntax: VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)
Searches for a value in the leftmost column of a table, and then returns a value in the same row from a column you specify in the table.
Use instead of writing nested IF statements, finding part number prefixes and suffixes, finding correct hexadecimal color code, etc
Darren's Tips: Watch out for unwanted spaces in the first column, excel will not find a match if there is and extra space in the text string. You can Vlookup from different worksheets, so organize your tables by storing data on other worksheets
Darren Henry:Vlookup is locating the color in the table and then returning the corresponding value in the 5th column.
Trace PrecedentsFound under Formulas-> Trace Precedents
Possible Uses:Making your formulas easy to troubleshoot
material Length hole spacingExample: SS 12 15
Special Character- Part Number SS-12-15
Draws arrows to show cell dependencies. Great tool to help understand where a cell's value originates.
Darren's Tips: Use Trace Precedence, Show Formulas, and simple double clicking to help understand which cells have equations and where they come from. The arrows will be removed when saving or you can use the Remove Arrows command when you are done.
Darren Henry:click on cell and chooseFormulas ->Trace Precedents
INTSyntax: INT(number)Rounds a number down to the nearest integer.
Possible Uses:Use when calculating number of instances in patterns
Example 1: Number Integer2.8 2
Example 2: overall length 18hole spacing 3.5
number of holes 5
Darren's Tips: INT does not round up, so accurate hole calculations may require multiple formulas
Custom ViewsFound under Views --> Custom Views…Quickly toggle betweens showing your control panel, and the entire design table
Darren Henry:a few custom views have been created. Go to View->Custom View to see them.
CONVERTSyntax: CONVERT(number,from_unit,to_unit)
Use Convert to convert a number from one unit of measurement to another.
Possible Uses:
Heat Converter2400 J equals 2.275 BTU
Great for any type of Engineering calculation. Allow the user of the spreadsheet to specify the type of units they are familiar with, and convert all data to suite.
Darren's Tips: Specify the from_unit and to_unit in cells, so they can be changed quickly.
Darren Henry:Convert was used in this cell to calculate the value of BTUs
Darren Henry:Enter any value in this cell and it will be converted from Joules to BTUs
Paste SpecialLocation: Available from Right Mouse Button, once a cell has been selected for copy
Possible Uses:Update price sheets or quantities in BOMs
Price New Price Multiplier$100.00 0.9$150.00$200.00$250.00$300.00$350.00
Enables the user to copy more than a cells value. Includes the ability to copy data validation restrictions as well as perform bulk mathematical tasks.
Darren Henry:Select cell D20 and choose Copy, then highlight the prices and use Paste Special, Multiply. All the numbers will be multiplied by 0.9
Copying from PDF filesMany product spec sheets and property tables are available as PDF files. Often you may copy the data for use with 3D CAD models.
In Adobe Acrobat, when selecting large amounts of tabular data, use the right mouse button option: "Copy as Table" to aid in copying the data
Custom ListsCreate a custom list that Excel will use to auto-populate adjacent cells with series of values
DarrenNeilMarkJeremy
Under Excel Options --> Popular--> Edit Custom Lists, you can simply type a series of values or import from an array of data that exists in your spreadsheet.
MatchSyntax: Match(Lookup value, Lookup array, Match Type)
Use Match to return the row and column location within an array of data.Use a zero as the "match type" for an exact match
Mechanical Properties for Wrought AluminumTension
19 18 10 35 12 8
22 21 8 40 14 9 Quick Find26 25 5 47 15 10
29 27 4 55 16 10 Material26 10 20 45 16 14 Property31 25 10 52 17 15
35 29 9 63 18 15 Row38 33 5 70 20 16 Column41 36 5 77 21 1655 46 12 120 38 1618 6 25 28 11 1420 19 10 36 14 1423 22 6 41 14 1426 25 5 46 15 1429 28 4 51 16 1420 17 11 36 14 1523 20 8 41 14 1226 24 6 46 15 1229 27 5 51 16 12
Alloy and Temper
Ultimate Strength
(ksi)
Yield Strength
(ksi)
% Elongation 1/16" thick specimen
Brinell Hardness 500kg, 10-
mm ball
Ultimate Shearing Strength
(ksi)
Endurance Limit (ksi)
3003-H12
3003-H14
3003-H16
3003-H18
3004-O
3004-H32
3004-H34
3004-H36
3004-H38 4032-T6 5005-O
5005-H12 5005-H14 5005-H16 5005-H18 5005-H32 5005-H34 5005-H36 5005-H38
Quick Find
5005-H34 Yield Strength (ksi)
173
Index + MatchSyntax: Index(reference, row number, column number, area number)
Mechanical Properties for Wrought AluminumTension
Supplier
Wingate 19 18 10 35 12 8
Wingate 22 21 8 40 14 9
Wingate 26 25 5 47 15 10
Wingate 29 27 4 55 16 10
Argyleln 26 10 20 45 16 14
Argyleln 31 25 10 52 17 15
Argyleln 35 29 9 63 18 15
Argyleln 38 33 5 70 20 16
Argyleln 41 36 5 77 21 16Wingate 55 46 12 120 38 16Wingate 18 6 25 28 11 14Bonnell 20 19 10 36 14 14Bonnell 23 22 6 41 14 14Bonnell 26 25 5 46 15 14Bonnell 29 28 4 51 16 14Bonnell 20 17 11 36 14 15Argyleln 23 20 8 41 14 12Argyleln 26 24 6 46 15 12Argyleln 29 27 5 51 16 12
Use Index as an alternative to Vlookup. Index will find a value within a table. It uses the intersection of a specified row and column. If the you are looking up data from one continuous table, you can leave the area number blank. The Match function is perfect to use to help specify the row and column location.
Alloy and Temper
Ultimate Strength
(ksi)
Yield Strength
(ksi)
% Elongation 1/16" thick specimen
Brinell Hardness 500kg, 10-
mm ball
Ultimate Shearing Strength
(ksi)
Endurance Limit (ksi)
3003-H12
3003-H14
3003-H16
3003-H18
3004-O
3004-H32
3004-H34
3004-H36
3004-H38 4032-T6 5005-O
5005-H12 5005-H14 5005-H16 5005-H18 5005-H32 5005-H34 5005-H36 5005-H38
Quick Find
Material 3004-O Property Ultimate Shearing Strength (ksi)
Value 16
Use Index as an alternative to Vlookup. Index will find a value within a table. It uses the intersection of a specified row and column. If the you are looking up data from one continuous table, you can leave the area number blank. The Match function is
Conditional FormatingLocation: Home -> Conditional Formatting
Part Quantity BEARING - LINEAR 2 BLOCK - BEVEL DETENT 1 BUSHING - BEVEL LOCK 3 BUSHING - LINEAR ROD 4 Countersunk Flat Head Cross Recess Screw_DIN(ISO 7046-1 - M4 x 16 - Z --- 16C) 3 Curved Spring Lock Washer_DIN(Spring washer DIN 128 - A5) 2 HANDLE - PEDESTAL-LH 1 HANDLE - PEDESTAL-RH 1 Hex Nut GradeC_DIN(Hexagon Nut ISO 4034 - M5 - N) 2 Hex Screw GradeAB_DIN(ISO 4017 - M4 x 10-N) 1 Hex Screw GradeAB_DIN(ISO 4017 - M6 x 16-C) 2 Hex Thin Nut Chamfered GradeAB_DIN(Hexagon Thin Nut ISO 4035 - M8 - C) 4 Pan Head Cross Recess Screw_DIN(ISO 7045 - M4 x 20 - Z --- 20N) 2 Pan Head Cross Recess Screw_DIN(ISO 7045 - M5 x 10 - Z --- 10N) 2 PEDESTAL - BEARING - B3 1 PLATE - BEVEL LOCK 2 Shim-Support Ring_DIN(DIN 988-S6x12) 2 SHIELD - LINEAR BEARING 2 Socket Head Cap Screw_DIN(DIN 912 M6 x 25 --- 25C) 2 Socket Set Screw Cup Point_DIN(DIN 916 - M8 x 12-C) 2 Socket Set Screw Flat Point_DIN(DIN 913 - M8 x 16-C) 4
Use Conditional Formatting to add clarity to data without creating separate charts and graphs. Different methods can be used to add value bars, shading, or icons to the data.
Conditional Formating
Mass (g)95.00
235.520.83
15.460.250.04
45.8247.030.230.240.790.430.360.39
83.6115.280.10
27.221.100.500.71
Use Conditional Formatting to add clarity to data without creating separate charts and graphs. Different methods can be used to add
Excel SolverLocation: Data--> Analysis-->SolverNote: You must enable the Solver Add-in
Cylinder Volume Calculation
Diameter 45 mmTarget Volume 250.00 ml
Calculated Volume 250.00 mlHeight 157.19 mmSolved Height 157.19 mm
Use the excel solver to perform what if analysis. It will solve for an optimal value of a cell, and take into consideration numerous constraints.
Example: Excel will find the height of a cylinder so that it will have a specified volume. To see the solver dialog, highlight the yellow cell and chose the solver command.
Excel Solver