XLSX Output (Calculation)
    • 30 Sep 2024
    • 1 Minute to read
    • Contributors
    • PDF

    XLSX Output (Calculation)

    • PDF

    Article summary

    Introduction

    In the previous exercise, you have created an output of the XLSX format. Now you are proposed to finalize creating the output by applying the required style and adding calculations.

    Exercise

    Download and import the attached configuration called 09. XLSX Output (Calculation) in Lasernet Developer 9. Afterward, navigate to the Forms section and open the Sample form.

    1. In the output, click on the cell as it is shown in the following image, and then type the following text in it: GRAND TOTAL.

    Use the two cells following the one to type the following text in each: DISCOUNT TOTAL and AMOUNT PAID, respectively.

    1. Once the cells contain the required text, select them and then format them using the buttons on the toolbar. As a result, the output looks like the one in the following image:

    1. Click in the cell next to the GRAND TOTAL one, and then type =SUM(RANGE($D$14)) in the formula bar or directly to the cell.

    Let us consider what =SUM(RANGE($D$14)) means. So, in the cell, we want to get a sum of numbers in the range into which the specified template cell is expanded in a merged document. It is a unit price range giving us a grand total sum.

    Repeat the step to enter =SUM(RANGE($E$14)) next to the DISCOUNT TOTAL cell as well as =SUM(RANGE($F$14)) next to the AMOUNT PAID cell. So, we can have a sum for the discount total and the amount paid respectively.

    1. Once you are done, select them, and then format the cells using the buttons on the toolbar. As a result, the output looks like the one in the following image:

    1. To make sure that all the required elements are added to the template, preview it by clicking the Preview button on the toolbar.

    09
    64.20 KB


    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.