> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/cards-overview/then/table/calculate-columns-with.md).

# 使用以下方式计算列

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-26a2ff3f9215d96a725f1e9b2b95d6883621893e%2Fimage%20(370).png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

## **用途：**

\*\*“在表格中计算列”\*\*工作流卡片用于对所选表格中的列进行计算。用户可以选择列、应用数学运算，并将结果存储在指定的结果列中。

## **卡片组件：**

1. **表格名称**
   * **说明：指定要进行列计算的表格**。
   * **详情：提供包含所有可用表格**的下拉列表供用户选择。
2. **列名称（第 1 列）**
   * **说明：指定要参与计算的第一列**。
   * **详情：提供包含所有可用列**的列表供用户选择。
3. **运算**
   * \*\*说明：\*\*定义所选列之间要执行的数学运算。
   * **选项：**
     * \*\*加法 (+)：\*\*将第二列的值加到第一列的值上。
     * \*\*减法 (-)：\*\*从第一列的值中减去第二列的值。
     * **乘法 (\*):** 将第一列的值乘以第二列的值。
     * \*\*除法 (/)：\*\*将第一列的值除以第二列的值。
4. **列名称（第 2 列）**
   * **说明：指定要参与计算的第二列**。
   * **详情：提供可用列**的列表供用户选择。
5. **结果列**
   * **说明：指定用于存储计算结果的列**。
   * **详情：提供可用列**的列表，计算结果将保存到所选列中。

## **功能：**

* **条件评估：**\
  只有当 **“Where”** 和 **“And Sections”** 的条件都评估为真时，此卡片才会执行操作。
* **列计算：**\
  此卡片会对所选的两列执行指定的数学运算。
* **结果存储：**\
  计算结果会存储在所选的**结果列**中。

## **设置和配置：**

* **选择表格：**\
  选择要进行列计算的**表格**。
* **选择列：**\
  选择用于计算的**第一列**和**第二列**。
* **选择运算：**\
  选择要在两列之间执行的数学运算（**加法 (+)**、**减法 (-)**、**乘法 (\*)**、**除法 (/)**）。
* **选择结果列：**\
  选择用于存储计算结果的**结果列**。

## **结论：**

\*\*“在表格中计算列”\*\*工作流卡片支持用户对表格中的列进行动态计算，并将结果存储在指定列中。此卡片提供多种数学运算选项，并确保结果保存在指定的列中。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/cards-overview/then/table/calculate-columns-with.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
