Sort Excel

更新时间:
复制 MD 格式

1. Component introduction

Note

Prerequisite components: Launch Excel or Get opened Excel

You can use this component to sort data in a column in ascending or descending order.

2. Inputs

Note

For help with each input item, see the component panel in the Visual Editor.

3. Outputs

Note

For more information about each output, see the component panel in the ROS Visual Editor.

4. Component usage example

4.1. Component configuration example

  1. Set Opened sheet object to v_Sheet_obj_1, which is the output of a prerequisite component (Get active sheet or Activate sheet).

  2. Set Sort method to "Ascending".

  3. In the Sort by column number field, enter "B".

  4. Set Exclude first row from sorting to "Yes".

  5. Default values for advanced options

4.2. Example execution result

None

5. Example flow

Setup flow

  1. Use the Launch Excel component to launch the specified Excel file.

  2. Use the Get active sheet component to obtain the active sheet object.

  3. Use the Sort Excel component to sort the data by column B in ascending order and exclude the first row from sorting.

Execution result

After the flow runs successfully, the data is automatically sorted by column B in ascending order.