Workbook Features
The following highlight some features that can be used to help enhance the report template. These features are available in both Excel and the XLReporter Template Studio except where noted.
Cell Formatting
Number Format
Excel
For custom formatting of cells, right click and select the Format Cells… In this dialog decimal places, date formats, currency, percentage, and other options can be specified. On the Number tab, the Custom Category provides more advanced formatting e.g., mm/dd/yy h:mm:ss gives the date and time to the second.
XLReporter Template Studio
For custom formatting of cells, right click and select the Format Cells… With the Format button decimal places, date formats, currency, percentage, and other options can be specified. The Custom option provides more advanced formatting e.g., mm/dd/yy h:mm:ss gives the date and time to the second.
Borders and Backgrounds
Borders and background colors can add a level of sophistication to reports.
For Data Entry Forms, placing a border around each input cell is a good idea to emphasize the form field. Different background colors can be used to color code input cells one color and any formula cells with another.
Excel
These settings are available in the Format Cells dialog under the Border and Fill tabs.
XLReporter Template Studio
These settings are available in the Format Cells option under the Border and Font sections.
Formulas
There are over 400 formulas and functions that can be incorporated into reports. To access, click the fx button in the formula bar.
For Data Entry Forms, user entry can be values used by formulas in other cells. Both user entry and formulas can be saved to the database. Note that in order to prevent a formula from being overwritten when the form is refreshed, set the Transfer of the cell(s) to Write.
Data Validation
All the Data Validation in the workbook can be used in a Data Entry Form.
In Excel, select Data, Data Tools, Data Validation. In XLReporter Template Studio select Design, Data, Data Validation.
Examples of data validation include restricting cell values to certain ranges and providing pick list for the user’s selection. In addition, custom instructions and error prompts can be configured to give feedback to the user.
Most of these validation types require a data type and a condition that must be met. The condition can be hardcoded or given by a cell reference.
Hint: Select the entire range of cells that require the same type of validation before opening Data Validation.
Validation Types
Any Value
Any input is accepted for this type. This is applicable for fields in a form that you do not need any validation for, however still want to utilize the custom input prompt for providing instructions.
Whole Number
The field can accept a whole number that meets the specific criteria.
For example, a field can only accept an integer between a min and max value contained in cells C10 and C11, respectively.
Allow: Whole Number
Data: Between
Minimum: =C10
Maximum: =C11
Decimal
The field can accept a decimal number that meets the specific criteria.
For example, a field can only accept a decimal number that is less than or equal to 5.
Allow: Decimal
Data: less than or equal to
Maximum: 5
List
A drop-down list is provided to select from. It is recommended to use this option whenever possible to prevent against manual entry errors and to keep the database entries consistent. In addition, dynamic lists can be created by using formulas.
With this option, In-cell dropdown should always be checked.
For example, the field requires one operator name to be entered. There are 10 total operator names that could be chosen. Their names are listed in cells J1 to J10.
Allow: List
Data: N/A
Source: =$J$1:$J$10
Date
The field requires a date to be entered that meets the conditions set.
For example, the field can accept a date that is within today’s date and a week from today.
Allow: Date
Data: Between
Start date: =TODAY()
End date: =TODAY() + 7
Time
The field requires a time to be entered that meets the condition set.
For example, a time must be entered between normal working hours 9am to 5pm.
Allow: Time
Data: Between
Start time: 9:00 AM
End time: 5:00 PM
Text Length
The field requires text to be entered that meets the condition set.
For example, the field is a comment field that requires text but is limited to 255 characters so it can be inserted into a Text data field.
Allow: Text Length
Data: Less than or equal to
Maximum: 255
Custom
The field uses a calculation/formula to determine if data entered is valid. The formula must evaluate to TRUE for valid entries and FALSE for invalid entries. This is the most dynamic of the validation types because it can use a vast array of formulas. The value of other cells can be used to determine validation as well.
For example, the field configured for cell B10 can only accept text. Use =ISTEXT(cell) as the formula to validate that only text is entered.
Allow: Custom
Formula: =ISTEXT(B10)
In another example, the cell A11 can only accept a product ID starting with “PROD” and ending with a number. E.g., PROD459789.
Allow: Custom
Formula: =IF(LEFT(A11,4)=”PROD”, TRUE, FALSE)
Ignore Blank
Most validation types offer the Ignore blank option which is found in the Settings tab. To ensure the user must enter a value, uncheck this option. When the form is deployed, the cell will appear with a red background when the form is deployed until data is entered.
If you wish to create a required cell with no additional validation, set Allow to Any Value. However, the Ignore blank option is disabled. To work around this problem:
Switch Allow: to Whole Number.
Uncheck Ignore blank.
Set Allow: back to Any Value.
Custom Input and Error Messages
As part of the validation configuration, custom input and error messages can be set. These messages appear when the cell is selected or when data entered in the cell does not meet the validation configured. By creating input messages, you can give the user instructions on each form input as well as instructions to correct the data if it does not pass validation.
Input Message
This option, when enabled, displays a prompt when the user selects the cell to edit. It can be used to give instruction on what type of data is required for this field.
Error Alert
This option (when enabled) prompts the user after invalid data is entered in the cell to alert them that it is invalid. In Data Entry Forms only the Stop Style is supported, the others should not be used. When invalid data is entered, a Stop alert message is shown. There are 2 options available:
Retry to enter a new value
Cancel to remove the current value from the cell
If this option is not enabled and the user enters invalid data, the data remains in the cell. This can be useful for cells that present a list of values to select from but also allow for the user to enter something manually. For example, on a form a user must fill out if a piece of equipment fails, a list of common failure reasons may be provided, but there may also be the need for a user to enter a custom reason that is not on the list.
Conditional Formatting
One of the best features of workbooks is conditional formatting which highlights anomalies or values that are “out of spec”.
To configure in Excel, under the Home tab select Styles, Conditional Formatting, New Rule. For example, to color a cell red if the value is greater than 50, Select Format only cells that contain. For the Rule, set Cell Value greater than 50. Click Format and under Fill, select red.
To configure in the XLReporter Template Studio, under the Design tab select Content, Conditional Formatting, Manage Rules.
Named Cells/Ranges
Providing a name to a cell has the benefit that if rows/columns are added/removed, the name always remains with the cell. This means that if a data connection uses a named cell, the data from the connection is placed at the current location of the cell. This is in contrast with a connection that uses a specific location e.g., $B$8, which always places its data to the specific cell.
Take, for example, a report template set up with 2 data connections where the number of rows returned for each connection is unknown during template design.
![]() |
The connections are configured to insert with one connected to cell $B$4 and the other to ABC which is a named cell for $B$10. The connection at $B$4 inserts its data pushing the name ABC down the worksheet. The connection at ABC now starts below the entire data table of the top connection.
![]() |
Named cells can be used in both Data Connect and Data Manage. To use a named range, the Scope (Data Connect) or Active By (Data Manage) setting must be set to a specific worksheet.
Then in the settings where a cell reference can be specified (like Placement for Data Connect), toggle from Cell to Name. A drop-down list of all configured named ranges configured for the selected worksheet.
Defining a Named Range
Excel
Named cells/ranges are defined in Excel a few different ways.
Under the Formulas tab, in the Defined Names section, click Define Name.
Under the Formulas tab, in the Defined Names section, click Name Manager. In Name Manager click New.
With the cell/range to name highlighted in the worksheet, click into the Name Box to the left of the Excel’s formula bar, enter a Name (replacing the cell reference shown) and press the Enter key.
XLReporter Template Studio
Under the Design tab, select Content, Insert, Named Range.
Under the Design tab, select Data, Name Manager.
LastCell
Special consideration is made for any connection configured to a cell named LastCell. LastCell should only be used with connections that have Placement set to one of the Insert types.
When a connection configured to LastCell is updated, cells/rows/columns are inserted (depending on Type and Direction) causing the LastCell definition to move down or across the worksheet. This functionality can be useful for reports where multiple rows/columns of data are brought into the report at different times, and each appears beneath / to the right of the previous.

