29
ENGINEERING 1181 College of Engineering Engineering Education Innovation Center Problem Solving with Excel Class Preparation

Problem Solving with Excel

  • Upload
    cissy

  • View
    55

  • Download
    0

Embed Size (px)

DESCRIPTION

Problem Solving with Excel. Class Preparation. What Excel is…. Excel is a tool for… storing, organizing, manipulating, and analyzing data tabular and graphical representation obtaining numeric solutions It is an important problem solving tool. - PowerPoint PPT Presentation

Citation preview

Page 1: Problem Solving with Excel

• ENGINEERING 1181

College of EngineeringEngineering Education Innovation Center

Problem Solving with ExcelClass Preparation

Page 2: Problem Solving with Excel

• ENGINEERING 1181

What Excel is…

• Excel is a tool for…1. storing, organizing, manipulating, and

analyzing data2. tabular and graphical representation3. obtaining numeric solutions

• It is an important problem solving tool

Page 3: Problem Solving with Excel

• ENGINEERING 1181

How does Excel relate to problem solving?

Recall the five steps of the Problem Solving Method:

DefineRepresentPlanImplementEvaluate

Excel gives us many tools to use at each phase of the method after we have defined the problem. Let’s take a look at some of tools and functions Excel provides…

Page 4: Problem Solving with Excel

• ENGINEERING 1181

60 63 67 70 73 77 80 83 87 90 93 97 1000

2

4

6

8

10Grade Distribution

on Final Exam

Exam Score

Freq

uenc

y

Table 1: Pipe Roughness ChartMaterial Manning's n

Bell & Spigot Joints 0.012Clay or Concrete Tile 0.013corrugated plastic (CPT) 0.016PVC 0.009smooth wall PE 0.012Tongue & Groove Joints 0.012

2. Represent

Tabular Format Histograms

Page 5: Problem Solving with Excel

• ENGINEERING 1181

2. Represent (con’t)

00.51

1.52

z = -7x2+7x+4y2+4y

y-axis

z-ax

is

3D Surfaces Flowcharts

Page 6: Problem Solving with Excel

• ENGINEERING 1181

3. Plan

Sort & Filter

Sort function • Can be used to arrange data in

ascending or descending order• It can help you organize data so

you can use it more efficiently• Press F1 in Excel and search

“sort” for more help

Filter function• Can be used to extract certain

data of interest • Press F1 in Excel and search

“filter” for more help

Page 7: Problem Solving with Excel

• ENGINEERING 1181

Excel Hierarchy

Excel Hierarchy• Excel allows you to have a

number of worksheets in the same workbook.

• Like cell referencing within a worksheet, you can reference a cell in other worksheets of the same workbook

• Use the following format – SheetName!CellAddress

3. Plan (con’t)

Page 8: Problem Solving with Excel

• ENGINEERING 1181

Cell Referencing• A cell reference identifies the location of a cell in the spreadsheet• A cell reference consists of the column letter and row number that

intersect at the cell's location• Cell references are used in formulas, functions, charts, and other

Excel commands• These can be replaced by names which help identify their content.

3. Plan (con’t)

Page 9: Problem Solving with Excel

• ENGINEERING 1181

Cell ReferencingYou can give cells descriptive names to use in your formulas

The Name Box displays the address of the selected cell. You can rename any cell for better readability.

3. Plan (con’t)

Page 10: Problem Solving with Excel

• ENGINEERING 1181

Cell Referencing

Here, we renamed cell B2 as 'mass', because it stores the value for mass.

We can also rename cell B3 as 'force'.

3. Plan (con’t)

Page 11: Problem Solving with Excel

• ENGINEERING 1181

Cell Referencing

Now we can type in the equation referencing the cells by their new names, instead of their alphanumeric address.

3. Plan (con’t)

Page 12: Problem Solving with Excel

• ENGINEERING 1181

Many Mathematical, Trigonometric and Statistical functions are available for finding numerical solutions.

4. Implement

Page 13: Problem Solving with Excel

• ENGINEERING 1181

Logical Functions• Logical Functions can be used to introduce decision making into

your spreadsheet. There are 6 main logical functions:IF, AND, OR, NOT, FALSE, TRUE

• The AND function returns TRUE if all arguments are true, and returns FALSE if one or more arguments are false. Let’s look at an example…

Page 14: Problem Solving with Excel

• ENGINEERING 1181

AND Function: Example Given Information: Cell A1 contains a value of 86, cell B1 contains a value of 89.

The following AND function is typed in cell B3:= AND(A1>85,B1<88)

After hitting the enter key, cell B3 will display:FALSE

Page 15: Problem Solving with Excel

• ENGINEERING 1181

IF Function• The IF function evaluates a statement and produces a result based on

whether certain conditions are ‘true’ or ‘false’.• The user can specify different results to display for these conditions.

– When the IF function evaluates a condition as true, the function will display the user’s desired ‘true’ result in the cell.

– When the IF function evaluates a condition as false, the function will display the user’s desired ‘false’ result in the cell.

Page 16: Problem Solving with Excel

• ENGINEERING 1181

IF Function: Example 1Given Information: Cell A2 contains a value of 105

The following IF function is typed in cell A3:=IF(A2<=100, "Within budget", "Over budget")

After hitting the enter key, cell A3 will display:Over Budget

Page 17: Problem Solving with Excel

• ENGINEERING 1181

IF Function: Example 2Given Information: Cell B2 contains a value of 98

The following IF function is typed in cell B3:= IF(B2<=100, "Within budget", "Over budget")

After hitting the enter key, cell B3 will display:Within budget

Page 18: Problem Solving with Excel

• ENGINEERING 1181

Nested IF Function• To check for more than one

condition a nested IF function can be used

• Here, we use a nested IF function in the column of “Letter Grade” to assign a letter grade based on test score. The formula below is copied to all cells in this column.

=IF(SCORE>90,"A",IF(SCORE>80,"B",IF(SCORE>70,"C")))

Page 19: Problem Solving with Excel

• ENGINEERING 1181

Statistical functionsConditional formatting helps

interpret results

5. Evaluate

Page 20: Problem Solving with Excel

• ENGINEERING 1181

• Conditional Formatting is a tool that allows you to apply formats to a cell or range of cells depending on the value of the cell or the value of a formula.

• It can be used to change cell color, cell font, border setting to help users easily interpret results.

• For example, you can have a cell appear in bold when its value is greater than 1000.

Conditional Formatting Logic

Page 21: Problem Solving with Excel

• ENGINEERING 1181

50 Bolt diameters were measured • Conditional Formatting will be used to indicate values

that are out of tolerance• Tolerances are the minimum and maximum allowable

deviation from the ‘nominal’ or expected value• Use slide 22-28 to guide you through this example

Conditional Formatting Example

Page 22: Problem Solving with Excel

• ENGINEERING 1181

Question:Which samples are out of tolerance?

Hint:Note the nominal diameter and associated tolerance

Conditional Formatting Example

Page 23: Problem Solving with Excel

• ENGINEERING 1181

Data with Conditional Formatting

With conditional formatting, Excel highlights the results so they are easily seen.

Page 24: Problem Solving with Excel

• ENGINEERING 1181

24

How to use Conditional Formatting

1. Select the group of cells 2. Choose an appropriate rule under the “Conditional Formatting” Tool. [Conditional Formatting -> Highlight Cells Rules ->Greater Than…]

Page 25: Problem Solving with Excel

• ENGINEERING 1181

Step 1 – Greater Than

Apply formatting to values greater than the nominal diameter plus tolerance.

Page 26: Problem Solving with Excel

• ENGINEERING 1181

Step 2 – Less Than

This time identify values less than the minimum size.[Conditional Formatting -> Highlight Cells Rules ->Less Than…]

Page 27: Problem Solving with Excel

• ENGINEERING 1181

Step 2 – Less Than

Apply formatting to values less than the nominal diameter minus tolerance

Page 28: Problem Solving with Excel

• ENGINEERING 1181

Final Result

The data points highlighted in red are out of tolerance.

Page 29: Problem Solving with Excel

• ENGINEERING 1181

• Excel is a tool for…– storing, organizing, manipulating, and analyzing data– tabular and graphical presentation– obtaining numerical solutions

• It is an important problem solving tool

Summary