Null
The Null() function returns an array with one element representing a missing value. It is commonly used to:
- Populate empty cells with a specified value.
- Recognize unpopulated cells in Excel.
Syntax:
Qx.Null()- In Excel with Quintessence add-in versions prior to 25.1, use:
Null() - In the Quintessence Editor (Studio) using Quintessence language, use:
Null() - In the Quintessence Editor (Studio) using Python language, use:
Qx.Null()
Examples:
The examples provided below are based on fictitious data for illustrative purposes only.
> Example 1: Recognising and replacing empty cells
Data block (A1:B6):
| 01 April 2015 | 25604 |
| 02 April 2015 | 24970 |
| 03 April 2015 | 25369 |
| 04 April 2015 | |
| 05 April 2015 | |
| 06 April 2015 | 24684 |
Replace empty cells using SubstituteArray() and Null() with the string “Weekend”:
=Qx.SubstituteArray(A1:B6, "Weekend", Qx.Null())Result:
| 01 April 2015 | 25604 |
| 02 April 2015 | 24970 |
| 03 April 2015 | 25369 |
| 04 April 2015 | Weekend |
| 05 April 2015 | Weekend |
| 06 April 2015 | 24684 |
