Use this function to reference column values of a parent row's child rows.
Syntax
CHILDREN([reference])
- reference—[optional]A cell in a parent row (e.g., [Task Name]1 is the first row's Task Name cell). If no cell is specified, the function references the children of the current cell.
Sample usage
COUNT(CHILDREN([Task Name]1))
Examples
The examples reference the following sheet:
Clothing Item | Transaction Total | Item Number | Sold Date | |
---|---|---|---|---|
1 | Clothing Item Autumn Wardrobe | Transaction Total | Item Number | Sold Date |
2 | Clothing Item T-Shirt | Transaction Total 1,170.00 | Item Number C001 | Sold Date 02/12/19 |
3 | Clothing Item Pants | Transaction Total 1,491.00 | Item Number C002 | Sold Date 02/15/19 |
4 | Clothing Item Jacket | Transaction Total 812.00 | Item Number C003 | Sold Date 02/20/19 |
Given the sheet above, here are some examples of using CHILDREN in a sheet:
- The CHILDREN function in the following examples reference row 1, which is a parent row. More on Rows and Hierarchy.
- Some of these examples use the @cell parameter. More on @cell.
Formula | Description | Result |
---|---|---|
Formula =COUNTIF(CHILDREN([Sold Date]1), MONTH(@cell) = 02) | Description Count the total number of sales for a given month (February in this example). | Result 3 |
Formula =VLOOKUP(MAX(CHILDREN([Transaction Total]1)), [Item Number]2:[Transaction Total]4, 2) | Description Lookup the item number that had the highest transaction value. | Result C002 |
Formula =SUMIF(CHILDREN([Sold Date]1), MONTH(@cell) = 02, CHILDREN([Transaction Total]1)) | Description Returns the summed transaction total for sales that occurred during a specified month (February in this example). | Result 3,473 |
Still need help?
Use the Formula Handbook template to find more support resources and view 100+ formulas, including a glossary of every function that you can practice working with in real time, and examples of commonly used and advanced formulas.
Find examples of how other Smartsheet customers use this function or ask about your specific use case in the Smartsheet online Community.