UiPath Documentation
activities
latest
false
生产力活动
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

Match Function Workbook (preview)

Match Function Workbook activity that finds the relative position of a value within a range using the Excel MATCH function.

UiPath.Excel.Activities.MatchFunction

描述​

Finds the relative position of a value within a range, using the Excel MATCH function. This is the cross-platform equivalent of the Match Function Windows activity.

备注:

This activity does not support .xls files.

项目兼容性​

Windows | 跨平台

属性​

常见​

  • DisplayName - The name displayed for the activity in the Designer panel.

输入​

  • 文件- 资源工作簿的完整路径。要切换到本地路径,请选择加号图标,然后选择使用本地文件。当前字段更改为文件(本地路径) ,您可以在其中提供 workbook 的完整路径。
  • “工作表名称” - workbook 中工作表的名称。
  • Range - The range to search in. This field is required.
  • Lookup Value - The value to search for. This field is required.
  • Match Type - Select how the lookup value is matched against the range. The default value is 1 (largest value less than or equal to the value to match). You can choose from the following options:
    • 1 (largest value less than or equal to the value to match) - Finds the largest value that is less than or equal to the lookup value. The range must be sorted in ascending order.
    • 0 (first value exactly equal to the value to match) - Finds the first value that is equal to the lookup value. The range can be in any order.
    • -1 (smallest value greater than or equal to value to match) - Finds the smallest value that is greater than or equal to the lookup value. The range must be sorted in descending order.

选项​

  • 密码- workbook 的密码(如有必要)。

输出​

  • Position - The 1-based position of the match within the range, stored as an Int32 variable. The value is -1 if the activity doesn't find a match.

使用 workbook​

  • Workbook - The existing workbook to use instead of a file path.

注意​

  • Position is relative to the range, not to the sheet. For example, a match on the third cell of the range returns 3, wherever the range starts on the sheet.
  • Range must refer to the sheet in SheetName. A range that includes a sheet name, such as Sheet2!A2:A100, is not supported and causes an error.
  • A whole-column or whole-row range, such as A:A, is limited to the used range of the sheet.
  • The activity fails with an error if Range is empty or Lookup Value is null.
  • 描述​
  • 项目兼容性​
  • 属性​
  • 常见​
  • 输入​
  • 选项​
  • 输出​
  • 使用 workbook​
  • 注意​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新