DeskBrief
这篇文章尚未翻译成当前语言,以下显示英文原文。

Twelve Excel functions cover most office work

发布于 2026-11-26 · 3 分钟阅读

Excel has more than 400 functions, but the ones an office uses every month number about ten. This article explains those twelve by "when do I use it?". Situation first, syntax second. Every example refers to a simple table like this one.

ABCD
1DateDepartmentItemAmount
22026-11-03SalesCopy paper24,000
32026-11-05FacilitiesToner89,000
42026-11-12SalesBallpoint pens6,500
5…………

Group 1. Adding and counting

SUM — the total of a range. =SUM(D2:D100). The most used function, and also the most often wrong. The usual mistake is a subtotal row inside the range, so values are added twice.

AVERAGE / COUNT / COUNTA — the mean, the number of numeric cells, the number of non-empty cells. COUNT counts only numbers; COUNTA counts text too. Count "respondents" with COUNT and the text answers go missing.

SUBTOTAL — calculates only the visible rows when a filter is on. In =SUBTOTAL(9, D2:D100), the 9 means sum. Totalling a filtered list with SUM includes the hidden rows and gives the wrong answer.

Group 2. Conditions

IF — a different value depending on a test. =IF(D2>=50000, "High", "Normal"). With three or more conditions, IFS is easier to read.

SUMIF / COUNTIF — add or count only what matches a condition. "Total for Sales" is =SUMIF(B:B, "Sales", D:D). For two or more conditions use SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2). The common mistake is that the argument order differs from SUMIF.

IFERROR — show something else instead of an error. =IFERROR(VLOOKUP(...), "Not found"). It stops #N/A from landing in the report as is.

Group 3. Looking things up

VLOOKUP — fetch a value from another table. =VLOOKUP(lookup_value, table_range, column_number, FALSE). Leave off the final FALSE and it quietly returns an approximate match. The lookup value must be in the first column of the table, which is its main limitation.

XLOOKUP — the newer function without that limitation. =XLOOKUP(lookup_value, lookup_range, return_range, "Not found"). It can look to the left, and the fourth argument sets the value for a miss directly. If your version has it, use this one.

INDEX / MATCH — the combination that does the same job in older versions without XLOOKUP. =INDEX(return_range, MATCH(lookup_value, lookup_range, 0)).

Group 4. Working with text

TEXT — turn a number or date into text in the shape you want. =TEXT(A2, "yyyy-mm") builds a key for monthly totals; =TEXT(D2, "#,##0") puts an amount inside a sentence.

LEFT / RIGHT / MID, TRIM — cut text and remove spaces. The first four characters of an ID are =LEFT(A2, 4). When a VLOOKUP fails because of leading or trailing spaces in imported data, clean it with TRIM first.

Group 5. Dates

TODAY / EOMONTH — today's date, and the last day of the month a date falls in. For deadlines, =EOMONTH(A2, 0) (end of this month) and =EOMONTH(A2, 1) (end of next month). Dates are numbers inside Excel, so =B2-A2 gives the difference in days directly.

Three habits that matter more than the functions

  1. Keep raw data and calculations apart. No formulas on the raw-data sheet; functions only on the summary sheet. Refreshing the raw data then never breaks the summary.
  2. Prefer a table (Ctrl+T) to whole-column ranges (D:D). A table's range grows with the rows automatically.
  3. Don't be stingy with helper columns. Two extra columns are kinder to your future self than five functions nested in one cell.

With these twelve in your hands, you look like "the Excel person". The other 388 can be searched for when needed.

设置
老板键按下即切换到工作界面,再按一次返回。
备用老板键
工作界面
音效默认关闭。按下老板键会立即静音。
下班时间仅用于成绩卡上的"距下班 N 分钟"一行。
老板键按下次数(本浏览器)
0
成绩卡
成绩卡

图片中只包含得分和时间。

无广告版

付费功能尚未开放。准备就绪后会在此处公告。在此之前所有功能均免费。