02. excel formulas

67
02. Excel Formulas

Upload: warren

Post on 23-Feb-2016

55 views

Category:

Documents


5 download

DESCRIPTION

02. Excel Formulas. File -> Open -> 02b-datastart.xlsx. Find and Replace. Click Find & Select -> Replace. Find What: N.A. Click Replace All. Click OK. Click Close. All instances of N.A. have been replaced . Delete Rows. Click on Cell A2. Click Delete -> Delete Sheet Rows. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 02. Excel Formulas

02. Excel Formulas

Page 2: 02. Excel Formulas

File -> Open -> 02b-datastart.xlsx

Page 3: 02. Excel Formulas

Find and Replace

Page 4: 02. Excel Formulas

Click Find & Select -> Replace

Page 5: 02. Excel Formulas

Find What: N.A.

Page 6: 02. Excel Formulas

Click Replace All

Page 7: 02. Excel Formulas

Click OK

Page 8: 02. Excel Formulas

Click Close

Page 9: 02. Excel Formulas

All instances of N.A. have been replaced

Page 10: 02. Excel Formulas

Delete Rows

Page 11: 02. Excel Formulas

Click on Cell A2

Page 12: 02. Excel Formulas

Click Delete -> Delete Sheet Rows

Page 13: 02. Excel Formulas

Row 2 has been deleted

Page 14: 02. Excel Formulas

Resizing Columns

Page 15: 02. Excel Formulas

Click on Cell I1

Page 16: 02. Excel Formulas

Type Number of Shares

Page 17: 02. Excel Formulas

Click on right side of Column I and drag to the right to widen column

Page 18: 02. Excel Formulas

Column I is now wide enough to show all of the text

Page 19: 02. Excel Formulas

Using Formulas

Page 20: 02. Excel Formulas

All formulas begin with an =Can use maths operators + - * /

Page 21: 02. Excel Formulas

Click on Cell I2

Page 22: 02. Excel Formulas

Type =E2/F2This means the number in cell E2

will be divided by the number in cell F2

Page 23: 02. Excel Formulas

Calculates Number of Shares = MarketCap/Price

Page 24: 02. Excel Formulas

Copying Formulas:Relative References

Page 25: 02. Excel Formulas

Click on Cell I2

Page 26: 02. Excel Formulas

Press Ctrl+c on keyboard to copy cell

Page 27: 02. Excel Formulas

Click on Cell I3, then drag mouse to bottom of column

Page 28: 02. Excel Formulas

Press Ctrl+v to copy formula to all cells in this column

Page 29: 02. Excel Formulas

Have now calculated the number of shares of every company

Page 30: 02. Excel Formulas

All of the cells in this column are formulas. If you change the original data the result changes.

Page 31: 02. Excel Formulas

Go back to top of dataset by pressing Ctrl + Up arrow on keyboard

Page 32: 02. Excel Formulas

Copying Formulas:Absolute References

Page 33: 02. Excel Formulas

The formulas used so far have been relative references, meaning that they change when they are copied and pasted

Page 34: 02. Excel Formulas

Click on cell I2Its formula refers to cells E2 and F2

Page 35: 02. Excel Formulas

Click on cell I3Its formula refers to cells E3 and F3

Page 36: 02. Excel Formulas

When copying and pasting:

• If we want to refer to the same cell all the time we use $ signs before both row and column $A$1

• If we want only the column to always stay the same we use a $ sign before the column letter $A1

• If we want only the row to always stay the same we use a $ sign before the row number A$1

Page 37: 02. Excel Formulas

Select cell I2, and press Ctrl+c to copy

Page 38: 02. Excel Formulas

Select cells J2 to M8, and press Ctrl+v to paste

Page 39: 02. Excel Formulas

Click on cell M8Original formula was E2/F2

The reference has changed both column and row numbers

Page 40: 02. Excel Formulas

Select columns J to MPress DEL on keyboard

Page 41: 02. Excel Formulas

Click on cell I2

Page 42: 02. Excel Formulas

Change formula to =E2/$F$2

Page 43: 02. Excel Formulas

Press Ctrl+c to copy

Page 44: 02. Excel Formulas

Select cells J2 to M8 and press Ctrl+v to paste

Page 45: 02. Excel Formulas

Select cell M8

Page 46: 02. Excel Formulas

The original reference was E2/F2The new reference is I8/F2

Page 47: 02. Excel Formulas

Any column or row with a dollar sign does not change

Page 48: 02. Excel Formulas

Select columns J to MPress DEL on keyboard

Page 49: 02. Excel Formulas

Have deleted the sample cellsThe cells in Column I are still formulas

Page 50: 02. Excel Formulas

Paste Values

Page 51: 02. Excel Formulas

To keep just the values you can copy and ‘paste values’

Page 52: 02. Excel Formulas

Click on the top of Column I to select the whole column

Page 53: 02. Excel Formulas

Press Ctrl+c on keyboard to copy column

Page 54: 02. Excel Formulas

Click on Home -> Paste -> Paste Values -> 123

Page 55: 02. Excel Formulas

The cells now contain values which will not change

Page 56: 02. Excel Formulas

Keyboard Shortcuts tomove around

Page 57: 02. Excel Formulas

Click on cell in the bottom right of the dataset

Page 58: 02. Excel Formulas

Press Ctrl + Left Arrow on keyboard to move to left of dataset

Page 59: 02. Excel Formulas

Press Ctrl + Up Arrow on keyboard to move to top of dataset

Page 60: 02. Excel Formulas

Press Ctrl + Shift + * on keyboard to select whole dataset

Page 61: 02. Excel Formulas

Freeze Windows

Page 62: 02. Excel Formulas

Click on cell B2

Page 63: 02. Excel Formulas

Click View -> Freeze Panes

Page 64: 02. Excel Formulas

Press Ctrl + Down Arrow to move to bottom of dataset

Page 65: 02. Excel Formulas

The top row and first column are always visible from everywhere in dataset

Page 66: 02. Excel Formulas

File -> Save As -> 02c-datacompleted.xlsx

Page 67: 02. Excel Formulas

Challenge

• Calculate a column showing the price of 10 shares in each company

• Copy and paste values