Excel generation
Before we start this project an excel spreadsheet will have to be created.
Open up Excel and follow the steps below.
##How To Insert a placeholder
Method 1
-
Select a cell
-
Type the placeholder name in the Define Name text box of the cell
![Excel01.png 689](https://files.readme.io/22c68c5-Excel01.png)
- Press Enter and the placeholder will be inserted.
Method 2
- Right-click the cell where the placeholder is to be inserted and click Define Name…
![Excel02.png 690](https://files.readme.io/3dedc5c-Excel02.png)
The New Name box will appear
- Enter the placeholder name in the Name: text box and click OK. The placeholder will be visible in design under the Placeholder tab
![Excel03.png 317](https://files.readme.io/6c8d762-Excel03.png)
How to Edit and Delete an existing placeholder
- Go To Formulas tab and click ‘Name Manager’
![Excel04.png 733](https://files.readme.io/9e48357-Excel04.png)
The Name Manager box will pop up
- To DELETE a placeholder, select the placeholder and click ‘Delete’ button.
![Excel05.png 407](https://files.readme.io/d03a643-Excel05.png)
- To EDIT a placeholder, select the placeholder and click ‘Edit…’ button.
![Excel06.png 407](https://files.readme.io/a46bd66-Excel06.png)
The Edit Name box will pop up
- To change the placeholder name, enter the new name in the Name: text box and change the placeholder location enter the new cell location in the Refers to: textbox
![Excel07.png 313](https://files.readme.io/cfc065d-Excel07.png)
How to create repeating placeholders
- Select the cells to be repeated and enter the repeating placeholder name in the Define Name textbox
![Excel08.png 598](https://files.readme.io/e6ccbd4-Excel08.png)
Insert the excel template into Infiniti
- Save the excel spreadsheet and create a new project in Infiniti.
Drag and drop the template question onto the question set and choose the excel file you just created to upload.
![Excel09.jpg 698](https://files.readme.io/aa7a8f0-Excel09.jpg)
The placeholder will be visible in design. ‘Placeholder_Repeat’ is the repeating placeholder and ‘Placeholder_Name’ and ‘Placeholder_Age’ are the placeholders included inside the repeating placeholder.
![Excel10.jpg 296](https://files.readme.io/06b2a39-Excel10.jpg)
- Map the placeholder to the required locations and specify the repeating placeholder under the properties tab of the section/page.
![Excel11.jpg 643](https://files.readme.io/98efd5c-Excel11.jpg)
Note
The above example shows repeating a selection of cells in the excel file. For repeating the pages of the excel file, replace ‘Placeholder_Repeat’ with ‘Sheet1’ placeholder in the Placeholder(s): textbox
How to publish an Excel Project
- Open the project from Manage and click ‘Publish’ button.
![Excel12.jpg 450](https://files.readme.io/b07074b-Excel12.jpg)
- Select the folder to which the project is to be published and specify the output format required from the Spreadsheet tab.
![Excel13.png 590](https://files.readme.io/8d134ee-Excel13.png)
- Click Save button
##How to run an Excel project in Produce
- Open the project and enter the values.
![Excel14.jpg 325](https://files.readme.io/a6aa60b-Excel14.jpg)
-
Click Next and then Generate Document.
-
Open the generated document
From the above example
If the placeholder mention in the repeating placeholder section in design was ‘Placeholder_Repeat’ then the output will be an excel file with 1 sheet and 4 rows.
![Excel15.png 379](https://files.readme.io/6bcfc5a-Excel15.png)
If the placeholder mention in the repeating placeholder section in design was ‘Sheet1’ then the output will be an excel file with 4 sheets and each with 1 row
![Excel16.png 615](https://files.readme.io/c76d89a-Excel16.png)
Updated about 5 years ago