Set number format for an Excel range

更新时间:
复制 MD 格式

1. Component introduction

Note

Prerequisites: Start Excel or Get opened Excel

Use this component to set the number format for a range in Excel.

2. Inputs

Note

For details about each input, see the help text in the component panel of the application flow editor.

3. Outputs

Note

For details about each output, see the help text in the component panel of the application flow editor.

4. Component usage examples

4.1. Configuration example

  1. For Opened sheet object, select v_Sheet_obj_1, which is the output of the Get active sheet or Activate sheet component.

  2. Set Start row number to 1.

  3. Set Start column letter to A.

  4. Set End row number to 6.

  5. Set End column letter to B.

  6. For the number format, select "0.00".

  7. Advanced options: Default values

4.2. Example result

None

5. Sample flow

Build the flow

  1. Use the Start Excel component to open the specified Excel file.

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

  3. Use the Set number format for an Excel range component to format the numbers in the cells to two decimal places.

image

Result

As shown in the following figure, after the flow runs successfully, it opens the Excel file and formats the cells in the specified range to two decimal places.