2025-10-03

Excel-functions

1. 帮助参考页面导航
2. 所有函数
	2.1 函数类别
	2.2 所有函数之一
	2.3 所有函数之二
	2.4 ROUND函数
3. Spreadsheet
	3.1 免费电子表格软件
	3.2 Excel局限性和错误

 Excel-functions
Microsoft Office Excel 的 公式和函数 Formulas and functions

1. 帮助参考页面导航

公式 Formulas
Excel 中的公式概述 Overview of formulas in Excel
在公式中定义和使用名称 Define and use names in formulas
创建简单公式 Create a simple formula
显示或隐藏公式  Display or hide formulas 
移动或复制公式 Move or copy a formula
显示或隐藏零值 Display or hide zero values
将 Excel 用作计算器 Use Excel as your calculator
在 Excel 电子表格中添加值的方法 Ways to add values in an Excel spreadsheet
计算值出现的频率 Count how often a value occurs
管理工作簿链接 Manage workbook links
计算一组数的平均值 Calculate the average of a group of numbers
根据多个条件对值求和 Sum values based on multiple conditions
计算百分比 Calculate percentages
将数字相减 Subtract numbers
数组公式指南和示例 Guidelines and examples of array formulas
编写、插入或更改公式 Write, insert, or change an equation
逻辑 Logical
使用 IF 函数对值进行逻辑比较 Logically compare values with the IF function
IF 函数 - 嵌套公式和避免错误 IF function - nested formulas and avoiding pitfalls
IFS 函数 IFS function
要使用单个条件对单元格进行计数,请使用 COUNTIF 函数 Count cells using a single criteria, use the COUNTIF function
要使用多个条件对单元格进行计数,请使用 COUNTIFS 函数 Count cells using multiple criteria, use the COUNTIFS function
计算重复项中的唯一值数量 Count unique values among duplicates
使用 SUMIF 函数添加满足单个条件的值 Add values that meet a single criteria with SUMIF function
使用 SUMIFS 函数添加满足多个条件的所有值 Add all values that meet multiple criteria with SUMIFS function
使用 AVERAGEIF 返回满足单个条件的所有单元格的平均值 Return the average of all cells that meet a single criteria with AVERAGEIF
使用 AVERAGEIFS 返回满足多个条件的所有单元格的平均值 Return the average of all cells that meet multiple criteria with AVERAGEIFS
AND 函数 AND-function
OR 函数 OR-function
NOT 函数 NOT function
所有逻辑函数 All logical functions
引用 Reference
使用 VLOOKUP 查找值 Lookup a value with VLOOKUP
使用 HLOOKUP 查找值 Lookup a value with HLOOKUP
使用 CHOOSE 查找函数中类似于表的信息  Find table-like information within a function with CHOOSE 
使用 MATCH 定位数据  Locate data with MATCH 
使用 INDEX 按位置检索信息  Retrieve information by location with INDEX 
在数据列表中查找值 Look up values in a list of data
INDIRECT 函数 INDIRECT function
使用 TRANSPOSE 翻转行/列方向 Flip with row/column orientation with TRANSPOSE
所有查找和引用函数  All lookup and reference functions 
错误 Errors
如何避免损坏的公式 How to avoid broken formulas
如何更正 #VALUE 错误 How to correct #VALUE errors
如何更正 #NUM 错误 How to correct #NUM errors
如何更正 #NA 错误 How to correct #NA error
如何更正 #REF! 错误 How to correct #REF! error
如何更正 #NAME? 错误 How to correct #NAME? error
如何更正 ##### 错误  How to correct a ##### error 
隐藏单元格中的错误值和错误指示器 Hide error values and error indicators in cells
计算重复项中的唯一值 Count unique values among duplicates
所有数学函数 All math functions
更多函数 More functions
日期和时间函数 Date and Time Functions
使用 TODAY 函数计算当前日期 Calculate the current date with the TODAY function
使用 DATE 函数创建日期 Create a date with the DATE function
按想要的方式设置日期格式 Format a date the way you want
使用 WEEKDAY 识别当天是星期几 Identify the day of the week with WEEKDAY
使用 NETWORKDAYS 对工作日进行计数 Count working days with NETWORKDAYS
使用 WORKDAY 确定完成日期  Determine a completion date with WORKDAY 
使用 DATEDIF 对日期/时间差异进行制表  Tabulate date/time differences with DATEDIF 
在单元格中插入当前日期和时间 Insert the current date and time in a cell
加减日期 Add or subtract dates
加减时间 Add or subtract time
计算两个日期之间的差值 Calculate the difference between two dates
计算两个时间之间的差值 Calculate the difference between two times
转换时间 Convert times
所有日期和时间函数 All date and time functions
文本函数 Text functions
使用 TEXT 函数创建文本字符串并设置其格式 Create a text string and format it with the TEXT function
使用 LEFT、LEFTB 提取文本值中最左侧的字符  Extract the leftmost characters from a text value with LEFT, LEFTB 
使用 RIGHT、RIGHTB 提取文本值中最右侧的字符 Extract the rightmost characters from a text value with RIGHT, RIGHTB functions
使用 TRIM 删除多余空间 Remove excess space with TRIM
将 CONCATENATE 用于函数 Use CONCATENATE with functions
使用 CONCAT 合并多个区域和/或字符串中的文本 (Excel 2016) Combine the text from multiple ranges and/or strings with CONCAT (Excel 2016)
使用 FIND、FINDB 函数定位另一字符串中的文本字符串(区分大小写) Locate a text string (case sensitive) within another string with FIND, FINDB functions
使用 SEARCH、SEARCHB 函数定位另一字符串中的文本字符串 Locate a text string within another string with SEARCH, SEARCHB functions
在单元格中对字符计数 Count characters in cells
组合文本和数字 Combine text and numbers
所有文本函数 All text functions
统计函数  Statistical functions 
使用 MEDIAN 查找中间值 Find the middle value with MEDIAN
使用 RANK 排列数据而对其进行排序 Rank data without sorting with RANK
使用 LARGE 返回数据集中的最大值 Return the largest value in a data set with LARGE
使用 SMALL 返回数据集中的最小值 Return the smallest value in a data set with SMALL
使用 COUNTBLANK 对空白单元格进行制表  Tabulate blank cells with COUNTBLANK 
使用 FREQUENCY 确定频率分布  Determine frequency distributions with FREQUENCY 
使用 TREND 通过回归技术构建分析 Build analysis via regression techniques with TREND
GROWTH 函数 GROWTH function
所有统计函数 All statistical functions
数学函数  Math functions 
将数字四舍五入到所需的小数位数  Round a number to the decimal places I want 
使用 MOD 查找余数 Find the remainder with MOD
使用 RAND 构建随机数生成器 Build random number generators with RAND
使用 RANDBETWEEN 生成指定数字范围内的随机数 Generate random number between numbers you specify with RANDBETWEEN
使用 CONVERT 在各度量系统之间转换值  Convert a value between measurement systems with CONVERT 
SUBTOTAL 函数 SUBTOTAL function
ROUND 函数 ROUND function
对数字进行舍入 Round a number

2. 所有函数

以上英文页面的函数列表,也可直接切换为中文,但中文内容是机器翻译,个别函数名也翻译为中文了。翻译基本没啥问题,但有少部分内容看起来会比较吃力。
下面分2部分摘录了以上所有函数列表及描述,少部分英文使用谷歌翻译修正,更适合阅读。
第二列,[Year]表示该函数出自当年版本,在此之前的版本不适用。(365)表示线上版本 Microsoft 365
方便通过中文或英文关键字页面搜索相关函数。这里的函数在LibreOffice下有的用法也都一致。

2.1 函数类别

Type 总数 表2.2 表2.3 类型
Lookup and reference 40 40 查找与引用
Logical 19 19 逻辑
Date and time 25 25 日期与时间
Math and trigonometry 80 80 数学与三角函数
Statistical 111 111 统计
Text 43 43 文本
Information 23 23 信息
Engineering 54 13 54 工程
Compatibility 40 2 40 兼容性
Financial 55 55 财务
Cube 7 7 多维数据集
Add-in and Automation 3 3 加载项和自动化
Database 12 12 数据库
Web 3 3 Web

2.2 所有函数之一

函数名称 Year 类型 说明 description 名称
ADDRESS
查找与引用 以文本形式将引用值返回到工作表的单个单元格 Returns a reference as text to a single cell in a worksheet 地址
AREAS
查找与引用 返回引用中涉及的区域个数 Returns the number of areas in a reference 区域
CHOOSE
查找与引用 从值的列表中选择值 Chooses a value from a list of values 选择
CHOOSECOLS 2024 查找与引用 返回数组中的指定列 Returns the specified columns from an array 选择列
CHOOSEROWS 2024 查找与引用 返回数组中的指定行 Returns the specified rows from an array 选择行
COLUMN
查找与引用 返回引用的列号 Returns the column number of a reference 列号
COLUMNS
查找与引用 返回引用中列数 Returns the number of columns in a reference 列数
ROW
查找与引用 返回引用的行号 Returns the row number of a reference 行号
ROWS
查找与引用 返回引用中的行数 Returns the number of rows in a reference 行数
DROP 2024 查找与引用 从数组的开头或结尾排除指定数量的行或列 Excludes a specified number of rows or columns from the start or end of an array 排除
EXPAND 2024 查找与引用 将数组展开或填充到指定的行和列维度 Expands or pads an array to specified row and column dimensions 扩展
FILTER 2021 查找与引用 基于定义的条件筛选一定范围内数据。 Filters a range of data based on criteria you define 过滤器
FORMULATEXT 2013 查找与引用 将给定引用的公式返回为文本 Returns the formula at the given reference as text 公式-文本
GETPIVOTDATA
查找与引用 返回存储在数据透视表中的数据 Returns data stored in a PivotTable report 数据透视
GROUPBY 365 查找与引用 帮助用户根据指定的字段对数据进行分组、聚合、排序和筛选 Helps a user group, aggregate, sort, and filter data based on the fields you specify 分组
PIVOTBY 365 查找与引用 帮助用户根据指定的行和列字段对数据进行分组、聚合、排序和筛选 Helps a user group, aggregate, sort, and filter data based on the row and column fields that you specify 分组...
LOOKUP
查找与引用 在向量或数组中查找值 Looks up values in a vector or array 查询
HLOOKUP
查找与引用 查找数组的首行,并返回指定单元格的值 Looks in the top row of an array and returns the value of the indicated cell 查询-H
VLOOKUP
查找与引用 在数组第一列中查找,然后在行之间移动以返回单元格的值 Looks in the first column of an array and moves across the row to return the value of a cell 查询-V
XLOOKUP 2021 查找与引用 搜索区域或数组,并返回与之找到的第一个匹配项对应的项。
如果不存在匹配项,则 XLOOKUP 可返回最接近(近似值)的匹配项。 
Searches a range or an array, and returns an item corresponding to the first match it finds.
If a match doesn't exist, then XLOOKUP can return the closest (approximate) match. 
查询-X
HSTACK 2024 查找与引用 按顺序水平追加数组,以返回更大的数组 Appends arrays horizontally and in sequence to return a larger array 堆栈-H
VSTACK 2024 查找与引用 按顺序垂直追加数组,以返回更大的数组 Appends arrays vertically and in sequence to return a larger array 堆栈-V
HYPERLINK
查找与引用 创建快捷方式或跳转,以打开存储在网络服务器、内联网或互联网上的文档 Creates a shortcut or jump that opens a document stored on a network server, an intranet, or the Internet 超级链接
IMAGE 2024 查找与引用 返回来自给定源的图像 Returns an image from a given source 图像
INDEX
查找与引用 使用索引从引用或数组中选择值 Uses an index to choose a value from a reference or array 索引
INDIRECT
查找与引用 返回由文本值指定的引用 Returns a reference indicated by a text value 间接
MATCH
查找与引用 在引用或数组中查找值 Looks up values in a reference or array 匹配
XMATCH 2021 查找与引用 返回项目在数组或单元格区域中的相对位置。  Returns the relative position of an item in an array or range of cells.  匹配-X
OFFSET
查找与引用 从给定引用中返回引用偏移量 Returns a reference offset from a given reference 偏移量
RTD
查找与引用 从支持 COM 自动化的程序中检索实时数据 Retrieves real-time data from a program that supports COM automation 实时数据
SORT 2021 查找与引用 对区域或数组的内容进行排序 Sorts the contents of a range or array 排序
SORTBY 2021 查找与引用 根据相应区域或数组中的值对区域或数组的内容进行排序 Sorts the contents of a range or array based on the values in a corresponding range or array 排序依据
TAKE 2024 查找与引用 从数组的开头或结尾返回指定数量的连续行或列 Returns a specified number of contiguous rows or columns from the start or end of an array
TOCOL 2024 查找与引用 返回单列中的数组 Returns the array in a single column 单列数组
TOROW 2024 查找与引用 返回单行中的数组 Returns the array in a single row 单行数组
TRANSPOSE
查找与引用 返回数组的转置 Returns the transpose of an array 转置
TRIMRANGE 365 查找与引用 从区域或数组的边缘扫描,直到找到非空单元格(或值),然后排除这些空行或空列 Scans in from the edges of a range or array until it finds a non-blank cell (or value), it then excludes those blank rows or columns 修剪范围
UNIQUE 2021 查找与引用 返回列表或区域的唯一值列表 Returns a list of unique values in a list or range 唯一
WRAPCOLS 2024 查找与引用 在指定数量的元素之后,将按列提供的值的行或列换行 Wraps the provided row or column of values by columns after a specified number of elements 按列换行
WRAPROWS 2024 查找与引用 在指定数量的元素之后,将按行提供的值的行或列换行 Wraps the provided row or column of values by rows after a specified number of elements 按行换行
DELTA
工程 Engineering 检验两个值是否相等 Tests whether two values are equal
BIN2OCT
工程 Engineering 将二进制数转换为八进制数 Converts a binary number to octal (2)→ (8)
BIN2DEC
工程 Engineering 将二进制数转换为十进制数 Converts a binary number to decimal (2)→ (10)
BIN2HEX
工程 Engineering 将二进制数转换为十六进制数 Converts a binary number to hexadecimal (2)→ (16)
OCT2BIN
工程 Engineering 将八进制数转换为二进制数 Converts an octal number to binary (8)→ (2)
OCT2DEC
工程 Engineering 将八进制数转换为十进制数 Converts an octal number to decimal (8)→ (10)
OCT2HEX
工程 Engineering 将八进制数转换为十六进制数 Converts an octal number to hexadecimal (8)→ (16)
DEC2BIN
工程 Engineering 将十进制数转换为二进制数 Converts a decimal number to binary (10)→ (2)
DEC2OCT
工程 Engineering 将十进制数转换为八进制数 Converts a decimal number to octal (10)→ (8)
DEC2HEX
工程 Engineering 将十进制数转换为十六进制数 Converts a decimal number to hexadecimal (10)→ (16)
HEX2BIN
工程 Engineering 将十六进制数转换为二进制数 Converts a hexadecimal number to binary (16)→ (2)
HEX2OCT
工程 Engineering 将十六进制数转换为八进制数 Converts a hexadecimal number to octal (16)→ (8)
HEX2DEC
工程 Engineering 将十六进制数转换为十进制数 Converts a hexadecimal number to decimal (16)→ (10)
AND
逻辑 Logical 如果其所有参数均为 TRUE,则返回 TRUE Returns TRUE if all of its arguments are TRUE 与
OR
逻辑 Logical 如果任一参数为 TRUE,则返回 TRUE Returns TRUE if any argument is TRUE 或
NOT
逻辑 Logical 对其参数的逻辑求反 Reverses the logic of its argument 非
XOR 2013 逻辑 Logical 返回所有参数的逻辑“异或”值 Returns a logical exclusive OR of all arguments 异或
LAMBDA 2024 逻辑 Logical 创建自定义、可重用项并通过易记名称调用它们 Create custom, reusable and call them by a friendly name LAMBDA
BYCOL 2024 逻辑 Logical 对每一列应用 LAMBDA 并返回结果数组 Applies a LAMBDA to each column and returns an array of the results LA 按行
BYROW 2024 逻辑 Logical 对每一行应用 LAMBDA 并返回结果数组 Applies a LAMBDA to each row and returns an array of the results LA 按列
MAKEARRAY 2024 逻辑 Logical 通过应用 LAMBDA 返回指定行和列大小的计算数组 Returns a calculated array of a specified row and column size, by applying a LAMBDA LA
MAP 2024 逻辑 Logical 通过应用 LAMBDA 将数组中的每个值映射到新值,从而返回一个数组 Returns an array formed by mapping each value in the array(s) to a new value by applying a LAMBDA to create a new value LA
REDUCE 2024 逻辑 Logical 通过对每个值应用 LAMBDA 函数,将数组缩减为累加值,并在累加器中返回总值 Reduces an array to an accumulated value by applying a LAMBDA to each value and returning the total value in the accumulator LA 减少
SCAN 2024 逻辑 Logical 通过对每个值应用 LAMBDA 扫描数组,并返回包含每个中间值的数组 Scans an array by applying a LAMBDA to each value and returns an array that has each intermediate value LA 扫描
TRUE
逻辑 Logical 返回逻辑值 TRUE Returns the logical value TRUE 真
FALSE
逻辑 Logical 返回逻辑值 FALSE Returns the logical value FALSE 假
IF
逻辑 Logical 指定要执行的逻辑检测 Specifies a logical test to perform IF
IFERROR
逻辑 Logical 如果公式的计算结果错误,则返回您指定的值;否则返回公式的结果 Returns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formula if错误
IFNA 2013 逻辑 Logical 如果表达式解析为 #N/A,则返回指定值;否则返回表达式的结果 Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression ifNA
IFS 2019 逻辑 Logical 检查是否满足一个或多个条件,且是否返回与第一个 TRUE 条件对应的值。 Checks whether one or more conditions are met and returns a value that corresponds to the first TRUE condition. IFS
LET 2021 逻辑 Logical 将名称分配给计算结果 Assigns names to calculation results
SWITCH 2019 逻辑 Logical 根据值列表计算表达式,并返回与第一个匹配值对应的结果。
如果不匹配,则可能返回可选默认值。
Evaluates an expression against a list of values and returns the result corresponding to the first matching value.
If there is no match, an optional default value may be returned.
开关
DATE
日期与时间 返回特定日期的序列号 Returns the serial number of a particular date 日期
DATEDIF
日期与时间 计算两个日期之间的天数、月数或年数。
此函数在用于计算年龄的公式中很有用。
Calculates the number of days, months, or years between two dates.
This function is useful in formulas where you need to calculate an age.

DATEVALUE
日期与时间 将文本格式的日期转换为序列号 Converts a date in the form of text to a serial number
DAY
日期与时间 将序列号转换为月份日期 Converts a serial number to a day of the month 取号数
DAYS 2013 日期与时间 返回两个日期之间的天数 Returns the number of days between two dates 天数
DAYS360
日期与时间 以一年 360 天为基准计算两个日期间的天数 Calculates the number of days between two dates based on a 360-day year
EDATE
日期与时间 返回起始日期前后指定月份数的日期序列号 Returns the serial number of the date that is the indicated number of months before or after the start date
EOMONTH
日期与时间 返回指定月数之前或之后的月份的最后一天的序列号 Returns the serial number of the last day of the month before or after a specified number of months
HOUR
日期与时间 将序列号转换为小时 Converts a serial number to an hour 小时
ISOWEEKNUM 2013 日期与时间 返回给定日期在全年中的 ISO 周数 Returns the number of the ISO week number of the year for a given date 等周数
MINUTE
日期与时间 将序列号转换为分钟 Converts a serial number to a minute 分钟
MONTH
日期与时间 将序列号转换为月 Converts a serial number to a month 取月份
NETWORKDAYS
日期与时间 返回两个日期间的完整工作日的天数 Returns the number of whole workdays between two dates 工作日数
NETWORKDAYS.INTL 2010 日期与时间 返回两个日期之间的完整工作日的天数(使用参数指明周末有几天并指明是哪几天) Returns the number of whole workdays between two dates using parameters to indicate which and how many days are weekend days
NOW
日期与时间 返回当前日期和时间的序列号 Returns the serial number of the current date and time 现在
SECOND
日期与时间 将序列号转换为秒 Converts a serial number to a second 秒
TIME
日期与时间 返回特定时间的序列号 Returns the serial number of a particular time 时间
TIMEVALUE
日期与时间 将文本格式的时间转换为序列号 Converts a time in the form of text to a serial number 时间值
TODAY
日期与时间 返回今天日期的序列号 Returns the serial number of today's date 今天
WEEKDAY
日期与时间 将序列号转换为星期日期 Converts a serial number to a day of the week 取星期
WEEKNUM
日期与时间 将序列号转换为代表该星期为一年中第几周的数字 Converts a serial number to a number representing where the week falls numerically with a year
WORKDAY
日期与时间 返回指定的若干个工作日之前或之后的日期的序列号 Returns the serial number of the date before or after a specified number of workdays 工作日
WORKDAY.INTL 2010 日期与时间 使用参数返回指定工作日数之前或之后日期的序列号,
以指示哪些天是周末以及有多少天是周末
Returns the serial number of the date before or after a specified number of workdays using parameters to indicate which and how many days are weekend days
YEAR
日期与时间 将序列号转换为年 Converts a serial number to a year 取年份
YEARFRAC
日期与时间 返回代表起始日期和结束日期之间整天天数的年分数。 Returns the year fraction representing the number of whole days between start_date and end_date
ABS
数学与三角函数 返回数字的绝对值 Returns the absolute value of a number 绝对值
ARABIC 2013 数学与三角函数 将罗马数字转换为阿拉伯数字 Converts a Roman number to Arabic, as a number 阿拉伯数
ROMAN
数学与三角函数 将阿拉伯数字转换为文字形式的罗马数字 Converts an arabic numeral to roman, as text 罗马数字
PI
数学与三角函数 返回 pi 的值 Returns the value of pi PI
BASE
数学与三角函数 将数字转换为具备给定基数 (base) 的文本表示 Converts a number into a text representation with the given radix (base)
DECIMAL 2013 数学与三角函数 将给定基数内的数的文本表示转换为十进制数 Converts a text representation of a number in a given base into a decimal number 十进制
COMBIN
数学与三角函数 返回给定数目对象的组合数 Returns the number of combinations for a given number of objects 组合数
COMBINA 2013 数学与三角函数 返回给定数目项目具有重复项的组合数 Returns the number of combinations with repetitions for a given number of items 重复组合数
INT
数学与三角函数 将数字向下舍入到最接近的整数 Rounds a number down to the nearest integer 整数
EVEN
数学与三角函数 将数字向上舍入到最接近的偶数 Rounds a number up to the nearest even integer 偶数
ODD
数学与三角函数 将数字向上舍入为最接近的奇数 Rounds a number up to the nearest odd integer 奇数
GCD
数学与三角函数 返回最大公约数 Returns the greatest common divisor 公约数
LCM
数学与三角函数 返回最小公倍数 Returns the least common multiple 公倍数
MOD
数学与三角函数 返回除法的余数 Returns the remainder from division 余数
QUOTIENT
数学与三角函数 返回除法的整数部分 Returns the integer portion of a division 商
POWER
数学与三角函数 返回数的乘幂 Returns the result of a number raised to a power 幂
SQRT
数学与三角函数 返回正平方根 Returns a positive square root 平方根
PRODUCT
数学与三角函数 将其参数相乘 Multiplies its arguments 值相乘
ROUND
数学与三角函数 将数字按指定位数舍入 Rounds a number to a specified number of digits 舍入
ROUNDDOWN
数学与三角函数 向绝对值减小的方向舍入数字 Rounds a number down, toward zero 向下取整
ROUNDUP
数学与三角函数 向绝对值增大的方向舍入数字 Rounds a number up, away from zero 向上取整
TRUNC
数学与三角函数 将数字截尾取整(舍尾) Truncates a number to an integer 截断
MROUND
数学与三角函数 返回一个舍入到所需倍数的数字 Returns a number rounded to the desired multiple
FLOOR
兼容性 将数字向下舍入 Rounds a number down, toward zero
FLOOR.MATH 2013 数学与三角函数 将数字向下舍入为最接近的整数或最接近的指定基数的倍数 Rounds a number down, to the nearest integer or to the nearest multiple of significance
FLOOR.PRECISE
数学与三角函数 将数字舍入为最接近的整数或最接近的指定基数的倍数。
无论该数字的符号如何,该数字都向上舍入。
Rounds a number the nearest integer or to the nearest multiple of significance.
Regardless of the sign of the number, the number is rounded up.

ISO.CEILING 2013 数学与三角函数 返回一个数字,该数字向上舍入为最接近的整数或最接近的有效位的倍数 Returns a number that is rounded up to the nearest integer or to the nearest multiple of significance ISO上限
CEILING
兼容性 将数字舍入为最接近的整数或最接近的指定基数的倍数 Rounds a number to the nearest integer or to the nearest multiple of significance
CEILING.MATH 2013 数学与三角函数 将数字向上舍入为最接近的整数或最接近的指定基数的倍数 Rounds a number up, to the nearest integer or to the nearest multiple of significance
CEILING.PRECISE
数学与三角函数 将数字舍入为最接近的整数或最接近的指定基数的倍数。
无论该数字的符号如何,该数字都向上舍入。
Rounds a number the nearest integer or to the nearest multiple of significance.
Regardless of the sign of the number, the number is rounded up.

AGGREGATE
数学与三角函数 返回列表或数据库中的聚合 Returns an aggregate in a list or database 聚合
DEGREES
数学与三角函数 将弧度转换为度 Converts radians to degrees 弧度-角度
RADIANS
数学与三角函数 将度转换为弧度 Converts degrees to radians 角度-弧度
ACOS
数学与三角函数 返回数字的反余弦值 Returns the arccosine of a number 反余弦
ACOSH
数学与三角函数 返回数字的反双曲余弦值 Returns the inverse hyperbolic cosine of a number 反双曲余弦
ACOT 2013 数学与三角函数 返回数字的反余切值 Returns the arccotangent of a number 反余切
ACOTH 2013 数学与三角函数 返回数字的双曲反余切值 Returns the hyperbolic arccotangent of a number 双曲反余切
ASIN
数学与三角函数 返回数字的反正弦值 Returns the arcsine of a number 反正弦
ASINH
数学与三角函数 返回数字的反双曲正弦值 Returns the inverse hyperbolic sine of a number 反双曲正弦
ATAN
数学与三角函数 返回数字的反正切值 Returns the arctangent of a number 反正切
ATAN2
数学与三角函数 返回 X 和 Y 坐标的反正切值 Returns the arctangent from x- and y-coordinates
ATANH
数学与三角函数 返回数字的反双曲正切值 Returns the inverse hyperbolic tangent of a number 反双曲正切
COS
数学与三角函数 返回数字的余弦值 Returns the cosine of a number 余弦函数
COSH
数学与三角函数 返回数字的双曲余弦值 Returns the hyperbolic cosine of a number 余弦函数
COT 2013 数学与三角函数 返回数字的双曲余弦值 Returns the hyperbolic cosine of a number 余弦函数
COTH 2013 数学与三角函数 返回角度的余弦值 Returns the cotangent of an angle 余弦
CSC 2013 数学与三角函数 返回角度的余割值 Returns the cosecant of an angle
CSCH 2013 数学与三角函数 返回角度的双曲余割值 Returns the hyperbolic cosecant of an angle
SEC 2013 数学与三角函数 返回角度的正割值 Returns the secant of an angle
SECH 2013 数学与三角函数 返回角度的双曲正切值 Returns the hyperbolic secant of an angle
SIN
数学与三角函数 返回给定角度的正弦值 Returns the sine of the given angle 正弦
SINH
数学与三角函数 返回数字的双曲正弦值 Returns the hyperbolic sine of a number
TAN
数学与三角函数 返回数字的正切值 Returns the tangent of a number 正切
TANH
数学与三角函数 返回数字的双曲正切值 Returns the hyperbolic tangent of a number
EXP
数学与三角函数 返回 e 的 n 次方 Returns e raised to the power of a given number
FACT
数学与三角函数 返回数字的阶乘 Returns the factorial of a number 阶乘
FACTDOUBLE
数学与三角函数 返回数字的双倍阶乘 Returns the double factorial of a number
LN
数学与三角函数 返回数字的自然对数 Returns the natural logarithm of a number
LOG
数学与三角函数 返回数字的以指定底为底的对数 Returns the logarithm of a number to a specified base
LOG10
数学与三角函数 返回数字的以 10 为底的对数 Returns the base-10 logarithm of a number
MDETERM
数学与三角函数 返回数组的矩阵行列式的值 Returns the matrix determinant of an array
MINVERSE
数学与三角函数 返回数组的逆矩阵 Returns the matrix inverse of an array
MMULT
数学与三角函数 返回两个数组的矩阵乘积 Returns the matrix product of two arrays
MULTINOMIAL
数学与三角函数 返回一组数字的多项式 Returns the multinomial of a set of numbers 多项式
MUNIT 2013 数学与三角函数 返回单位矩阵或指定维度 Returns the unit matrix or the specified dimension
PERCENTOF 365 数学与三角函数 对子集中的值求和并将其除以所有值 Sums the values in the subset and divides it by all the values 百分比
RAND
数学与三角函数 返回 0 和 1 之间的一个随机数 Returns a random number between 0 and 1 随机数
RANDARRAY 2021 数学与三角函数 返回 0 和 1 之间的随机数字数组。
但是,你可以指定要填充的行数和列数、最小值和最大值,以及返回整数或小数。
Returns an array of random numbers between 0 and 1.
However, you can specify the number of rows and columns to fill, minimum and maximum values, and whether to return whole numbers or decimal values.
随机数组
RANDBETWEEN
数学与三角函数 返回指定数字之间的随机数 Returns a random number between the numbers you specify 范围内随机数
SEQUENCE 2021 数学与三角函数 生成数组中的序列号列表,例如 1、2、3、4 Generates a list of sequential numbers in an array, such as 1, 2, 3, 4 序列
SERIESSUM
数学与三角函数 返回基于公式的幂级数的和 Returns the sum of a power series based on the formula 幂级数和
SIGN
数学与三角函数 返回数字的符号 Returns the sign of a number 符号
SQRTPI
数学与三角函数 返回 (数字 * π) 的平方根 Returns the square root of (number * pi) 平方根PI
SUBTOTAL
数学与三角函数 返回列表或数据库中的小计 Returns a subtotal in a list or database 小计
SUM
数学与三角函数 求参数的和 Adds its arguments 总计
SUMIF
数学与三角函数 按给定条件对指定单元格求和 Adds the cells specified by a given criteria SUMIF
SUMIFS
数学与三角函数 在区域中添加满足多个条件的单元格 Adds the cells in a range that meet multiple criteria SUMIFS
SUMPRODUCT
数学与三角函数 返回对应的数组元素的乘积和 Returns the sum of the products of corresponding array components 乘积和
SUMSQ
数学与三角函数 返回参数的平方和 Returns the sum of the squares of the arguments SUMSQ
SUMX2MY2
数学与三角函数 返回两数组中对应值平方差之和 Returns the sum of the difference of squares of corresponding values in two arrays SUMX2MY2
SUMX2PY2
数学与三角函数 返回两数组中对应值平方和之和 Returns the sum of the sum of squares of corresponding values in two arrays SUMX2PY2
SUMXMY2
数学与三角函数 返回两数组中对应值差的平方和 Returns the sum of squares of differences of corresponding values in two arrays SUMXMY2
AVEDEV
统计 Statistical 返回数据点与它们的平均值的绝对偏差平均值 Returns the average of the absolute deviations of data points from their mean
AVERAGE
统计 Statistical 返回其参数的平均值 Returns the average of its arguments 平均值
AVERAGEA
统计 Statistical 返回其参数的平均值,包括数字、文本和逻辑值 Returns the average of its arguments, including numbers, text, and logical values
AVERAGEIF
统计 Statistical 返回区域中满足给定条件的所有单元格的平均值(算术平均值) Returns the average (arithmetic mean) of all the cells in a range that meet a given criteria
AVERAGEIFS
统计 Statistical 返回满足多个条件的所有单元格的平均值(算术平均值)。 Returns the average (arithmetic mean) of all cells that meet multiple criteria.
BETA.DIST 2010 统计 Statistical 返回 beta 累积分布函数 Returns the beta cumulative distribution function
BETA.INVn 2010 统计 Statistical 返回指定 beta 分布的累积分布函数的反函数 Returns the inverse of the cumulative distribution function for a specified beta distribution
BINOM.DIST 2010 统计 Statistical 返回一元二项式分布的概率 Returns the individual term binomial distribution probability
BINOM.DIST.RANGE 2013 统计 Statistical 使用二项式分布返回试验结果的概率 Returns the probability of a trial result using a binomial distribution
BINOM.INV 2010 统计 Statistical 返回使累积二项式分布小于或等于临界值的最小值 Returns the smallest value for which the cumulative binomial distribution is less than or equal to a criterion value
CHISQ.DIST 2010 统计 Statistical 返回累积 beta 概率密度函数 Returns the cumulative beta probability density function
CHISQ.DIST.RT 2010 统计 Statistical 返回 χ2 分布的单尾概率 Returns the one-tailed probability of the chi-squared distribution
CHISQ.INV 2010 统计 Statistical 返回累积 beta 概率密度函数 Returns the cumulative beta probability density function
CHISQ.INV.RT 2010 统计 Statistical 返回 χ2 分布的单尾概率的反函数 Returns the inverse of the one-tailed probability of the chi-squared distribution
CHISQ.TEST 2010 统计 Statistical 返回独立性检验值 Returns the test for independence
CONFIDENCE.NORM 2010 统计 Statistical 返回总体平均值的置信区间 Returns the confidence interval for a population mean
CONFIDENCE.T 2010 统计 Statistical 返回总体平均值的置信区间(使用学生 t-分布) Returns the confidence interval for a population mean, using a Student's t distribution
CORREL
统计 Statistical 返回两个数据集之间的相关系数 Returns the correlation coefficient between two data sets 相关系数
COUNT
统计 Statistical 计算参数列表中数字的个数 Counts how many numbers are in the list of arguments 计数
COUNTA
统计 Statistical 计算参数列表中值的个数 Counts how many values are in the list of arguments 计数A
COUNTBLANK
统计 Statistical 计算区域内空白单元格的数量 Counts the number of blank cells within a range 计数空白
COUNTIF
统计 Statistical 计算区域内符合给定条件的单元格的数量 Counts the number of cells within a range that meet the given criteria 计数IF
COUNTIFS
统计 Statistical 计算区域内符合多个条件的单元格的数量 Counts the number of cells within a range that meet multiple criteria 计数IFS
COVARIANCE.P 2010 统计 Statistical 返回协方差(成对偏差乘积的平均值) Returns covariance, the average of the products of paired deviations
COVARIANCE.S 2010 统计 Statistical 返回样本协方差,即两个数据集中每对数据点的偏差乘积的平均值 Returns the sample covariance, the average of the products deviations for each data point pair in two data sets
DEVSQ
统计 Statistical 返回偏差的平方和 Returns the sum of squares of deviations
EXPON.DIST 2010 统计 Statistical 返回指数分布 Returns the exponential distribution
F.DIST 2010 统计 Statistical 返回 F 概率分布 Returns the F probability distribution
F.DIST.RT 2010 统计 Statistical 返回 F 概率分布 Returns the F probability distribution
F.INV 2010 统计 Statistical 返回 F 概率分布的反函数 Returns the inverse of the F probability distribution
F.INV.RT 2010 统计 Statistical 返回 F 概率分布的反函数 Returns the inverse of the F probability distribution
F.TEST 2010 统计 Statistical 返回 F 检验的结果 Returns the result of an F-test
FISHER
统计 Statistical 返回 Fisher 变换值 Returns the Fisher transformation
FISHERINV
统计 Statistical 返回 Fisher 变换的反函数 Returns the inverse of the Fisher transformation
FORECAST
统计 Statistical 返回线性趋势值。作为新预测的一部分,
此函数已被 FORECAST.LINEAR 取代,但仍可与早期版本兼容。
Returns a value along a linear trend
This function has been replaced with FORECAST.LINEAR as part of the new Forecasting, but it's still available for compatibility with earlier versions.
预测
FORECAST.ETS 2016 统计 Statistical 通过使用指数平滑 (ETS) 算法的 AAA 版本,返回基于现有(历史)值的未来值 Returns a future value based on existing (historical) values by using the AAA version of the Exponential Smoothing (ETS) algorithm
FORECAST.ETS.CONFINT 2016 统计 Statistical 返回指定目标日期预测值的置信区间 Returns a confidence interval for the forecast value at the specified target date
FORECAST.ETS.SEASONALITY 2016 统计 Statistical 返回 Excel 针对指定时间系列检测到的重复模式的长度 Returns the length of the repetitive pattern Excel detects for the specified time series
FORECAST.ETS.STAT 2016 统计 Statistical 返回作为时间序列预测的结果的统计值。 Returns a statistical value as a result of time series forecasting
FORECAST.LINEAR 2016 统计 Statistical 返回基于现有值的未来值 Returns a future value based on existing values
FREQUENCY
统计 Statistical 以垂直数组的形式返回频率分布 Returns a frequency distribution as a vertical array 频率
GAMMA 2013 统计 Statistical 返回 γ 函数值 Returns the Gamma function value
GAMMA.DIST 2010 统计 Statistical 返回 γ 分布 Returns the gamma distribution
GAMMA.INV 2010 统计 Statistical 返回 γ 累积分布函数的反函数 Returns the inverse of the gamma cumulative distribution
GAMMALN
统计 Statistical 返回 γ 函数的自然对数,Γ(x) Returns the natural logarithm of the gamma function, Γ(x)
GAMMALN.PRECISE 2010 统计 Statistical 返回 γ 函数的自然对数,Γ(x) Returns the natural logarithm of the gamma function, Γ(x)
GAUSS 2013 统计 Statistical 返回小于标准正态累积分布 0.5 的值 Returns 0.5 less than the standard normal cumulative distribution 高斯
GEOMEAN
统计 Statistical 返回几何平均值 Returns the geometric mean 几何平均法
GROWTH
统计 Statistical 返回指数趋势值 Returns values along an exponential trend
HARMEAN
统计 Statistical 返回调和平均值 Returns the harmonic mean
HYPGEOM.DIST
统计 Statistical 返回超几何分布 Returns the hypergeometric distribution 超几何分布
INTERCEPT
统计 Statistical 返回线性回归线的截距 Returns the intercept of the linear regression line
KURT
统计 Statistical 返回数据集的峰值 Returns the kurtosis of a data set 峰值
LARGE
统计 Statistical 返回数据集中第 k 个最大值 Returns the k-th largest value in a data set 大的
LINEST
统计 Statistical 返回线性趋势的参数 Returns the parameters of a linear trend
LOGEST
统计 Statistical 返回指数趋势的参数 Returns the parameters of an exponential trend
LOGNORM.DIST 2010 统计 Statistical 返回对数累积分布函数 Returns the cumulative lognormal distribution
LOGNORM.INV 2010 统计 Statistical 返回对数累积分布的反函数 Returns the inverse of the lognormal cumulative distribution
MAX
统计 Statistical 返回参数列表中的最大值 Returns the maximum value in a list of arguments MAX
MAXA
统计 Statistical 返回参数列表中的最大值,包括数字、文本和逻辑值 Returns the maximum value in a list of arguments, including numbers, text, and logical values MAXA
MAXIFS 2019 统计 Statistical 返回一组给定条件或标准指定的单元格之间的最大值 Returns the maximum value among cells specified by a given set of conditions or criteria MAXIFS
MEDIAN
统计 Statistical 返回给定数值集合的中值 Returns the median of the given numbers MEDIAN
MIN
统计 Statistical 返回参数列表中的最小值 Returns the minimum value in a list of arguments 最小值
MINA
统计 Statistical 返回参数列表中的最小值,包括数字、文本和逻辑值 Returns the smallest value in a list of arguments, including numbers, text, and logical values MINA
MINIFS 2019 统计 Statistical 返回一组给定条件或标准指定的单元格之间的最小值。 Returns the minimum value among cells specified by a given set of conditions or criteria. MINIFS
MODE.MULT 2010 统计 Statistical 返回数组或数据区域中最常出现或重复的值的垂直数组 Returns a vertical array of the most frequently occurring, or repetitive values in an array or range of data
MODE.SNGL 2010 统计 Statistical 返回在数据集内出现次数最多的值 Returns the most common value in a data set
NEGBINOM.DIST 2010 统计 Statistical 返回负二项式分布 Returns the negative binomial distribution
NORM.DIST 2010 统计 Statistical 返回正态累积分布 Returns the normal cumulative distribution
NORM.S.DIST 2010 统计 Statistical 返回标准正态累积分布 Returns the standard normal cumulative distribution
NORM.S.INV 2010 统计 Statistical 返回标准正态累积分布函数的反函数 Returns the inverse of the standard normal cumulative distribution
NORMINV
统计 Statistical 返回正态累积分布的反函数 Returns the inverse of the normal cumulative distribution
PEARSON
统计 Statistical 返回 Pearson 乘积矩相关系数 Returns the Pearson product moment correlation coefficient
PERCENTILE.EXC 2010 统计 Statistical 返回某个范围内值的第 k 个百分点值,其中k在0到1之间(不包括0和1) Returns the k-th percentile of values in a range, where k is in the range 0..1, exclusive 百分位数.EXC
PERCENTILE.INC 2010 统计 Statistical 返回区域中数值的第 k 个百分点的值 Returns the k-th percentile of values in a range 百分位数.INC
PERCENTRANK.EXC 2010 统计 Statistical 返回某个值在数据集中的排名(以百分比表示),数据集的百分比(不包括0到1) Returns the rank of a value in a data set as a percentage (0..1, exclusive) of the data set
PERCENTRANK.INC 2010 统计 Statistical 返回数据集中值的百分比排位 Returns the percentage rank of a value in a data set
PERMUT
统计 Statistical 返回给定数目对象的排列数 Returns the number of permutations for a given number of objects
PERMUTATIONA 2013 统计 Statistical 返回可从总计对象中选择的给定数目对象(含重复)的排列数 Returns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects
PHI 2013 统计 Statistical 返回标准正态分布的密度函数值 Returns the value of the density function for a standard normal distribution
POISSON.DIST 2010 统计 Statistical 返回泊松分布 Returns the Poisson distribution
PROB
统计 Statistical 返回区域中的数值落在指定区间内的概率 Returns the probability that values in a range are between two limits 概率
QUARTILE.EXC 2010 统计 Statistical 基于 0 到 1(不含 0 和 1)之间的百分位数值,返回数据集的四分位数 Returns the quartile of the data set, based on percentile values from 0..1, exclusive
QUARTILE.INC 2010 统计 Statistical 返回一组数据的四分位点 Returns the quartile of a data set
RANK.AVG 2010 统计 Statistical 返回一列数字的数字排位 Returns the rank of a number in a list of numbers
RANK.EQ 2010 统计 Statistical 返回一列数字的数字排位 Returns the rank of a number in a list of numbers
RSQ
统计 Statistical 返回 Pearson 乘积矩相关系数的平方 Returns the square of the Pearson product moment correlation coefficient
SKEW
统计 Statistical 返回分布的不对称度 Returns the skewness of a distribution 倾斜
SKEW.P 2013 统计 Statistical 返回一个分布的不对称度:
用来体现某一分布相对其平均值的不对称程度
Returns the skewness of a distribution based on a population:
A characterization of the degree of asymmetry of a distribution around its mean
倾斜.P
SLOPE
统计 Statistical 返回线性回归线的斜率 Returns the slope of the linear regression line 斜率
SMALL
统计 Statistical 返回数据集中的第 k 个最小值 Returns the k-th smallest value in a data set 小
STANDARDIZE
统计 Statistical 返回正态化数值 Returns a normalized value 标准化
STDEV.P 2010 统计 Statistical 基于整个样本总体计算标准偏差 Calculates standard deviation based on the entire population 标准差.P
STDEV.S 2010 统计 Statistical 基于样本估算标准偏差 Estimates standard deviation based on a sample 标准差.S
STDEVA
统计 Statistical 基于样本(包括数字、文本和逻辑值)估算标准偏差 Estimates standard deviation based on a sample, including numbers, text, and logical values 标准差
STDEVPA
统计 Statistical 根据总体计算标准差,包括数字、文本和逻辑值 Calculates standard deviation based on the entire population, including numbers, text, and logical values 标准差PA
STEYX
统计 Statistical 返回通过线性回归法预测每个 x 的 y 值时所产生的标准误差 Returns the standard error of the predicted y-value for each x in the regression
T.DIST 2010 统计 Statistical 返回学生 t-分布的百分点(概率) Returns the Percentage Points (probability) for the Student t-distribution
T.DIST.2T 2010 统计 Statistical 返回学生 t-分布的百分点(概率) Returns the Percentage Points (probability) for the Student t-distribution
T.DIST.RT 2010 统计 Statistical 返回学生 t-分布 Returns the Student's t-distribution
T.INV 2010 统计 Statistical 返回作为概率和自由度函数的学生 t 分布的 t 值 Returns the t-value of the Student's t-distribution as a function of the probability and the degrees of freedom
T.INV.2T 2010 统计 Statistical 返回学生 t-分布的反函数 Returns the inverse of the Student's t-distribution
T.TEST 2010 统计 Statistical 返回与学生 t-检验相关的概率 Returns the probability associated with a Student's t-test
TREND
统计 Statistical 返回线性趋势值 Returns values along a linear trend 趋势
TRIMMEAN
统计 Statistical 返回数据集的内部平均值 Returns the mean of the interior of a data set 修剪平均值
VAR.P 2010 统计 Statistical 计算基于样本总体的方差 Calculates variance based on the entire population
VAR.S 2010 统计 Statistical 基于样本估算方差 Estimates variance based on a sample
VARA
统计 Statistical 基于样本(包括数字、文本和逻辑值)估算方差 Estimates variance based on a sample, including numbers, text, and logical values
VARPA
统计 Statistical 基于样本总体(包括数字、文本和逻辑值)计算标准偏差 Calculates variance based on the entire population, including numbers, text, and logical values
WEIBULL.DIST 2010 统计 Statistical 返回 Weibull 分布 Returns the Weibull distribution
Z.TEST 2010 统计 Statistical 返回 z 检验的单尾概率值 Returns the one-tailed probability-value of a z-test
ARRAYTOTEXT​ 2021 文本 Text 返回任意指定范围的文本值数组。 Returns an array of text values from any specified range
ASC
文本 Text 将字符串中的全角(双字节)英文字母或片假名更改为半角(单字节)字符 Changes full-width (double-byte) English letters or katakana within a character string to half-width (single-byte) characters 全角-半角
DBCS 2013 文本 Text 将字符串中的半角(单字节)英文字母或片假名更改为全角(双字节)字符 Changes half-width (single-byte) English letters or katakana within a character string to full-width (double-byte) characters 半角-全角
JIS
文本 Text 将字符串中的半宽度(单字节)字符更改为全宽(双字节)字符 Changes half-width (single-byte) characters within a string to full-width (double-byte) characters 半角-全角
BAHTTEXT
文本 Text 使用 ß(泰铢)货币格式将数字转换为文本 Converts a number to text, using the ß (baht) currency format
CHAR
文本 Text 返回由代码数字指定的字符 Returns the character specified by the code number 字符
CLEAN
文本 Text 删除文本中所有非打印字符 Removes all nonprintable characters from text 清理
CODE
文本 Text 返回文本字符串中第一个字符的数字代码 Returns a numeric code for the first character in a text string 代码
CONCAT 2019 文本 Text 将多个范围和/或字符串中的文本合并,但不提供分隔符或 IgnoreEmpty 参数。 Combines the text from multiple ranges and/or strings, but it doesn't provide the delimiter or IgnoreEmpty arguments. 连接
CONCATENATE
文本 Text 将几个文本项合并为一个文本项 Joins several text items into one text item 连接
DETECTLANGUAGE 365 文本 Text 标识指定文本的语言 Identifies the language of a specified text 检测语言
DOLLAR
文本 Text 使用 $(人民币)货币格式将数字转换为文本 Converts a number to text, using the $ (dollar) currency format 美元
EXACT
文本 Text 检查两个文本值是否相同 Checks to see if two text values are identical 是否相同
FIND, FINDB
文本 Text 在一个文本值中查找另一个文本值(区分大小写) Finds one text value within another (case-sensitive) 查找
FIXED
文本 Text 将数字格式设置为具有固定小数位数的文本 Formats a number as text with a fixed number of decimals 固定
LEFT, LEFTB
文本 Text 返回文本值中最左边的字符 Returns the leftmost characters from a text value 取字-左
MID, MIDB
文本 Text 从文本字符串中的指定位置起返回特定个数的字符 Returns a specific number of characters from a text string starting at the position you specify 取字-中间
RIGHT, RIGHTB
文本 Text 返回文本值中最右边的字符 Returns the rightmost characters from a text value 取字-右
LEN, LENB
文本 Text 返回文本字符串中的字符个数 Returns the number of characters in a text string 字符个数
LOWER
文本 Text 将文本转换为小写 Converts text to lowercase 小写
UPPER
文本 Text 将文本转换为大写形式 Converts text to uppercase 大写
VALUE
文本 Text 将文本参数转换为数字 Converts a text argument to a number 值
VALUETOTEXT 2021 文本 Text 从任意指定值返回文本 Returns text from any specified value 文本值
PROPER
文本 Text 将文本值的每个字的首字母大写 Capitalizes the first letter in each word of a text value 首字母大写
NUMBERVALUE 2013 文本 Text 以与区域设置无关的方式将文本转换为数字 Converts text to number in a locale-independent manner
PHONETIC
文本 Text 提取文本字符串中的拼音(汉字注音)字符 Extracts the phonetic (furigana) characters from a text string 拼音
REGEXEXTRACT 365 文本 Text 提取所提供文本中与模式匹配的字符串 Extracts strings within the provided text that matches the pattern
REGEXREPLACE 365 文本 Text 将所提供文本中与模式匹配的字符串替换为替换项 Replaces strings within the provided text that matches the pattern with replacement
REGEXTEST 365 文本 Text 确定文本的任何部分是否与模式匹配 Determines whether any part of text matches the pattern
REPLACE, REPLACEB
文本 Text 替换文本中的字符 Replaces characters within text 替换
REPT
文本 Text 按给定次数重复文本 Repeats text a given number of times 重复
SEARCH, SEARCHB
文本 Text 在一个文本值中查找另一个文本值(不区分大小写) Finds one text value within another (not case-sensitive) 搜索
SUBSTITUTE
文本 Text 在文本字符串中用新文本替换旧文本 Substitutes new text for old text in a text string 替换
T
文本 Text 将参数转换为文本 Converts its arguments to text
TEXT
文本 Text 设置数字格式并将其转换为文本 Formats a number and converts it to text 文本
TEXTAFTER 2024 文本 Text 返回在给定字符或字符串之后发生的文本 Returns text that occurs after given character or string
TEXTBEFORE 2024 文本 Text 返回在给定字符或字符串之前发生的文本 Returns text that occurs before a given character or string
TEXTJOIN 2019 文本 Text 合并来自多个范围和/或字符串的文本 Combines the text from multiple ranges and/or strings
TEXTSPLIT 2024 文本 Text 使用列和行分隔符拆分文本字符串 Splits text strings by using column and row delimiters 文本分割
TRANSLATE 365 文本 Text 将文本从一种语言翻译为另一种语言 Translates a text from one language to another 翻译
TRIM
文本 Text 删除文本中的空格 Removes spaces from text 删除空格
UNICHAR 2013 文本 Text 返回给定数值引用的 Unicode 字符 Returns the Unicode character that is references by the given numeric value
UNICODE 2013 文本 Text 返回对应于文本的第一个字符的数字(代码点) Returns the number (code point) that corresponds to the first character of the text
CELL
信息 Information 返回有关单元格格式、位置或内容的信息。
此函数在 Excel 网页版 中不可用。
Returns information about the formatting, location, or contents of a cell
This function is not available in Excel for the web.
单元格
ERROR.TYPE
信息 Information 返回对应于错误类型的数字 Returns a number corresponding to an error type
INFO
信息 Information 返回有关当前操作环境的信息。
此函数在 Excel 网页版 中不可用。
Returns information about the current operating environment
This function is not available in Excel for the web.
信息
ISBLANK
信息 Information 如果值为空,则返回 TRUE Returns TRUE if the value is blank is空白
ISERR
信息 Information 如果值为除 #N/A 以外的任何错误值,则返回 TRUE Returns TRUE if the value is any error value except #N/A is错误
ISERROR
信息 Information 如果值为任何错误值,则返回 TRUE Returns TRUE if the value is any error value is错误s
ISEVEN
信息 Information 如果数字为偶数,则返回 TRUE Returns TRUE if the number is even is偶数
ISODD
信息 Information 如果数字为奇数,则返回 TRUE Returns TRUE if the number is odd is奇数
ISFORMULA 2013 信息 Information 如果有对包含公式的单元格的引用,则返回 TRUE Returns TRUE if there is a reference to a cell that contains a formula is公式
ISLOGICAL
信息 Information 如果值为逻辑值,则返回 TRUE Returns TRUE if the value is a logical value is逻辑
ISNA
信息 Information 如果值为错误值 #N/A,则返回 TRUE Returns TRUE if the value is the #N/A error value isNA
ISNONTEXT
信息 Information 如果值不是文本,则返回 TRUE Returns TRUE if the value is not text is非文本
ISNUMBER
信息 Information 如果值为数字,则返回 TRUE Returns TRUE if the value is a number is数字
ISOMITTED 2024 信息 Information 检查 LAMBDA 中是否缺少值,并返回 TRUE 或 FALSE Checks whether the value in a LAMBDA is missing and returns TRUE or FALSE is缺少值
ISREF
信息 Information 如果值为引用值,则返回 TRUE Returns TRUE if the value is a reference is引用
ISTEXT
信息 Information 如果值为文本,则返回 TRUE Returns TRUE if the value is text is文本
N
信息 Information 返回转换为数字的值 Returns a value converted to a number
NA
信息 Information 返回错误值 #N/A Returns the error value #N/A
SHEET 2013 信息 Information 返回引用工作表的工作表编号 Returns the sheet number of the referenced sheet 工作表
SHEETS 2013 信息 Information 返回引用中的工作表数 Returns the number of sheets in a reference 工作表
STOCKHISTORY
信息 Information 检索有关金融工具的历史数据,并将其作为数组加载 Retrieves historical data about a financial instrument and loads it as an array
STOCKHISTORY 365 信息 Information 检索有关金融工具的历史数据 Retrieves historical data about a financial instrument
TYPE
信息 Information 返回表示值的数据类型的数字 Returns a number indicating the data type of a value 类型

2.3 所有函数之二

函数名称 Year 类型 说明 description
ACCRINT
财务 Financial 返回定期支付利息的债券的应计利息 Returns the accrued interest for a security that pays periodic interest
ACCRINTM
财务 Financial 返回到期支付利息的债券的应计利息 Returns the accrued interest for a security that pays interest at maturity
AMORDEGRC
财务 Financial 使用折旧系数返回每个记帐期的折旧值 Returns the depreciation for each accounting period by using a depreciation coefficient
AMORLINC
财务 Financial 返回每个记帐期的折旧值 Returns the depreciation for each accounting period
COUPDAYBS
财务 Financial 返回从票息期开始到结算日之间的天数 Returns the number of days from the beginning of the coupon period to the settlement date
COUPDAYS
财务 Financial 返回包含结算日的票息期天数 Returns the number of days in the coupon period that contains the settlement date
COUPDAYSNC
财务 Financial 返回从结算日到下一票息支付日之间的天数 Returns the number of days from the settlement date to the next coupon date
COUPNCD
财务 Financial 返回结算日之后的下一个票息支付日 Returns the next coupon date after the settlement date
COUPNUM
财务 Financial 返回结算日与到期日之间可支付的票息数 Returns the number of coupons payable between the settlement date and maturity date
COUPPCD
财务 Financial 返回结算日之前的上一票息支付日 Returns the previous coupon date before the settlement date
CUMIPMT
财务 Financial 返回两个付款期之间累积支付的利息 Returns the cumulative interest paid between two periods
CUMPRINC
财务 Financial 返回两个付款期之间为贷款累积支付的本金 Returns the cumulative principal paid on a loan between two periods
DB
财务 Financial 使用固定余额递减法返回指定期间的资产折旧值 Returns the depreciation of an asset for a specified period by using the fixed-declining balance method
DDB
财务 Financial 使用双倍余额递减法或其他指定方法,返回一笔资产在给定期间内的折旧值 Returns the depreciation of an asset for a specified period by using the double-declining balance method or some other method that you specify
DISC
财务 Financial 返回债券的贴现率 Returns the discount rate for a security
DOLLARDE
财务 Financial 将以分数表示的价格转换为以小数表示的价格 Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number
DOLLARFR
财务 Financial 将以小数表示的价格转换为以分数表示的价格 Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction
DURATION
财务 Financial 返回定期支付利息的债券的每年期限 Returns the annual duration of a security with periodic interest payments
EFFECT
财务 Financial 返回年有效利率 Returns the effective annual interest rate
FV
财务 Financial 返回一笔投资的未来值 Returns the future value of an investment
FVSCHEDULE
财务 Financial 返回应用一系列复利率计算的初始本金的未来值 Returns the future value of an initial principal after applying a series of compound interest rates
INTRATE
财务 Financial 返回完全投资型债券的利率 Returns the interest rate for a fully invested security
IPMT
财务 Financial 返回一笔投资在给定期间内支付的利息 Returns the interest payment for an investment for a given period
IRR
财务 Financial 返回一系列现金流的内部收益率 Returns the internal rate of return for a series of cash flows
ISPMT
财务 Financial 计算特定投资期内要支付的利息 Calculates the interest paid during a specific period of an investment
MDURATION
财务 Financial 返回假设面值为 $100 的有价证券的 Macauley 修正期限 Returns the Macauley modified duration for a security with an assumed par value of $100
MIRR
财务 Financial 返回正负现金流以不同利率融资的内部收益率 Returns the internal rate of return where positive and negative cash flows are financed at different rates
NOMINAL
财务 Financial 返回年度的名义利率 Returns the annual nominal interest rate
NPER
财务 Financial 返回投资的期数 Returns the number of periods for an investment
NPV
财务 Financial 返回基于一系列定期的现金流和贴现率计算的投资的净现值 Returns the net present value of an investment based on a series of periodic cash flows and a discount rate
ODDFPRICE
财务 Financial 返回每张票面为 $100 且第一期为奇数的债券的现价 Returns the price per $100 face value of a security with an odd first period
ODDFYIELD
财务 Financial 返回第一期为奇数的债券的收益 Returns the yield of a security with an odd first period
ODDLPRICE
财务 Financial 返回每张票面为 $100 且最后一期为奇数的债券的现价 Returns the price per $100 face value of a security with an odd last period
ODDLYIELD
财务 Financial 返回最后一期为奇数的债券的收益 Returns the yield of a security with an odd last period
PDURATION 2013 财务 Financial 返回投资到达指定值所需的期数 Returns the number of periods required by an investment to reach a specified value
PMT
财务 Financial 返回年金的定期支付金额 Returns the periodic payment for an annuity
PPMT
财务 Financial 返回一笔投资在给定期间内偿还的本金 Returns the payment on the principal for an investment for a given period
PRICE
财务 Financial 返回每张票面为 $100 且定期支付利息的债券的现价 Returns the price per $100 face value of a security that pays periodic interest
PRICEDISC
财务 Financial 返回每张票面为 $100 的已贴现债券的现价 Returns the price per $100 face value of a discounted security
PRICEMAT
财务 Financial 返回每张票面为 $100 且在到期日支付利息的债券的现价 Returns the price per $100 face value of a security that pays interest at maturity
PV
财务 Financial 返回投资的现值 Returns the present value of an investment
RATE
财务 Financial 返回年金的各期利率 Returns the interest rate per period of an annuity
RECEIVED
财务 Financial 返回完全投资型债券在到期日收回的金额 Returns the amount received at maturity for a fully invested security
RRI 2013 财务 Financial 返回某项投资增长的等效利率 Returns an equivalent interest rate for the growth of an investment
SLN
财务 Financial 返回固定资产的每期线性折旧费 Returns the straight-line depreciation of an asset for one period
SYD
财务 Financial 返回某项固定资产按年限总和折旧法计算的每期折旧金额 Returns the sum-of-years' digits depreciation of an asset for a specified period
TBILLEQ
财务 Financial 返回国库券的等价债券收益 Returns the bond-equivalent yield for a Treasury bill
TBILLPRICE
财务 Financial 返回面值 $100 的国库券的价格 Returns the price per $100 face value for a Treasury bill
TBILLYIELD
财务 Financial 返回国库券的收益率 Returns the yield for a Treasury bill
VDB
财务 Financial 使用余额递减法返回指定或部分期间的资产折旧 Returns the depreciation of an asset for a specified or partial period by using a declining balance method
XIRR
财务 Financial 返回一组现金流的内部收益率,这些现金流不一定定期发生 Returns the internal rate of return for a schedule of cash flows that is not necessarily periodic
XNPV
财务 Financial 返回一组现金流的净现值,这些现金流不一定定期发生 Returns the net present value for a schedule of cash flows that is not necessarily periodic
YIELD
财务 Financial 返回定期支付利息的债券的收益 Returns the yield on a security that pays periodic interest
YIELDDISC
财务 Financial 返回已贴现债券的年收益;例如,短期国库券 Returns the annual yield for a discounted security; for example, a Treasury bill
YIELDMAT
财务 Financial 返回在到期日支付利息的债券的年收益 Returns the annual yield of a security that pays interest at maturity
CUBEKPIMEMBER
多维 Cube 返回关键绩效指标 (KPI) 名称、属性和度量,并显示单元格中的名称和属性。
KPI 是一项用于监视单位业绩的可量化的指标,如每月总利润或每季度雇员调整。
Returns a key performance indicator (KPI) name, property, and measure, and displays the name and property in the cell.
A KPI is a quantifiable measurement, such as monthly gross profit or quarterly employee turnover, used to monitor an organization's performance.
CUBEMEMBER
多维 Cube 返回多维数据集层次结构中的成员或元组。
用于验证多维数据集内是否存在该成员或元组。
Returns a member or tuple in a cube hierarchy.
Use to validate that the member or tuple exists in the cube.
CUBEMEMBERPROPERTY
多维 Cube 返回多维数据集内成员属性的值。
用于验证多维数据集内是否存在某个成员名并返回此成员的指定属性。
Returns the value of a member property in the cube.
Use to validate that a member name exists within the cube and to return the specified property for this member.
CUBERANKEDMEMBER
多维 Cube 返回集合中的第 n 个或前n名成员。
用于返回集合中的一个或多个元素,如业绩排在前几名的销售人员或前 10 名的学生。
Returns the nth, or ranked, member in a set.
Use to return one or more elements in a set, such as the top sales performer or top 10 students.
CUBESET
多维 Cube 通过向服务器上的多维数据集发送集合表达式来定义一组计算的成员或元组,
该多维数据集会创建集合,然后将该集合返回到 Microsoft Office Excel。
Defines a calculated set of members or tuples by sending a set expression to the cube on the server,
Which creates the set, and then returns that set to Microsoft Office Excel.
CUBESETCOUNT
多维 Cube 返回集合中的项目数。 Returns the number of items in a set.
CUBEVALUE
多维 Cube 从多维数据集中返回汇总值。 Returns an aggregated value from a cube.
BESSELI
工程 Engineering 返回修正的贝赛耳函数 In(x) Returns the modified Bessel function In(x)
BESSELJ
工程 Engineering 返回贝赛耳函数 Jn(x) Returns the Bessel function Jn(x)
BESSELK
工程 Engineering 返回修正的贝赛耳函数 Kn(x) Returns the modified Bessel function Kn(x)
BESSELY
工程 Engineering 返回贝赛耳函数 Yn(x) Returns the Bessel function Yn(x)
BIN2DEC
工程 Engineering 将二进制数转换为十进制数 Converts a binary number to decimal
BIN2HEX
工程 Engineering 将二进制数转换为十六进制数 Converts a binary number to hexadecimal
BIN2OCT
工程 Engineering 将二进制数转换为八进制数 Converts a binary number to octal
BITAND 2013 工程 Engineering 返回两个数的“按位与” Returns a 'Bitwise And' of two numbers
BITLSHIFT 2013 工程 Engineering 返回左移 shift_amount 位的计算值接收数 Returns a value number shifted left by shift_amount bits
BITOR 2013 工程 Engineering 返回两个数的“按位或” Returns a bitwise OR of 2 numbers
BITRSHIFT 2013 工程 Engineering 返回右移 shift_amount 位的计算值接收数 Returns a value number shifted right by shift_amount bits
BITXOR 2013 工程 Engineering 返回两个数的按位“异或” Returns a bitwise 'Exclusive Or' of two numbers
COMPLEX
工程 Engineering 将实系数和虚系数转换为复数 Converts real and imaginary coefficients into a complex number
CONVERT
工程 Engineering 将数字从一种度量系统转换为另一种度量系统 Converts a number from one measurement system to another
DEC2BIN
工程 Engineering 将十进制数转换为二进制数 Converts a decimal number to binary
DEC2HEX
工程 Engineering 将十进制数转换为十六进制数 Converts a decimal number to hexadecimal
DEC2OCT
工程 Engineering 将十进制数转换为八进制数 Converts a decimal number to octal
DELTA
工程 Engineering 检验两个值是否相等 Tests whether two values are equal
ERF
工程 Engineering 返回误差函数 Returns the error function
ERF.PRECISE 2010 工程 Engineering 返回误差函数 Returns the error function
ERFC
工程 Engineering 返回互补误差函数 Returns the complementary error function
ERFC.PRECISE 2010 工程 Engineering 返回从 x 到无穷大积分的互补 ERF 函数 Returns the complementary ERF function integrated between x and infinity
GESTEP
工程 Engineering 检验数字是否大于阈值 Tests whether a number is greater than a threshold value
HEX2BIN
工程 Engineering 将十六进制数转换为二进制数 Converts a hexadecimal number to binary
HEX2DEC
工程 Engineering 将十六进制数转换为十进制数 Converts a hexadecimal number to decimal
HEX2OCT
工程 Engineering 将十六进制数转换为八进制数 Converts a hexadecimal number to octal
IMABS
工程 Engineering 返回复数的绝对值(模数) Returns the absolute value (modulus) of a complex number
IMAGINARY
工程 Engineering 返回复数的虚系数 Returns the imaginary coefficient of a complex number
IMARGUMENT
工程 Engineering 返回参数 theta,即以弧度表示的角 Returns the argument theta, an angle expressed in radians
IMCONJUGATE
工程 Engineering 返回复数的共轭复数 Returns the complex conjugate of a complex number
IMCOS
工程 Engineering 返回复数的余弦 Returns the cosine of a complex number
IMCOSH 2013 工程 Engineering 返回复数的双曲余弦值 Returns the hyperbolic cosine of a complex number
IMCOT 2013 工程 Engineering 返回复数的余弦值 Returns the cotangent of a complex number
IMCSC 2013 工程 Engineering 返回复数的余割值 Returns the cosecant of a complex number
IMCSCH 2013 工程 Engineering 返回复数的双曲余割值 Returns the hyperbolic cosecant of a complex number
IMDIV
工程 Engineering 返回两个复数的商 Returns the quotient of two complex numbers
IMEXP
工程 Engineering 返回复数的指数 Returns the exponential of a complex number
IMLN
工程 Engineering 返回复数的自然对数 Returns the natural logarithm of a complex number
IMLOG10
工程 Engineering 返回复数的以 10 为底的对数 Returns the base-10 logarithm of a complex number
IMLOG2
工程 Engineering 返回复数的以 2 为底的对数 Returns the base-2 logarithm of a complex number
IMPOWER
工程 Engineering 返回复数的整数幂 Returns a complex number raised to an integer power
IMPRODUCT
工程 Engineering 返回复数的 Product Returns the product of complex numbers
IMREAL
工程 Engineering 返回复数的实系数 Returns the real coefficient of a complex number
IMSEC 2013 工程 Engineering 返回复数的正割值 Returns the secant of a complex number
IMSECH 2013 工程 Engineering 返回复数的双曲正割值 Returns the hyperbolic secant of a complex number
IMSIN
工程 Engineering 返回复数的正弦 Returns the sine of a complex number
IMSINH 2013 工程 Engineering 返回复数的双曲正弦值 Returns the hyperbolic sine of a complex number
IMSQRT
工程 Engineering 返回复数的平方根 Returns the square root of a complex number
IMSUB
工程 Engineering 返回两个复数的差 Returns the difference between two complex numbers
IMSUM
工程 Engineering 返回多个复数的和 Returns the sum of complex numbers
IMTAN 2013 工程 Engineering 返回复数的正切值 Returns the tangent of a complex number
OCT2BIN
工程 Engineering 将八进制数转换为二进制数 Converts an octal number to binary
OCT2DEC
工程 Engineering 将八进制数转换为十进制数 Converts an octal number to decimal
OCT2HEX
工程 Engineering 将八进制数转换为十六进制数 Converts an octal number to hexadecimal
CALL
加载项和自动化 调用动态链接库或代码源中的过程 Calls a procedure in a dynamic link library or code resource
EUROCONVERT
加载项和自动化 将数字转换为欧元形式,将数字由欧元形式转换为欧盟成员国货币形式,
或利用欧元作为中间货币将数字由某一欧盟成员国货币转化为另一欧盟成员国货币的形式(三角转换关系)。
Converts a number to euros, converts a number from euros to a euro member currency,
Or converts a number from one euro member currency to another by using the euro as an intermediary (triangulation).
REGISTER.ID
加载项和自动化 返回已注册过的指定动态链接库 (DLL) 或代码源的注册 ID 返回已注册过的指定动态链接库 (DLL) 或代码源的注册 ID
BETADIST
兼容性 返回 beta 累积分布函数 Returns the beta cumulative distribution function
BETAINV
兼容性 返回指定 beta 分布的累积分布函数的反函数 Returns the inverse of the cumulative distribution function for a specified beta distribution
BINOMDIST
兼容性 返回一元二项式分布的概率 Returns the individual term binomial distribution probability
CEILING
兼容性 将数字舍入为最接近的整数或最接近的指定基数的倍数 Rounds a number to the nearest integer or to the nearest multiple of significance
CHIDIST
兼容性 返回 χ2 分布的单尾概率 Returns the one-tailed probability of the chi-squared distribution
CHIINV
兼容性 返回 χ2 分布的单尾概率的反函数 Returns the inverse of the one-tailed probability of the chi-squared distribution
CHITEST
兼容性 返回独立性检验值 Returns the test for independence
CONFIDENCE
兼容性 返回总体平均值的置信区间 Returns the confidence interval for a population mean
COVAR
兼容性 返回协方差(成对偏差乘积的平均值) Returns covariance, the average of the products of paired deviations
CRITBINOM
兼容性 返回使累积二项式分布小于或等于临界值的最小值 Returns the smallest value for which the cumulative binomial distribution is less than or equal to a criterion value
EXPONDIST
兼容性 返回指数分布 Returns the exponential distribution
FDIST
兼容性 返回 F 概率分布 Returns the F probability distribution
FINV
兼容性 返回 F 概率分布的反函数 Returns the inverse of the F probability distribution
FLOOR
兼容性 将数字向下舍入 Rounds a number down, toward zero
FTEST
兼容性 返回 F 检验的结果 Returns the result of an F-test
GAMMADIST
兼容性 返回 γ 分布 Returns the gamma distribution
GAMMAINV
兼容性 返回 γ 累积分布函数的反函数 Returns the inverse of the gamma cumulative distribution
HYPGEOMDIST
兼容性 返回超几何分布 Returns the hypergeometric distribution
LOGINV
兼容性 返回对数累积分布的反函数 Returns the inverse of the lognormal cumulative distribution
LOGNORMDIST
兼容性 返回对数累积分布函数 Returns the cumulative lognormal distribution
MODE
兼容性 返回在数据集内出现次数最多的值 Returns the most common value in a data set
NEGBINOMDIST
兼容性 返回负二项式分布 Returns the negative binomial distribution
NORM.INV 2010 兼容性 返回正态累积分布的反函数 Returns the inverse of the normal cumulative distribution
NORMDIST
兼容性 返回正态累积分布 Returns the normal cumulative distribution
NORMSDIST
兼容性 返回标准正态累积分布 Returns the standard normal cumulative distribution
NORMSINV
兼容性 返回标准正态累积分布函数的反函数 Returns the inverse of the standard normal cumulative distribution
PERCENTILE
兼容性 返回区域中数值的第 k 个百分点的值 Returns the k-th percentile of values in a range
PERCENTRANK
兼容性 返回数据集中值的百分比排位 Returns the percentage rank of a value in a data set
POISSON
兼容性 返回泊松分布 Returns the Poisson distribution
QUARTILE
兼容性 返回一组数据的四分位点 Returns the quartile of a data set
RANK
兼容性 返回一列数字的数字排位 Returns the rank of a number in a list of numbers
STDEV
兼容性 基于样本估算标准偏差 Estimates standard deviation based on a sample
STDEVP
兼容性 基于整个样本总体计算标准偏差 Calculates standard deviation based on the entire population
TDIST
兼容性 返回学生 t-分布 Returns the Student's t-distribution
TINV
兼容性 返回学生 t-分布的反函数 Returns the inverse of the Student's t-distribution
TTEST
兼容性 返回与学生 t-检验相关的概率 Returns the probability associated with a Student's t-test
VAR
兼容性 基于样本估算方差 Estimates variance based on a sample
VARP
兼容性 计算基于样本总体的方差 Calculates variance based on the entire population
WEIBULL
兼容性 基于样本总体(包括数字、文本和逻辑值)计算标准偏差 Calculates variance based on the entire population, including numbers, text, and logical values
ZTEST
兼容性 返回 z 检验的单尾概率值 Returns the one-tailed probability-value of a z-test
DAVERAGE
Database 返回所选数据库条目的平均值 Returns the average of selected database entries
DCOUNT
Database 计算数据库中包含数字的单元格的数量 Counts the cells that contain numbers in a database
DCOUNTA
Database 计算数据库中非空单元格的数量 Counts nonblank cells in a database
DGET
Database 从数据库提取符合指定条件的单个记录 Extracts from a database a single record that matches the specified criteria
DMAX
Database 返回所选数据库条目的最大值 Returns the maximum value from selected database entries
DMIN
Database 返回所选数据库条目的最小值 Returns the minimum value from selected database entries
DPRODUCT
Database 将数据库中符合条件的记录的特定字段中的值相乘 Multiplies the values in a particular field of records that match the criteria in a database
DSTDEV
Database 基于所选数据库条目的样本估算标准偏差 Estimates the standard deviation based on a sample of selected database entries
DSTDEVP
Database 基于所选数据库条目的样本总体计算标准偏差 Calculates the standard deviation based on the entire population of selected database entries
DSUM
Database 对数据库中符合条件的记录的字段列中的数字求和 Adds the numbers in the field column of records in the database that match the criteria
DVAR
Database 基于所选数据库条目的样本估算方差 Estimates variance based on a sample from selected database entries
DVARP
Database 基于所选数据库条目的样本总体计算方差 Calculates variance based on the entire population of selected database entries
ENCODEURL 2013 Web 返回 URL 编码的字符串。
此函数在 Excel 网页版 中不可用。
Returns a URL-encoded string
This function is not available in Excel for the web.
FILTERXML 2013 Web 使用指定的 XPath,返回 XML 内容中的特定数据。
此函数在 Excel 网页版 中不可用。
Returns specific data from the XML content by using the specified XPath
This function is not available in Excel for the web.
WEBSERVICE 2013 Web 返回 Web 服务中的数据。
此函数在 Excel 网页版 中不可用。
Returns data from a web service.
This function is not available in Excel for the web.

2.4 ROUND函数

可用于舍去小数的相关函数如下... 
函数名称 基数 2.3 -2.3 6.7 -6.7 数字变化 说明
ROUND
2 -2 7 -7 四舍五入
ROUNDUP
3 -3 7 -7 远离0 向上取整
ROUNDDOWN
2 -2 6 -6 靠近0 向下取整
TRUNC
2 -2 6 -6 靠近0 截尾取整
EVEN
4 -4 8 -8 远离0 将数字向上舍入到最接近的偶数
ODD
3 -3 7 -7 远离0 将数字向上舍入为最接近的奇数
MROUND 1 2 -2 7 -7 靠近基数 返回一个舍入到所需倍数的数字
INT
2 -3 6 -7 变小取整 将数字向下舍入到最接近的整数
FLOOR
2 -3 6 -7 变小取倍数 将数字向下舍入
FLOOR.MATH 2 2 -4 6 -8 变小取倍数 将数字向下舍入为最接近的整数或最接近的指定基数的倍数
FLOOR.PRECISE 2.2 2.2 -4.4 6.6 -8.8 变小取倍数 将数字舍入为最接近的整数或最接近的指定基数的倍数。
ISO.CEILING 2 4 -2 8 -6 变大取倍数 返回一个数字,该数字向上舍入为最接近的整数或最接近的有效位的倍数
CEILING
3 -2 7 -6 变大取倍数 将数字舍入为最接近的整数或最接近的指定基数的倍数
CEILING.MATH 2 4 -2 8 -6 变大取倍数 将数字向上舍入为最接近的整数或最接近的指定基数的倍数
CEILING.PRECISE 1.8 3.6 -1.8 7.2 -5.4 变大取倍数 将数字舍入为最接近的整数或最接近的指定基数的倍数。

3. Spreadsheet

3.1 免费电子表格软件

Spreadsheet 免费 开源 在线 备注
LibreOffice Y Y
OpenOffice Y Y
Collabora Y Y Y 需网络
Google Y
Y 需网络
WPS电子表格 Y

含广告

3.2 Excel局限性和错误

  • 数值精度
  • 统计函数
  • Excel MOD函数错误
  • 1900年虚构的闰日
  • 日期范围
  • 转换问题
  • 大字符串的错误
  • 文件名

2025-09-30

List-To-Table

1. List
2. List.txt-List.xlsx
	2.1 添加软件ID[Sid]
	2.2 构造2维表格结构(包含第一列和第一行的字段的空表)
	2.3 获取具体信息(填充表格信息)
3. XLOOKUP
	3.1 语法及返回
	3.2 参数
	3.3 测试异常

 

List-To-Table
一维清单 转 二维表格
终端下的一些命令返回的数据不太友好,本身又不带格式化参数。 非常不方便查看,比对。下文使用表格软件解决其中一种情况。
  • 一维清单 List.txt: 1708行, 2列。Get-AppxPackage输出导入表格的原始数据。
  • 二维表格 Table.xlsx: 99行, 19列。转换后获得的最终数据。
注: 当前使用开源的 LibreOffice Calc 表格软件。

1. List

获取一份又臭又长的的一维列表... 
 > Get-AppxPackage > List.txt

统计所有信息行数,获得完整的List有1708行。
 > Get-AppxPackage  | find /c " :"

统计Name字段行数,List包含99个软件信息。
 > Get-AppxPackage  | find /c "Name              :"

共99个软件的信息列表,每个软件有17~18个信息字段,共计1708行(已经排除了至少99个空行数)。
这样又臭又长的一维列表,看起来非常不方便。
若转换成二维表格,可以方便的排序,筛选。对比查看就会方便许多。

二维表格的结构,一行一个软件,包含19个列: 软件属性字段信息。
  • 第1列: Sid, 软件ID(如上统计,共99行)
  • 第1行: 软件属性字段信息(共19个列字段)
转换过程
  1. 构造2维表格结构 (包含第一列和第一行的字段的空表)
  2. 获取具体信息 (填充表格信息)

2. List.txt-List.xlsx

将以上获得的文本放到电子表格里。
结果只有2列: 分别命名为属性名称[Item], 属性信息[info]
手动添加自然顺序序号[sn] (1~1708),作用是确保后续作业不失序。
去掉空行,总共1708行。
当前List为3列:
  • A列: [sn] 自然顺序的行号 (1~1708)
  • B列: [Item] 属性名字段。
  • C列: [Info] 属性对应的具体信息字段。

2.1 添加软件ID[Sid]

要转换为二维表格,需要将每个软件的17/18行增加一个相同的SID号,表示这17/18行表示的是同一个软件。
不同的SID号表示不同的软件。
这个过程有更好的办法的,还请不吝赐教。
  1. 给软件编号
    1. 新增一列[Sid-1] (l临时列)
    2. 通过[Item]属性名字段排序,向下找到[NAME],一共99行。
    3. 给这99行添加1~99的软件ID号。限定[NAME]的99行,别的行留空。
    4. 然后再通过前面添加的[sn]行号排序。回到初始排序状态。
  2. 这时候每个软件的第一个属性[Name]包含对应的软件ID号,其他属性字段[Sid-1]为空。
  3. 给软件的其他属性同步软件ID
    1. 再新增一列[Sid-2] (l临时列)
    2. 当前B列为[Sid-1], C列为[Sid-2]。B2就是第一个软件的ID号。
    3. [Sid2]的C2单元格添加公式 {=IF(B2,B2,C1)} 
    4. [Sid2]的C2公式拖动到低,完成软件ID编号。
  4. 最后将填满软件id的[Sid-2]列复制为 无格式文本,列名为[Sid]。前面的[Sid-1]和[Sid-2]可以删除了。
补充:若是MS Office,上面的步骤(3.1~3.4)可以改成: 选择区域[Sid-1]→(Ctrl+G)打开定位对话框→定位到空值→依次按下等于号,向上的箭头→按下(Ctrl+Enter)即可完成填充。
当然,若有更好的办法还请不吝赐教。

当前List为5列:
  • A列: [sn] 自然顺序的行号 (1~1708)
  • B列: [Sid] 软件id号 (1~99)
  • C列: [Item] 属性名字段。
  • D列: [SidItem] 内容是前面2个字段的组合([Sid]+[Item])。可有可无的辅助列,后续其中一种Vlookup的方法需要这一列。
  • E列: [Info] 属性对应的具体信息字段。
补充:{=ISODD(B2)}可以添加一列判断奇数/偶数, 排序后,将奇数或偶数统一上色,再sn回到初始顺序,方便查看。

2.2 构造2维表格结构(包含第一列和第一行的字段的空表)

  • 第1列: [Sid], 软件id号(如上统计,共99行)
  • 第1行: 具体的[Item]软件属性字段(共19个列字段)

方法1,数据透视表。(简单)
菜单栏\数据\数据透视表
  • 行字段: B列: [Sid] 软件id号 (1~99)
  • 列字段: C列: [Item] 属性名字段。
  • 数据字段: E列: [Info] 属性对应的具体信息字段。
注:若来源列表的E列[Info]是纯数字,二维转换已经完成。
这里的[Info]是字符串和布尔值,所以我们只取建立好的表格结构,
以上行列,重新复制为纯文本作为行标题和列标题。

方法2,UNIQUE函数。(容易)
  • 行: =UNIQUE($list99.B:B)
  • 列: =TRANSPOSE(UNIQUE($list99.C:C))

2.3 获取具体信息(填充表格信息)

在B2单元格输入下方之一的公式,向右,向下拖动公式即可。

方法1,传统的VLOOKUP,需要用到D列[temp](辅助列)
  •  =IFERROR(VLOOKUP($A2&B$1,$list99.$D:$E,2,0),"")
方法2,使用XLOOKUP。填充内容的2种写法:
  •  =XLOOKUP($A2&B$1,$list.$B:$B&$list.$C:$C,$list.$E:$E)
  •  =XLOOKUP(1,($list.$B:$B=$A2)*($list.$C:$C=B$1), $list.$E:$E)
补充方法3,TRANSPOSE + FILTER
 =TRANSPOSE(FILTER($C$2:$C$10,$A$2:$A$10=E2))
在F2单元格输入公式,并下拉公式。公式会自动往右填充。
注:需要第二列次级字段数量一致,顺序一致... 上面的例子就不适合了,软件包含17~18行信息.
  • FILTER:根据条件筛选数组或单元格区域。
  • TRANSPOSE:将数组或单元格区域的行和列互换。

3. XLOOKUP

LibreOffice的XLOOKUP帮助页面
在数组中搜索一个值并返回对单元格或单元格范围的引用。
XLOOKUP 函数是VLOOKUP、HLOOKUP和LOOKUP等旧函数的现代且灵活的替代品。
XLOOKUP 支持近似匹配和精确匹配、通配符 (* ?) 或正则表达式进行部分匹配,以及垂直或水平范围的查找。
XLOOKUP 可以执行反向搜索,并在处理大型数据集时提供快速的二进制搜索选项。

3.1 语法及返回

XLOOKUP([Lookup] ; Array; Return [ ; [NotFound] [ ; [MatchType] [ ; SearchMode ] ])
XLOOKUP([查寻条件] ;搜索数组;返回数组[ ; [未找到] [ ; [匹配类型] [ ;搜索模式] ] ])

返回:
如果在Array中找到值Lookup的匹配项,则 XLOOKUP 返回对Return中单元格的引用,该单元格具有与Array中匹配项相同的相对位置。
如果没有找到匹配项,则返回值取决于NotFound参数。

3.2 参数

Lookup: (可选)要在Array中搜索的任意类型的值。如果省略,XLOOKUP 将返回在Array中找到的空白单元格。

搜索数组:要搜索的数组的引用。数组必须是一维数组,数组可以表示为:
  • 使用范围运算符直接引用:C2:C8或B4:K4
  • 带有常量的内联数组:{"Apple"; "Peach"; "Orange"; "Banana"}
  • 带有标签的数据库范围的列:myData[Person]带有数据库范围 myData和数据库字段 Person
  • 一维单元格数组的命名表达式或标签表达式,其结果为一维数组或对一维单元格数组的引用。
注:数组和返回的元素总数必须相同。

返回数组:是要返回的数组或范围的引用。同样是一维数组。返回值可以表示为:
  • 使用范围运算符的直接引用
  • 带有标签的数据库范围的列
  • 一维单元格数组的命名表达式或标签
  • 表达式,其结果是对一维单元格数组的引用。
注:如果结果数组是单元格范围,则必须将 XLOOKUP 函数作为数组公式输入。

未找到: (可选)可以是任意表达式。如果未找到与Lookup值匹配的项,则计算该表达式的值并返回结果。 如果未找到有效匹配项且省略了NotFound,则函数返回#N/A错误。

匹配模式:(可选)指定匹配类型。值可以是:
  • 0:完全匹配(默认)。如果未找到搜索条件值,且省略了“未找到结果”文本,则返回 #N/A 错误。
  • -1:尝试精确匹配。如果未找到搜索条件值,则返回下一个较小的项。
  • 1:尝试精确匹配。如果未找到搜索条件值,则返回下一个较大的项目。
  • 2:通配符匹配,其中字符 *(多个字符)、?(单个字符)和 ~ 具有特殊含义。
  • 3:正则表达式匹配。
注:MatchType值2和3不得与二分搜索(SearchMode值2和-2)一起使用。

搜索模式:(可选)指定要使用的搜索模式。
  • 1 :返回从搜索数组的第一项开始的第一次出现(默认)。
  • -1 :反向搜索。返回从搜索数组的最后一项开始的第一个匹配项。
  • 2:二分查找,要求搜索数组按升序排列。如果未排序,则返回无效结果。
  • -2:二分查找,要求搜索数组按降序排列。如果未排序,则返回无效结果。
注:任何可选参数都可以省略。可选参数要求所有前面的分隔符都存在。

其他详细信息:
近似匹配和二分搜索所请求的排序使用“字母数字”排序规则。

默认情况下,查找不区分大小写,覆盖工具 ▸选项 ▸计算 ▸计算 ▸ (常规计算) 区分大小写。
您可以在正则表达式中使用模式修饰符来指定区分大小写的搜索。

3.3 测试异常

参照以上帮助页面下方的示例,完全相同的数据及公式,本机测试并没有返回数组... 
=XLOOKUP(A3,A2:A4,A2:G4)
AtomicSN
例子里返回了A3这一行数组,这里只返回A3的内容... 

=XLOOKUP(C1,B1:G1,B1:G4,"nnn")
#VALUE!
例子里返回了C1这一列数组,这里返回#VALUE!,类型异常。

补充参考链接: 
VLOOKUP 功成身退!全新函數 XLOOKUP 霸氣取而代之!| Excel 教學 #34

2025-09-20

Windows-Appx

1. PS_modules
2. Appx
3. Get-AppxPackage
3.1  Syntax 语法
3.2 Description 描述
3.3  Examples
3.4  Parameters 参数
4. Remove-AppxPackage
4.1  Syntax
4.2 Description
4.3  Parameters
5. Reset-AppxPackage
5.1  Syntax
5.2 Description
5.3  Parameters
6. 软件包信息字段
6.1 字段table
6.2 筛选字段
6.3 包的3个名称字段
6.4 包的2个 Publisher 发行字段: 
6.5 NonRemovable不可移除
7. Examples
7.1 卸载
7.2 列出所有名字
7.3 列出所有依赖项
7.4 定位或限制包范围时, -Name 可以省略
7.5 利用find帮忙统计行数
7.6  > find /?
7.7  > findstr /?

1. PS_modules

PowerShell modules
Module name 网页版标题
ActiveDirectory Active Directory 域服务管理
ADCSAdministration Active Directory 证书服务管理
ADCSDeployment Active Directory 证书服务部署
ADDSDeployment Active Directory 域服务部署
ADFS Active Directory 联合身份验证服务
ADRMSAdmin Active Directory 权限管理服务管理
ADRMS Active Directory 权限管理服务部署
AppBackgroundTask 应用后台任务
AppLocker 应用储物柜
AppvClient App-V 客户端
AppvSequencer App-V 序列器
Appx Appx
AssignedAccess 分配访问权限
BestPractices 最佳实践分析器
BitLocker BitLocker
BitsTransfer 后台智能传输服务
BootEventCollector 启动事件收集器
BranchCache 分支缓存
ClusterAwareUpdating 群集感知更新
ConfigCI 代码完整性
DcbQos 数据中心桥接服务质量
Deduplication 重复数据删除
Defender Windows 防守者
DeviceHealthAttestion 设备健康证明
Dfsn 分布式文件系统 (DFS) 命名空间
Dfsr DFS 复制
DHCPServer DHCP 服务器
DirectAccessClientComponent 直接访问客户端
DISM DISM
DNSClient DNS 客户端
DNSServer DNS 服务器
EventTracingManagement 事件跟踪管理
FailoverClusters 故障转移群集
FileServerResourceManager 文件服务器资源管理器
GroupPolicy 组策略
HardwareCertification 硬件认证
HgsAttestation 主机守护服务证明
HgsClient 主机守护服务客户端
HgsDiagnostics 主机守护服务诊断
HgsKeyProtection 主机守护服务密钥保护
HgsServer 主机守护服务服务器
HostComputeService 容器
HNVDiagnostics HNV 诊断
Hyper-V Hyper-V
IISAdministration IIS 管理
International 国际化
IpamServer IP 地址管理服务器
Iscsi iSCSI
IscsiTarget iSCSI 目标
KDS 密钥分发服务器
MMAgent 内存管理代理
Mpio MPIO
MSDTC 分布式事务协调器
Msmq MSMQ
Multipoint 多点服务
MultiPointVdi 多点 VDI
NanoServerImageGenerator Nano 服务器映像生成器
NetLldpAgent NetLldpAgent
NetAdapter 网络适配器
NetConnection 网络连接
NetEventPacketCapture 网络事件数据包捕获
NetLbfo NIC Teaming
NetNat 网络地址转换
NetQoS 服务质量
NetSecurity 网络安全
NetTCPIP TCP/IP
NetWNV 网络虚拟化
NetworkConnectivityStatus 网络连接状态
NetworkController 网络控制器
NetworkControllerDiagnostics 网络控制器诊断
NetworkLoadBalancingClusters 网络负载平衡群集
NetworkSwitchManager 网络交换机管理器
NetSwitchTeam 网络交换机组
NetworkTransition 网络转换
NFS 网络文件系统
NPS 网络策略服务器
PCSVDevice 物理计算机系统视图设备
PKI 公钥基础设施
PlatformIdentifier 平台标识符
PnpDevice 即插即用
PrintManagement 打印管理
ProcessMitigations 进程缓解
RemoteAccess 远程访问
RemoteDesktop 远程桌面
RemoteDesktopServices 远程桌面服务
ScheduledTasks 计划任务
SecureBoot 安全启动
ServerCore 服务器核心
ServerManager 服务器管理器
ServerManagerTasks 服务器管理器任务
ShieldedVMDataFile 屏蔽虚拟机数据文件
ShieldedVMProvisioning 屏蔽虚拟机器配置
ShieldedVMTemplate 屏蔽虚拟机模板
SmbShare SmbShare 共享
SmbWitness SMB 见证
SMISConfig SMIS 配置
SoftwareInventoryLogging 软件清单日志记录
StartLayout 开始布局
Storage 存储
StorageQoS 存储 QoS
StorageReplica 存储副本
SyncShare 同步共享
TCPIP TCPIP
TLS TLS
TroubleshootingPack 故障排除包
TrustedPlatformModule 可信平台模块
UpdateServices Windows Server 更新服务
UserAccessLogging 用户访问日志记录
UEV 用户体验虚拟化
VAMT 批量激活管理工具
VpnClient VPN 客户端
WDAC Windows 数据访问组件
WebAdministration Web 管理
WebApplicationProxy Web 应用程序代理
WDS Windows 部署服务
WHEA Windows 硬件错误架构
WindowsDevLic Windows 开发人员许可证
WindowsErrorReporting Windows 错误报告
WindowsSearch Windows 搜索
WindowsServerBackup Windows Server 备份
WindowsUpdate Windows 更新
下文只整理了Appx modules的部分命令,备查。

2. Appx

Cmdlet 描述
Add-AppSharedPackageContainer 部署共享包容器定义。
Add-AppxPackage 将已签名的应用包添加到用户帐户。
Add-AppxVolume 将 appx 卷添加到包管理器。
Dismount-AppxVolume 卸载 appx 卷。
Get-AppSharedPackageContainer 获取有关共享包容器的信息。
Get-AppxDefaultVolume 获取默认的 appx 卷。
Get-AppxLastError 获取应用包安装日志中报告的最后一个错误。
Get-AppxLog 获取应用包安装日志。
Get-AppxPackage 获取用户配置文件中安装的应用包列表。
Get-AppxPackageAutoUpdateSettings 提供对特定 Windows 应用配置设置的可见性。
Get-AppxPackageManifest 获取应用包的清单。
Get-AppxVolume 获取计算机的 appx 卷。
Invoke-CommandInDesktopPackage 在打包应用的上下文中创建新进程的调试工具。
Mount-AppxVolume 挂载 appx 卷。
Move-AppxPackage 将包从当前位置移动到另一个 appx 卷。
Remove-AppSharedPackageContainer 删除共享包容器。
Remove-AppxPackage 从一个或多个用户帐户中删除应用包。
Remove-AppxPackageAutoUpdateSettings 删除特定 Windows 应用配置的设置。
Remove-AppxVolume 删除 appx 卷。
Reset-AppSharedPackageContainer 销毁容器的所有应用程序数据。
Reset-AppxPackage 将 Windows 应用恢复到其初始配置。
Set-AppxDefaultVolume 指定默认的 appx 卷。
Set-AppxPackageAutoUpdateSettings 配置特定 Windows 应用的自动更新和修复设置。
下文只整理了查询,删除,重置命令。
  • Get-AppxPackage
  • Remove-AppxPackage
  • Reset-AppxPackage
 CommonParameters
这几个命令都支持以下通用参数: 
 -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. 

3. Get-AppxPackage

获取用户配置文件中安装的应用包列表。

3.1 Syntax 语法

 Default (Default)
SyntaxCopyGet-AppxPackage
    [-AllUsers]
    [-PackageTypeFilter <PackageTypes>]
    [[-Name] <String>]
    [[-Publisher] <String>]
    [-User <String>]
    [-Volume <AppxVolume>]
    [<CommonParameters>]

3.2 Description 描述

Get-AppxPackage cmdlet 用于获取用户配置文件中安装的应用包列表。
应用包的文件扩展名为 .msix 或 .appx。 
要获取当前用户配置文件以外的其他用户配置文件的包列表,须管理员权限。

3.3 Examples

示例 1:获取每个用户帐户的所有应用包
 cmd> Get-AppxPackage -AllUsers
此命令列出计算机上每个用户帐户安装的应用包。

示例 2:获取特定用户的应用包
 cmd> Get-AppxPackage -Name "Package17" -User "Contoso\EvanNarvaez"
如果 Package17 安装在指定的用户配置文件中, 此命令将显示有关该 Package17 的信息。

示例 3:获取特定应用包的信息
 cmd> Get-AppxPackage -Name Microsoft.ScreenSketch
此命令显示有关 ScreenSketch 应用的信息。

示例 4:获取特定发布者的所有应用包
 cmd> Get-AppxPackage -Publisher "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
此命令列出计算机上安装的所有 Microsoft 应用包。

示例 5:获取所有带有 PackageTypeFilter 的应用包
 cmd> Get-AppxPackage -PackageTypeFilter Bundle,Framework,Main,Resource
此命令列出计算机上安装的所有带有 PackageTypeFilter 的应用包。

3.4 Parameters 参数

 -AllUsers
表示此 cmdlet 列出计算机上所有用户帐户的应用包。 要使用此参数,您必须以管理员权限运行该命令。
  • Type: SwitchParameter
  • Position 位置:Named
  • Value from pipeline: TRUE
  • Value from pipeline by property name: TRUE
  • Value from remaining arguments: FALSE

 -Name
指定特定包的名称。 如果指定此参数,cmdlet 将仅返回此包的结果。 允许使用通配符。
  • Type: String
  • Position 位置:1
  • 来自管道的值: TRUE
  • 来自管道(按属性名称)的值: FALSE
  • 来自其余参数的值: FALSE

 -PackageTypeFilter
指定 cmdlet 从包存储库获取的一个或多个以逗号分隔的包类型。 默认情况下,此 cmdlet 仅返回 Main 和 Framework 类型的软件包。
  • Type: PackageTypes
  • Accepted values 接受的值:
    • None, Main, Framework, Resource, Bundle, Xap, Optional
  • Position 位置:Named
  • Value from pipeline: TRUE
  • Value from pipeline by property name: TRUE
  • Value from remaining arguments: FALSE

 -Publisher
指定特定软件包的发布者。 如果指定此参数,则 cmdlet 仅返回此发布者的结果。 允许使用通配符。
  • Type: String
  • Position 位置:2
  • Value from pipeline: TRUE
  • Value from pipeline by property name: FALSE
  • Value from remaining arguments: FALSE

 -User
指定用户。 如果指定此参数,则 cmdlet 将返回仅为此 cmdlet 指定的用户安装的应用软件包列表。 要获取当前用户配置文件以外的其他用户配置文件的软件包列表,您必须以管理员权限运行此命令。 用户名可以采用以下格式之一:
  1. domain\user_name
  2. user_name@fqn.domain.tld
  3. user_name
  4. SID-string
  • Type: String
  • Position 位置:Named
  • Value from pipeline: TRUE
  • Value from pipeline by property name: FALSE
  • Value from remaining arguments: FALSE

 -Volume
指定 AppxVolume 对象。 如果指定此参数,则此 cmdlet 仅返回与此参数指定的卷相关的软件包。
  • Type: AppxVolume
  • Position 位置:Named
  • Value from pipeline: TRUE
  • Value from pipeline by property name: TRUE
  • Value from remaining arguments: FALSE

4. Remove-AppxPackage

Removes an app package from one or more user accounts.

4.1 Syntax

 RemoveByPackageSet (Default)
SyntaxCopyRemove-AppxPackage
    [-Package] <String>
    [-PreserveApplicationData]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
 
紧接着 [-Package] <String> 之后的参数四选一:
  • [-PreserveApplicationData]
  • [-PreserveRoamableApplicationData]
  • [-AllUsers]
  •  -User <String>
具体区别,请看下面参数说明。

4.2 Description

Remove-AppxPackage cmdlet 用于从用户帐户中删除应用包。 应用包的文件扩展名为 .msix 或 .appx。
示例:删除应用包
 cmd> Remove-AppxPackage -Package 'package1_1.0.0.0_neutral__8wekyb3d8bbwe'
此命令用于从当前用户帐户中删除名为 …

4.3 Parameters

 -AllUsers
此参数用于从计算机上所有用户帐户中删除应用包。 该参数根据父包类型进行操作。 如果是软件包,请将 PackageTypeFilter 与 Get-AppxPackage 命令结合使用,并指定软件包。 要使用此参数,您必须以管理员权限运行该命令。
  • Type: SwitchParameter
  • Position 位置:Named
  • Value from pipeline: False 
  • Value from pipeline by property name: False
  • Value from remaining arguments: False

 -Confirm
在运行 cmdlet 之前提示您确认。
  • Type: SwitchParameter
  • Aliases: cf
  • Position 位置:Named
  • Value from pipeline: False 
  • Value from pipeline by property name: False
  • Value from remaining arguments: False

 -Package
指定 AppxPackage 对象或软件包的全名。
  • Type: String
  • Position: 0
  • Mandatory 必填项:True
  • Value from pipeline: True 
  • Value from pipeline by property name: False
  • Value from remaining arguments: False

 -PreserveApplicationData
指定 cmdlet 在删除软件包时保留应用程序数据。 
应用程序数据可供以后使用。 
请注意,这仅适用于正在开发中的应用, 因此此选项只能为从文件布局注册的应用(松散文件注册)指定。
  • Type: SwitchParameter
  • RemoveByPackageSet
  • Position: Named
  • Value from pipeline: False 
  • Value from pipeline by property name: False
  • Value from remaining arguments: False

 -PreserveRoamableApplicationData
删除软件包时保留应用数据的可漫游部分。
此参数与 PreserveApplicationData 不兼容。
  • Type: SwitchParameter
RemoveByPackageForRoamingSet
  • Position: Named
  • Value from pipeline: False 
  • Value from pipeline by property name: False
  • Value from remaining arguments: False

 -User
如果指定此参数,则该 cmdlet 将仅为其指定的用户删除应用包。 要删除当前用户配置文件以外的其他用户配置文件的包,必须以管理员权限运行此命令。
Note:此参数仅接受用户 SID。 使用 whoami /user 命令显示用户的当前 SID。
  • Type: String
UserSet
  • Position: Named
  • Mandatory 必填项:True
  • Value from pipeline: False 
  • Value from pipeline by property name: False
  • Value from remaining arguments: False

 -WhatIf
显示如果 cmdlet 运行将发生的情况。该 cmdlet 未运行。
  • Type: SwitchParameter
  • Aliases: wi
  • Position: Named
  • Value from pipeline: False 
  • Value from pipeline by property name: False
  • Value from remaining arguments: False

5. Reset-AppxPackage

将 Windows 应用恢复到其初始配置。

5.1 Syntax

 Default (Default)
SyntaxCopyReset-AppxPackage
    [-Package] <string>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

5.2 Description

Reset-AppxPackage cmdlet 将应用重置为原始设置,应用将像全新安装的应用一样运行。
重置应用后,应用的任何初始提示都将提示用户输入。
 Examples:重置应用包
 cmd> Reset-AppxPackage -Package publisher.package1_1.0.0.0_neutral__8wekyb3d8bbwe
此 cmdlet 将 package 重置为原始设置

5.3 Parameters

 -Confirm
在运行此 cmdlet 之前提示您进行确认。
  • Type: SwitchParameter
  • Aliases: cf
  • Position: Named
  • Value from pipeline: False
  • Value from pipeline by property name: False
  • Value from remaining arguments: False

 -Package
指定要重置的应用的软件包全名 (PFuN)。
  • Type: String
  • Position: 0
  • Mandatory: True
  • Value from pipeline: True
  • Value from pipeline by property name: True
  • Value from remaining arguments: False

 -WhatIf
显示如果 cmdlet 运行将发生的情况。该 cmdlet 未运行。
  • Type: SwitchParameter
  • Aliases: wi
  • Value from pipeline: False
  • Value from pipeline by property name: False
  • Value from remaining arguments: False

6. 软件包信息字段

6.1 字段table

使用 Get-AppxPackage 命令获得的软件包信息包含如下18个字段。
部分是冗余信息字段。部分包有或无字段:Dependencies
表中的 [字段值] 是当前本机的统计信息,共89个包。 
一些字段全部都是一个值,Flase,OK等。
另外一些括号里的数字就是对应值的统计数字。
字段名 包含/或相关字段 字段值 中文
Name Name
名称
Publisher Publisher CN=Microsoft Corporation(46)
CN=Microsoft Windows(43)
发布者
Architecture
X64(54)/Neutral(35) 架构
ResourceId
空白(65)/Neutral(24) 资源 ID
Version 版本
版本
PackageFullName _版本_架构_资源ID_发布ID
软件包完整名称
InstallLocation

安装位置
IsFramework
FALSE(79)/TRUE(10) 是否为 框架
PackageFamilyName Name_PublisherId
软件包系列名称
PublisherId Publisher 8wekyb3d8bbwe(46)
/cw5n1h2txyewy(43)
发布者 ID
IsResourcePackage
FALSE 是否为 资源包
IsBundle
FALSE 是否为 Bundle
IsDevelopmentMode
FALSE 是否为 开发模式
NonRemovable
FALSE(38)/TRUE(51) 是否 不可移除
Dependencies _版本_架构_资源ID_语言_发布ID
依赖项
IsPartiallyStaged
FALSE 是否为 部分暂存
SignatureKind
System(49)/
Store(37)/Developer(3)
签名类型
Status
Ok 状态

6.2 筛选字段

这18个字段,只有 Name,Publisher 这2个字段可以作为 Get-AppxPackage 的参数筛选定位软件包。
其他字段只能使用 find,findstr 等命令间接实现筛选。

6.3 包的3个名称字段

  • Name,包名
  • PackageFamilyName,包名+家族名(PublisherId)
  • PackageFullName,包名+版本(Version)+家族名(PublisherId)
    • PublisherId 家族名: 有2个,分别是: 8wekyb3d8bbwe, cw5n1h2txyewy.
    • 版本号也有独立字段(Version)。

6.4 包的2个 Publisher 发行字段:

Publisher   (PublisherId)
  • CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US   (8wekyb3d8bbwe)
  • CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US   (cw5n1h2txyewy)

6.5 NonRemovable不可移除

  • SignatureKind 签名类型 为 System 的,  全部都是 (NonRemovable = True),  且全部安装在C:\Windows下,绝大部分都在SystemApps子目录下。
  • SignatureKind 签名类型 为 Store 的,  绝大部分都是 (NonRemovable = False),  且全部安装在C:\Program Files\WindowsApps目录下。
查看本机,只有如下2个是 (NonRemovable = True): 
  • Microsoft.SecHealthUI
  • Microsoft.DesktopAppInstaller

7. Examples

  •  > Get-AppxPackage -?
  •  > Remove-AppxPackage -?
  •  > Reset-AppxPackage -?
可以获得几乎没用的帮助... 

7.1 卸载

Get-AppxPackage Microsoft.YourPhone -AllUsers | Remove-AppxPackage

7.2 列出所有名字

 > Get-AppxPackage | find "Name              :"

7.3 列出所有依赖项

 > Get-AppxPackage |findstr Dependencies
注: 只显示一行,视终端宽度。 若是双屏幕,将终端界面拉长到2个显示器,则基本能全部显示了。

7.4 定位或限制包范围时, -Name 可以省略

 > Get-AppxPackage  RealtekSemiconductorCorp*
 > Get-AppxPackage  -Name RealtekSemiconductorCorp*

7.5 利用find帮忙统计行数

  •  > netstat -na | find /C  /I  "TCP "
  •  > netstat -na | find /C  /I  "UDP "
  •  > netstat -na | find /C  /I  /V "TCP "
  •  > netstat -na | find /C  /I  /V "UDP "
  •  > netstat -na | find /C  /I  " "
  •  > netstat -na | find /C  /I /V "string not exists"
注:  使用/V (显示所有未包含)统计的结果要减去4行(开头的4行)。
[1]
[2]活动连接 
[3] 
[4]  协议  本地地址          外部地址        状态

7.6 > find /?

在文件中搜索字符串。
FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]
  /V         显示所有未包含指定字符串的行。
  /C         仅显示包含字符串的行数。
  /N         显示行号。
  /I         搜索字符串时忽略大小写。
  /OFF[LINE] 不要跳过具有脱机属性集的文件。
     "string"   指定要搜索的文本字符串。
     [drive:][path]filename   指定要搜索的文件。
如果没有指定路径,FIND 将搜索在提示符处键入的文本或者由另一命令产生的文本。

7.7 > findstr /?

在文件中寻找字符串。
FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P] [/F:file]  [/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]]   strings [[drive:][path]filename[ …]]
  /B         在一行的开始配对模式。
  /E         在一行的结尾配对模式。
  /L         按字使用搜索字符串。
  /R         将搜索字符串作为一般表达式使用。
  /S         在当前目录和所有子目录中搜索匹配文件。
  /I         指定搜索不分大小写。
  /X         打印完全匹配的行。
  /V         只打印不包含匹配的行。
  /N         在匹配的每行前打印行数。
  /M         如果文件含有匹配项,只打印其文件名。
  /O         在每个匹配行前打印字符偏移量。
  /P         忽略有不可打印字符的文件。
  /OFF[LINE] 不跳过带有脱机属性集的文件。
  /A:attr    指定有十六进位数字的颜色属性。请见 "color /?"
  /F:file    从指定文件读文件列表 (/ 代表控制台)。
  /C:string  使用指定字符串作为文字搜索字符串。
  /G:file    从指定的文件获得搜索字符串。 (/ 代表控制台)。
  /D:dir     查找以分号为分隔符的目录列表
  /Q:qflags  静音模式标志: 
             u           抑制对不支持的 Unicode 格式发出警告
  strings                要查找的文字。
  [drive:][path]filename 指定要搜索的文件。
除非参数有 /C 前缀,请使用空格隔开搜索字符串。
例如: 'FINDSTR "hello there" x.y' 在文件 x.y 中寻找 "hello" 或 "there"。
 'FINDSTR /C:"hello there" x.y' 文件 x.y  寻找 "hello there"。

一般表达式的快速参考:
  .        通配符: 任何字符
  *        重复: 以前字符或类出现零或零以上次数
  ^        行位置: 行的开始
  $        行位置: 行的终点
  [class]  字符类: 任何在字符集中的字符
  [^class] 补字符类: 任何不在字符集中的字符
  [x-y]    范围: 在指定范围内的任何字符
  \x       Escape: 元字符 x 的文字用法
  \<xyz    字位置: 字的开始
  xyz\>    字位置: 字的结束
有关 FINDSTR 常见表达法的详细情况,请见联机命令参考。

2025-09-14

Windows-Resource-files-port

1. 文件占用
	1.1 resmon
	1.2 openfiles
	1.3 第3方工具
2. 端口占用
	2.1 端口列表链接
	2.2 dynamicportrange 动态端口范围
	2.3 excludedportrange 排除端口范围
	2.4 显示所有侦听端口及进程ID
	2.5 查看单个端口的PID
3. 关闭端口或服务
	3.1 RPC-135
	3.2 NetBIOS-139
	3.3 SMB-445
	3.4 5985, 5986
4. 文件共享-web
	4.1 windows, linux
	4.2 macOS
5. 显示所有侦听端口及进程ID
6. 命令帮助
	6.1 netstat -?
	6.2 netcfg /?
	6.3 netsh ?

1. 文件占用

1.1 resmon

使用系统的 [资源监视器] (Resource Monitor), 文件位置如下: 
C:\Windows\System32\resmon.exe
Resmon的3种打开方式: 
  • 若经常使用可以将以下文件 [发送到:桌面快捷方式],双击打开。
  • 直接在CMD命令行里输入命令名 (resmon) 打开。
  • [任务管理器]的[性能]页签,右上角[...]菜单: [资源监视器], 打开。
打开资源监视器后,选择CPU页签,在 [关联的句柄] 搜索要查看的文件名。 
下方列表会显示占用该文件的进程名称及ID等信息。

1.2 openfiles

 > openfiles /?
OPENFILES /parameter [arguments]
描述:允许管理员列出系统上已打开的文件和文件夹或与其断开连接。
参数列表:
    /Disconnect      中断至少一个打开的文件的连接。
    /Query           显示所有从本地或从共享文件夹打开的文件。
    /Local           启用 / 禁用本地打开文件的显示。
    /?               显示此帮助消息。
示例:
    OPENFILES /Disconnect /?
    OPENFILES /Query /?
    OPENFILES /Local /?

 > openfiles /local
信息: 系统全局标志“维护对象列表”目前已禁用。

 > openfiles /local on
成功: 已启用系统全局标志“维护对象列表”。
      系统重新启动后这才会生效。

 > openfiles
信息: 需要启动系统全局标志“维护对象列表”才能查看本地打开的文件。
            请参阅 Openfiles /? 以获得详细信息。
通过本地共享点远程打开的文件:
---------------------------------------------
信息: 没有找到打开的共享文件。

 > openfiles
本地打开的文件:
 … 这里省略 详细列表 [List … 500行+ ] … 
通过本地共享点远程打开的文件:
信息: 没有找到打开的共享文件。

上面省略的 详细列表 [List … 500行+ ] 概述:
列表字段:ID, 过程名称, 打开文件(路径\可执行)
以上3个字段的列表共计511行,统计有进程名称27个,打开的文件或文件夹262个,进程ID有433个。
  • 一些文件夹,mui多语言用户界面,db数据库,ttf字体等文件会被多个进程使用。
  • 一些可执行程序,会打开多个文件夹及文件。
小结:
  • 上面的 resmon 根据输入的 单一文件夹或文件名 列出使用它的进程及ID。
  • 这里的 openfiles 一次性列出当前 所有被打开的文件列表 及相关进程及ID。

1.3 第3方工具

下面的方法在网上找到的,还没试过,毕竟上面2种方法已经很方便了。

下载并安装 Sysinternals Suite.
Handle <filename>

下载并安装 Unlocker.
右键点击文件或文件夹,选择 Unlocker。

2. 端口占用

2.1 端口列表链接

2.2 dynamicportrange 动态端口范围

显示动态端口范围
 > netsh int ip show dynamicportrange tcp
协议 tcp 动态端口范围(新安装的系统)
启动端口        : 49152
端口数          : 16384

协议 tcp 动态端口范围(系统更新后)
启动端口        : 1024
端口数          : 64511

更改动态端口分配所使用端口的范围。
 > netsh int ip set dynamicportrange ?
 > netsh int ip set dynamicportrange protocol=tcp startport=10000 numberofports=20000

2.3 excludedportrange 排除端口范围

显示所有排除的端口范围
 > netsh int ip show excludedportrange tcp
协议 tcp 端口排除范围
开始端口    结束端口
* - 管理的端口排除。

为连续的端口块添加排除。
 > netsh int ip add excludedportrange ?
 > netsh int ip add excludedportrange protocol=tcp startport=50000 numberofports=20

为连续的端口块删除排除
 > netsh int ip delete excludedportrange ?
 > netsh int ip delete excludedportrange protocol=tcp startport=50000 numberofports=20
startport 和 numberofports 应该与以前创建的排除完全相同。可通过 show 查看。

2.4 显示所有侦听端口及进程ID

 > netstat -ano
活动连接
  协议  本地地址          外部地址        状态           PID
  TCP    0.0.0.0:5040           0.0.0.0:0              LISTENING       4844
  TCP    [::1]:49664            [::]:0                 LISTENING       3788
  UDP    0.0.0.0:5050           *:*                                    4844
  UDP    127.0.0.1:1900         *:*                                    8608
  UDP    127.0.0.1:49664        127.0.0.1:49664                        3380
  UDP    127.0.0.1:49666        *:*                                    8608
  UDP    [::1]:1900             *:*                                    8608
  UDP    [::1]:49665            *:*                                    8608

2.5 查看单个端口的PID

查看被占用端口对应的 PID
 > netstat -aon | findstr 1900
  UDP    127.0.0.1:1900         *:*                                    8608
  UDP    [::1]:1900             *:*                                    8608

查看指定 PID 的进程名
 > tasklist | findstr 8608
svchost.exe                   8608 Services                   0     10,044 K

注,
  • 在 [任务管理器] 的 [详细信息] 页签,使用PID排序,很容易找到具体进程。
  • 在 [任务管理器] 的 [服务] 页签,使用PID排序,也很容易找到具体进程。 
    • 这里出现的PID,都是系统服务进程。 
    • 这里没有的PID则是第3方程序,例如Chrome浏览器,soffice,LibreOffice文档软件等。

3. 关闭端口或服务

3.1 RPC-135

RpcSs (Remote Procedure Call (RPC))
C:\WINDOWS\system32\svchost.exe -k rpcss -p
RPCSS 服务是 COM 和 DCOM 服务器的服务控制管理器。
它执行 COM 和 DCOM 服务器的对象激活请求、对象导出程序解析和分布式垃圾回收。
如果此服务被停用或禁用,则使用 COM 或 DCOM 的程序将无法正常工作。

新装的Windows11,这个服务无法关闭,也不能禁用,不知道是不是因为没有激活,部分操作被限制。
以下是网上找到的关闭方法,不知道是否有更好的方法。

win+R 运行: dcomcnfg 打开 组件服务
选择我的电脑,右键属性,默认属性页签,取消勾选(在此计算机上启用分布式COM)
默认协议页签,移除DCOM里的协议。

win+R 运行: regedit 打开 注册表
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\internet
Rpc下,新建项:internet
重启即可
注: 这里注册表添加项,不知道有什么用... 

3.2 NetBIOS-139

  1. 开始 → 搜索 → [控制面板]
  2. [控制面板] → [网络和共享中心] → [更改适配器设置] 打开 [网络连接]
  3. [网络连接] 这里列出系统的网卡,在所有会使用到的网卡里关闭:有线以太网卡,无线网卡,USB网卡等。
    1. 右键具体 [网卡] → [属性] 打开 具体的 [网卡属性]
    2. [网卡属性] → 选中 [Internet协议版本4 (TCP/IPv4)] → 点击 [属性] 打开 [Internet协议版本4 (TCP/IPv4) 属性]
    3. [Internet协议版本4 (TCP/IPv4) 属性] → [高级] 打开 [高级 TCP/IP 设置]
    4. [高级 TCP/IP 设置] → [WINS]页签 → 选中 [禁用 TCP/IP 上的 NetBIOS]

3.3 SMB-445

Microsoft-DS (Microsoft Directory Services) SMB (Server Message Block) 文件共享服务
win+R 运行: regedit 打开 注册表
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters
新建QWORD(64位)值 (SMBDericeEnabled)
注: 这里注册表添加值,不知道有什么用... 

关闭Server服务
几十年来,我都是直接禁用Server服务。  这个服务默认启用,结果是开放所有磁盘的$默认共享,一丝不挂的隐藏共享... 

3.4 5985, 5986

win+R 运行: firewall.cpl 打开 防火墙
防火墙 高级设置 
通过端口 找出对应的策略,阻止即可。
Windows 远程管理(HTTP-In)

4. 文件共享-web

通过上面的操作,系统安全性增加了,但也失去了局域网内文件共享的便利性。
下面介绍更安全的web文件分享,这种方式使用web页面分享文件,始终是单向且只读的。
有非常多的软件提供web服务功能,感觉python附带的最方便。随时用随时开。

只需要安装Python最新版,然后在需要共享的目录下执行下方的命令即可。
而局域网内需要获取文件的用户,只需要使用浏览器输入上面分享主机的IP地址及端口号即可浏览文件,选择下载。

4.1 windows, linux

python -m http.server 
python -m http.server 9000 

4.2 macOS

python3 -m http.server 9000 
Localhost:9000
alias http-server="python3 -m http.server" 
http-server 8080 

5. 显示所有侦听端口及进程ID

关闭了以上端口,结合任务管理器,查看侦听端口及进程信息。
 > netstat -ano 列出进程列表及PID,再通过PID找到相应的服务名称或程序名称
协议 本地地址 外部地址 状态 PID 服务名 (显示名) C:\WINDOWS\system32\svchost.exe
UDP 0.0.0.0:5355 *:* 2280 Dnscache
(DNS Client)
-k NetworkService -p
UDP [::]:5355 *:* 2280
UDP 127.0.0.1:49664 127.0.0.1:49664 3464 Iphlpsvc (IP Helper) -k NetSvcs -p
TCP 192.168.10.10:50264 4.145.79.80:443 ESTABLISHED 3660 WpnService
Windows 推送通知系统服务
-k NetSvcs -p
TCP 192.168.10.10:50381 4.145.79.80:443 ESTABLISHED 3660
TCP 0.0.0.0:5040 0.0.0.0:0 LISTENING 5360 CDPSvc
连接设备平台服务
-k LocalService -p
UDP 0.0.0.0:5050 *:* 5360
UDP 127.0.0.1:1900 *:* 5520 SSDPSRV
SSDP Discovery
-k LocalServiceAndNoImpersonation -p
UDP 127.0.0.1:49560 *:* 5520
UDP [::1]:1900 *:* 5520
UDP [::1]:49559 *:* 5520
TCP 0.0.0.0:7680 0.0.0.0:0 LISTENING 10400 DoSvc
Delivery Optimization
-k NetworkService -p
TCP [::]:7680 [::]:0 LISTENING 10400
TCP [::1]:49664 [::]:0 LISTENING 3492 jhi_service C:\WINDOWS\System32\DriverStore\FileRepository\
Dal.inf_amd64_af50fdb80983f7bc\jhi_service.exe
TCP 127.0.0.1:49836 127.0.0.1:49837 ESTABLISHED 9940 firefox.exe
浏览器
这是上面:[jhi_service] 服务的描述
Intel(R) Dynamic Application Loader Host Interface Service.
Allows applications to access the local Intel (R) DAL
英特尔(R) 动态应用程序加载器主机接口服务。
允许应用程序访问本地英特尔(R) DAL
TCP 127.0.0.1:49837 127.0.0.1:49836 ESTABLISHED 9940
TCP 127.0.0.1:49838 127.0.0.1:49839 ESTABLISHED 10900
TCP 127.0.0.1:49839 127.0.0.1:49838 ESTABLISHED 10900

6. 命令帮助

6.1 netstat -?

显示协议统计信息和当前 TCP/IP 网络连接。
NETSTAT [-a] [-b] [-e] [-f] [-i] [-n] [-o] [-p proto] [-r] [-s] [-t] [-x] [-y] [interval]
 -a  显示所有连接和侦听端口。
 -b  显示创建每个连接所涉及的可执行文件或侦听端口。  
在某些情况下,已知的可执行文件托管多个独立组件,在这些情况下,将显示创建连接或侦听端口所涉及的组件序列。 
在这种情况下,可执行文件名称位于 [] 底部,顶部是它调用的组件,此类推,直到达到 TCP/IP。 
依请注意,此选项可能很耗时,并且会失败,除非你有足够的权限。
 -c  显示按当前使用的 TCP 或 UDP 端口数排序的进程列表。
 -d  显示每个连接分配的 DSCP 值。
 -d  显示以太网统计信息。这可以与 -s 选项结合使用。
 -f  显示外部的完全限定的域名 (FQDN) 地址。
 -i  显示 TCP 连接在其当前状态下所用的时间。
 -n  以数字形式显示地址和端口号。
 -o  显示与每个连接关联的拥有进程 ID。
 -p [*]  显示 proto 指定的协议的连接;proto 可以是以下任一项: TCP、UDP、TCPv6 或 UDPv6。 
如果与 -s 选项一起使用以显示每个协议统计信息,则 proto 可以是以下任一项: IP、IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP 或 UDPv6。
 -q  显示所有连接、侦听端口和绑定非侦听 TCP 端口。 绑定的非侦听端口可能已与或未与活动连接相关联。
 -r  显示路由表。
 -s  显示每个协议的统计信息。(-p 选项可用于指定默认值的子集) 
默认情况下,显示 IP、IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP 和 UDPv6 的统计信息。
 -t  显示当前的连接卸载状态。
 -x  显示 NetworkDirect 连接、侦听器和共享终结点。
 -y  显示所有连接的 TCP 连接模板。 无法与其他选项结合使用。
间隔  重播所选统计信息、每次显示之间的暂停间隔秒数。 
按 CTRL+C 停止重新显示统计信息。 
如果省略,netstat 将打印当前配置信息一次。

6.2 netcfg /?

netcfg [-v] [-winpe] [-l <full-path-to-component-INF>] -c <p|s|c> -i <comp-id>

-winpe 为 Windows 预安装环境安装 TCP/IP、NetBIOS和 Microsoft 客户端
 -l     提供 INF 的位置
 -c     提供要安装的组件的类(p 代表协议、s 代表服务、c 代表客户端)
 -i     提供组件 ID
参数必须按照所示顺序传递。
示例:
 > netcfg -l c:\oemdir\myprot.inf -c p -i myprot
使用 c:\oemdir\myprot.inf 安装协议 "myprot"

 > netcfg -c s -i MS_Server
安装服务 "MS_Server"

 > netcfg -v -winpe
为 Windows 预安装环境安装 TCP/IP、NetBIOS和 Microsoft 客户端

netcfg [-v] -q <comp-id>
 > netcfg -q MS_IPX
显示是否安装了组件 "MS_IPX"

netcfg [-v] -u <comp-id>
 > netcfg -u MS_IPX
卸载组件 "MS_IPX"

netcfg [-v] -s <a|n>
 -s  提供要显示的组件的类型(a 代表适配器,n 代表网络组件)
 > netcfg -s n
显示所有已安装的网络组件

netcfg [-v] -b <comp-id>
 > netcfg -b ms_tcpip
显示包含 "MS_TCPIP" 的绑定路径

netcfg [-v] -m
 > netcfg -m
将绑定映射输出到当前目录中的 NetworkBindingMap.txt。 -v 还将显示映射到控制台的绑定映射。

 > netcfg -d
在所有网络设备上执行清理。这需要重新启动。

 > netcfg -x
在网络设备上执行清理,并跳过没有物理对象名称的对象。这需要重新启动。

一般说明:
 -v    以详细模式运行
 -?    显示此帮助信息

6.3 netsh ?

用法: C:\WINDOWS\system32\netsh.exe [-a AliasFile] [-c Context] [-r RemoteMachine] [-u [DomainName\]UserName] [-p Password | *] [Command | -f ScriptFile]
下列指令有效: 此上下文中的命令:
advfirewall   更改到 `netsh advfirewall' 上下文。
branchcache   更改到 `netsh branchcache' 上下文。
bridge        更改到 `netsh bridge' 上下文。
dhcpclient    更改到 `netsh dhcpclient' 上下文。
dnsclient     更改到 `netsh dnsclient' 上下文。
firewall      更改到 `netsh firewall' 上下文。
http          更改到 `netsh http' 上下文。
interface     更改到 `netsh interface' 上下文。
ipsec         更改到 `netsh ipsec' 上下文。
lan           更改到 `netsh lan' 上下文。
mbn           更改到 `netsh mbn' 上下文。
namespace     更改到 `netsh namespace' 上下文。
netio         更改到 `netsh netio' 上下文。
nlm           更改到 `netsh nlm' 上下文。
ras           更改到 `netsh ras' 上下文。
rpc           更改到 `netsh rpc' 上下文。
trace         更改到 `netsh trace' 上下文。
wcn           更改到 `netsh wcn' 上下文。
wfp           更改到 `netsh wfp' 上下文。
winhttp       更改到 `netsh winhttp' 上下文。
winsock       更改到 `netsh winsock' 上下文。
wlan          更改到 `netsh wlan' 上下文。
set         更新配置设置。
add         在项目列表上添加一个配置项目。
delete      在项目列表上删除一个配置项目。
exec        运行一个脚本文件。
dump        显示一个配置脚本。
show        显示信息。
help        显示命令列表。
?           显示命令列表。
下列的子上下文可用:
 advfirewall branchcache bridge dhcpclient dnsclient firewall http interface ipsec lan mbn namespace netio nlm ras rpc trace wcn wfp winhttp winsock wlan
若需要命令的更多帮助信息,请键入命令,接着是空格,后面跟?。

AC-power

导航 (返回顶部) 1. AC 1.1 Alternating current 1.2 简谐交流电 1.3 频率 1.4 峰值和有效值 2. 交流电相位分类 2.1 单相电 2.2 三相电 2.3 比较 2.4 220v交流电的3个电压值 2.5 相电压与...