瀏覽常用 Excel 公式的語法、說明和範例。複製並在試算表中使用。
=SUM(number1, [number2], ...)Adds all numbers in a range
=SUM(A1:A10)=AVERAGE(number1, [number2], ...)Calculates the average of numbers
=AVERAGE(A1:A10)=ROUND(number, num_digits)Rounds a number to specified digits
=ROUND(A1, 2)=ABS(number)Returns absolute value of a number
=ABS(-5)=POWER(number, power)Returns the result of a number raised to a power
=POWER(2, 3)=SQRT(number)Returns the square root of a number
=SQRT(16)=MOD(number, divisor)Returns the remainder after division
=MOD(10, 3)=COUNT(value1, [value2], ...)Counts cells that contain numbers
=COUNT(A1:A10)=COUNTA(value1, [value2], ...)Counts non-empty cells
=COUNTA(A1:A10)=COUNTIF(range, criteria)Counts cells that meet a criteria
=COUNTIF(A1:A10, ">5")=MAX(number1, [number2], ...)Returns the largest value
=MAX(A1:A10)=MIN(number1, [number2], ...)Returns the smallest value
=MIN(A1:A10)=MEDIAN(number1, [number2], ...)Returns the median value
=MEDIAN(A1:A10)=IF(logical_test, value_if_true, value_if_false)Returns one value if true, another if false
=IF(A1>10, "Yes", "No")=AND(logical1, [logical2], ...)Returns TRUE if all arguments are TRUE
=AND(A1>5, B1<10)=OR(logical1, [logical2], ...)Returns TRUE if any argument is TRUE
=OR(A1>5, B1<10)=NOT(logical)Reverses the logic of its argument
=NOT(A1>5)=IFERROR(value, value_if_error)Returns a value if error, otherwise returns value
=IFERROR(A1/B1, "Error")=CONCATENATE(text1, [text2], ...)Joins several text strings
=CONCATENATE(A1, " ", B1)=LEFT(text, [num_chars])Returns leftmost characters
=LEFT(A1, 3)=RIGHT(text, [num_chars])Returns rightmost characters
=RIGHT(A1, 3)=MID(text, start_num, num_chars)Returns characters from the middle
=MID(A1, 2, 3)=UPPER(text)Converts text to uppercase
=UPPER(A1)=LOWER(text)Converts text to lowercase
=LOWER(A1)=TRIM(text)Removes extra spaces from text
=TRIM(A1)=LEN(text)Returns the length of text
=LEN(A1)=TODAY()Returns current date
=TODAY()=NOW()Returns current date and time
=NOW()=DATE(year, month, day)Creates a date from year, month, day
=DATE(2024, 1, 15)=YEAR(serial_number)Returns the year of a date
=YEAR(A1)=MONTH(serial_number)Returns the month of a date
=MONTH(A1)=DAY(serial_number)Returns the day of a date
=DAY(A1)=DATEDIF(start_date, end_date, unit)Calculates difference between dates
=DATEDIF(A1, B1, "d")=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])Searches in first column and returns value
=VLOOKUP(A1, B1:D10, 2, FALSE)=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])Searches in first row and returns value
=HLOOKUP(A1, B1:F5, 3, FALSE)=INDEX(array, row_num, [column_num])Returns value at intersection of row and column
=INDEX(A1:C10, 2, 3)=MATCH(lookup_value, lookup_array, [match_type])Returns relative position of item
=MATCH(A1, B1:B10, 0)=OFFSET(reference, rows, cols, [height], [width])Returns a reference offset from starting cell
=OFFSET(A1, 2, 3)=PMT(rate, nper, pv, [fv], [type])Calculates loan payment
=PMT(0.05/12, 60, 10000)=FV(rate, nper, pmt, [pv], [type])Calculates future value of investment
=FV(0.06/12, 10*12, -100, -1000)=PV(rate, nper, pmt, [fv], [type])Calculates present value of investment
=PV(0.08/12, 10*12, -100)=NPV(rate, value1, [value2], ...)Calculates net present value
=NPV(0.1, A1:A5)=IRR(values, [guess])Calculates internal rate of return
=IRR(A1:A5)按類別瀏覽公式或搜尋特定函數。每個公式卡片顯示語法(如何構造它)、功能說明和實用範例。點擊「複製」將公式語法複製到剪貼簿。
複製後,將公式貼到您的 Excel 儲存格中,並將通用參照(A1、B1 等)替換為您的實際儲存格參照。範例向您展示如何使用實際資料套用公式。