Post on 11-Jan-2016

41 views

Category:

## Documents

Tags:

• #### arguments data

Embed Size (px)

DESCRIPTION

Spreadsheet Functions. Functions. Simple functions Array functions IF - logical functions. Function notation. A function is a piece of computation that takes 1 or more arguments (data) and returns a value Function( arg1, arg2, arg3 ) Sine(90) Max(100,200,120,-7) Sqrt( min(7+4, 9) ). - PowerPoint PPT Presentation

TRANSCRIPT

• FunctionsSimple functions

Array functions

IF - logical functions

• Function notationA function is a piece of computation that takes 1 or more arguments (data) and returns a value

Function( arg1, arg2, arg3 )Sine(90)Max(100,200,120,-7)Sqrt( min(7+4, 9) )

• Using functions

• Using functions

• Finding functions

• Finding functions

• Finding functions

• Finding functions

• Finding functions

• Finding functions

• FunctionsSimple functions

Array functions

IF - logical functions

• Sum

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum0

2320R?

C?

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum0

2320R1

C?

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum0

2320R1

CA

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum23

R1

1213CA

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum23

2320R1

CB

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum47

2320R1

CB

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum47

2320R2

CB

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum-31

2320R2

CA

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum-31

2320R2

CB

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum1213

2320R2

CB

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum1213

2320R3

CB

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum1213

2320R3

CA

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum1236

2320R3

CA

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum1236

2320R3

CB

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum1256

2320R3

CB

1256

Sheet2

Sheet3

• Sum programSum=0;for (each row R){ for (each column C in row R) {Sum=Sum+Sheet[R, C]; }}

Sheet1

2324

-781244Sum1256

2320R3

CB

1256

Sheet2

Sheet3

• Count

• Count programCount=0;for (each row R){ for (each column C in row R) {Count=Count+1; }}

• Average

• Average Program

• Average programSum=0;Count = 0;for (each row R){for (each column C in row R) {Sum=Sum+Sheet[R,C]; Count = Count+1;}}Average = Sum/Count;

• Other array functionsMinMaxStdev - standard deviationMedianProduct - multiply them all together

• FunctionsSimple functions

Array functions

IF - logical functions

• IfIf ( test, trueVal, falseVal)

• AND

• IF with AND

• ReviewFunctions - name with argumentsFinding functions

Array functionsSum(B6:D32)Average(F14:R75)IF - AND - OR

Recommended