Spreadsheet formulae and functions
แนะนำใหม่ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| cell reference | |
| absolute reference | |
| order of operations/ˈɔːdə ɒv ˌɒpəˈreɪʃnz/ | The rules determining the order in which the parts of an expression are evaluated. |
Let the sheet do the sums
- Spreadsheets calculate with formulae and functions. Copying them correctly depends on the type of cell reference 单元格引用.
Formulae and operators
- A formula starts with
=:=B2*C2. A function is a named calculation:=SUM(B2:B10). - Operators
+ - * / ^. Order: brackets, indices, × ÷, + −.=(B2+C2)/2averages;=B2+C2/2does not.
Which formula averages B2 and C2?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Brackets are worked first.
Relative and absolute references 绝对引用
relative B2 |
absolute $B$2 |
|
|---|---|---|
| when copied | changes | stays fixed |
| use | cells change row by row | one fixed cell, e.g. a rate |
- A named cell (
VAT) reads easily and acts as absolute.
VAT rate in E1. D2 =C2*$E$1 copied to D3 becomes =C3*$E$1.
D2 holds =C2*$E$1. What does it become when copied to D3?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
C2 is relative; $E$1 is absolute.
Functions
| function | example |
|---|---|
| SUM, AVERAGE, MAX, MIN | =AVERAGE(B2:B9) |
| COUNT, COUNTA, COUNTIF | =COUNTIF(C2:C9,"Pass") |
| INT, ROUND | =ROUND(3.456,2) → 3.46 |
| IF | =IF(B2>=50,"Pass","Fail") |
| VLOOKUP / HLOOKUP | look down / across a table |
| LOOKUP, XLOOKUP | find and return a match |
- Nested functions put one inside another.
What does =INT(7.8) return?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
INT rounds down to the nearest integer.
Which function counts how many cells say "Pass"?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
COUNT only counts numbers.
B2 holds 62. What does =IF(B2>=70,"Merit",IF(B2>=50,"Pass","Fail")) return?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
62 is under 70 but at least 50.
Make the lookup table absolute. $F$2:$G$6 stays fixed when the VLOOKUP is copied down.
Formulae start with = and follow the order of operations 运算顺序. Relative references change when copied; absolute ($) stay fixed. Know SUM to XLOOKUP, and nested IFs.
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้