XL.Sheet.DataValidationSize
---------------------------

Returns a number of data validations in this worksheet (only for xlsx files).

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [XL](component_XL.md) | [16.3](newinversion163.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "XL.Sheet.DataValidationSize"; BookRef; SheetIndex ) 

**MBS**( **"XL.Sheet.DataValidationSize";** /\* Returns a number of data validations in this worksheet (only for xlsx files). \*/  
**$BookRef**; /\* The reference number for the workbook.e.g. $ref \*/   
**$SheetIndex**) /\* The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| BookRef | The reference number for the workbook. | $ref |
| SheetIndex | The index of the sheet. This number ranges from 0 to [XL.Book.SheetCount](XLBookSheetCount.md)-1. | 0 |

### Result

Returns number or error.

### Description

Returns a number of data validations in this worksheet (only for xlsx files).  
### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)
- [XL.Sheet.AddDataValidation](XLSheetAddDataValidation.md)
- [XL.Sheet.DataValidation](XLSheetDataValidation.md)
- [XL.Sheet.DataValidations](XLSheetDataValidations.md)

### Release notes

- **Version 16.3**
    - Added XL.Sheet.DataValidation, XL.Sheet.DataValidationSize and XL.Sheet.DataValidations functions.

### Blog Entries

- [LibXL 5.2 released](https://www.mbsplugins.de/archive/2026-06-13/LibXL_52_released/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 16.3pr1](https://www.mbsplugins.de/archive/2026-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 21st May 2026 , last changed 21st May 2026

  
[XL.Sheet.DataValidation](XLSheetDataValidation.md) - [XL.Sheet.DataValidations](XLSheetDataValidations.md)

[HTML Version](XLSheetDataValidationSize.shtml)