## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

## Book Description

Given the improved analytical capabilities of Excel, scientists and engineers everywhere are using it--instead of FORTRAN--to solve problems. And why not? Excel is installed on millions of computers, features a rich set of built-in analyses tools, and includes an integrated Visual Basic for Applications (VBA) programming language. No wonder it's today's computing tool of choice.

Chances are you already use Excel to perform some fairly routine calculations. Now the Excel Scientific and Engineering Cookbook shows you how to leverage Excel to perform more complex calculations, too, calculations that once fell in the domain of specialized tools. It does so by putting a smorgasbord of data analysis techniques right at your fingertips. The book shows how to perform these useful tasks and others:

• Use Excel and VBA in general

• Import data from a variety of sources

• Analyze data

• Perform calculations

• Visualize the results for interpretation and presentation

• Use Excel to solve specific science and engineering problems

Wherever possible, the Excel Scientific and Engineering Cookbook draws on real-world examples from a range of scientific disciplines such as biology, chemistry, and physics. This way, you'll be better prepared to solve the problems you face in your everyday scientific or engineering tasks.

High on practicality and low on theory, this quick, look-up reference provides instant solutions, or "recipes," to problems both basic and advanced. And like other books in O'Reilly's popular Cookbook format, each recipe also includes a discussion on how and why it works. As a result, you can take comfort in knowing that complete, practical answers are a mere page-flip away.

1. Excel Scientific and Engineering Cookbook
1. SPECIAL OFFER: Upgrade this ebook with O’Reilly
2. A Note Regarding Supplemental Files
3. Preface
4. 1. Using Excel
1. 1.0. Introduction
2. 1.1. Navigating the Interface
1. Problem
2. Solution
3. Discussion
3. 1.2. Entering Data
4. 1.3. Setting Cell Data Types
5. 1.4. Selecting More Than a Single Cell
6. 1.5. Entering Formulas
7. 1.6. Exploring the R1C1 Cell Reference Style
8. 1.7. Referring to More Than a Single Cell
9. 1.8. Understanding Operator Precedence
10. 1.9. Using Exponents in Formulas
11. 1.10. Exploring Functions
13. 1.12. Defining Custom Format Styles
14. 1.13. Leveraging Copy, Cut, Paste, and Paste Special
15. 1.14. Using Cell Names (Like Programming Variables)
16. 1.15. Validating Data
17. 1.16. Taking Advantage of Macros
19. 1.18. Getting Help
5. 2. Getting Acquainted with Visual Basic for Applications
1. 2.0. Introduction
2. 2.1. Navigating the VBA Editor
3. 2.2. Writing Functions and Subroutines
1. Problem
2. Solution
3. Discussion
4. 2.3. Working with Data Types
5. 2.4. Defining Variables
6. 2.5. Defining Constants
7. 2.6. Using Arrays
8. 2.7. Commenting Code
9. 2.8. Spanning Long Statements over Multiple Lines
10. 2.9. Using Conditional Statements
11. 2.10. Using Loops
12. 2.11. Debugging VBA Code
13. 2.12. Exploring VBA's Built-in Functions
14. 2.13. Exploring Excel Objects
1. Problem
2. Solution
3. Discussion
15. 2.14. Creating Your Own Objects in VBA
16. 2.15. VBA Help
6. 3. Collecting and Cleaning Up Data
1. 3.0. Introduction
2. 3.1. Importing Data from Text Files
3. 3.2. Importing Data from Delimited Text Files
4. 3.3. Importing Data Using Drag-and-Drop
5. 3.4. Importing Data from Access Databases
6. 3.5. Importing Data from Web Pages
7. 3.6. Parsing Data
8. 3.7. Removing Weird Characters from Imported Text
9. 3.8. Converting Units
1. Problem
2. Solution
3. Discussion
10. 3.9. Sorting Data
11. 3.10. Filtering Data
12. 3.11. Looking Up Values in Tables
1. Problem
2. Solution
3. Discussion
13. 3.12. Retrieving Data from XML Files
7. 4. Charting
1. 4.0. Introduction
2. 4.1. Creating Simple Charts
3. 4.2. Exploring Chart Styles
4. 4.3. Formatting Charts
5. 4.4. Customizing Chart Axes
6. 4.5. Setting Log or Semilog Scales
7. 4.6. Using Multiple Axes
8. 4.7. Changing the Type of an Existing Chart
9. 4.8. Combining Chart Types
10. 4.9. Building 3D Surface Plots
11. 4.10. Preparing Contour Plots
12. 4.11. Annotating Charts
13. 4.12. Saving Custom Chart Types
14. 4.13. Copying Charts to Word
15. 4-14. Displaying Error Bars
8. 5. Statistical Analysis
1. 5.0. Introduction
2. 5.1. Computing Summary Statistics
3. 5.2. Plotting Frequency Distributions
4. 5.3. Calculating Confidence Intervals
5. 5.4. Correlating Data
6. 5.5. Ranking and Percentiles
7. 5.6. Performing Statistical Tests
8. 5.7. Conducting ANOVA
9. 5.8. Generating Random Numbers
10. 5.9. Sampling Data
9. 6. Time Series Analysis
1. 6.0. Introduction
2. 6.1. Plotting Time Series Data
4. 6.3. Computing Moving Averages
1. Problem
2. Solution
3. Discussion
5. 6.4. Smoothing Data Using Weighted Averages
1. Problem
2. Solution
3. Discussion
6. 6.5. Centering Data
7. 6.6. Detrending a Time Series
8. 6.7. Estimating Seasonal Indices
9. 6.8. Deseasonalization of a Time Series
10. 6.9. Forecasting
11. 6.10. Applying Discrete Fourier Transforms
10. 7. Mathematical Functions
1. 7.0. Introduction
2. 7.1. Using Summation Functions
3. 7.2. Delving into Division
4. 7.3. Mastering Multiplication
5. 7.4. Exploring Exponential and Logarithmic Functions
6. 7.5. Using Trigonometry Functions
7. 7.6. Seeing Signs
8. 7.7. Getting to the Root of Things
9. 7.8. Rounding and Truncating Numbers
10. 7.9. Converting Between Number Systems
11. 7.10. Manipulating Matrices
12. 7.11. Building Support for Vectors
13. 7.12. Using Spreadsheet Functions in VBA Code
14. 7.13. Dealing with Complex Numbers
11. 8. Curve Fitting and Regression
1. 8.0. Introduction
2. 8.1. Performing Linear Curve Fitting Using Excel Charts
4. 8.3. Using a Single Spreadsheet Function for Linear Curve Fitting
5. 8.4. Performing Multiple Linear Regression
6. 8.5. Generating Nonlinear Curve Fits Using Excel Charts
7. 8.6. Fitting Nonlinear Curves Using Solver
8. 8.7. Assessing Goodness of Fit
9. 8.8. Computing Confidence Intervals
1. Problem
2. Solution
3. Discussion
12. 9. Solving Equations
1. 9.0. Introduction
2. 9.1. Finding Roots Graphically
3. 9.2. Solving Nonlinear Equations Iteratively
1. Problem
2. Solution
3. Discussion
4. 9.3. Automating Tedious Problems with VBA
1. Problem
2. Solution
3. Discussion
5. 9.4. Solving Linear Systems
1. Problem
2. Solution
3. Discussion
6. 9.5. Tackling Nonlinear Systems of Equations
7. 9.6. Using Classical Methods for Solving Equations
1. Problem
2. Solution
3. Discussion
13. 10. Numerical Integration and Differentiation
1. 10.0. Introduction
2. 10.1. Integrating a Definite Integral
3. 10.2. Implementing the Trapezoidal Rule in VBA
4. 10.3. Computing the Center of an Area Using Numerical Integration
5. 10.4. Calculating the Second Moment of an Area
6. 10.5. Dealing with Double Integrals
7. 10.6. Numerical Differentiation
14. 11. Solving Ordinary Differential Equations
1. 11.0. Introduction
2. 11.1. Solving First-Order Initial Value Problems
1. Problem
2. Solution
3. Discussion
3. 11.2. Applying the Runge-Kutta Method to Second-Order Initial Value Problems
4. 11.3. Tackling Coupled Equations
1. Problem
2. Solution
3. Discussion
5. 11.4. Shooting Boundary Value Problems
15. 12. Solving Partial Differential Equations
1. 12.0. Introduction
2. 12.1. Leveraging Excel to Directly Solve Finite Difference Equations
3. 12.2. Recruiting Solver to Iteratively Solve Finite Difference Equations
4. 12.3. Solving Initial Value Problems
5. 12.4. Using Excel to Help Solve Problems Formulated Using the Finite Element Method
16. 13. Performing Optimization Analyses in Excel
1. 13.0. Introduction
2. 13.1. Using Excel for Traditional Linear Programming
3. 13.2. Exploring Resource Allocation Optimization Problems
4. 13.3. Getting More Realistic Results with Integer Constraints
5. 13.4. Tackling Troublesome Problems
6. 13.5. Optimizing Engineering Design Problems
7. 13.6. Understanding Solver Reports
1. Problem
2. Solution
3. Discussion
8. 13.7. Programming a Genetic Algorithm for Optimization
1. Problem
2. Solution
3. Discussion
17. 14. Introduction to Financial Calculations
1. 14.0. Introduction
2. 14.1. Computing Present Value
3. 14.2. Calculating Future Value
4. 14.3. Figuring Out Required Rate of Return