XL.Sheet.AddrToRowCol
---------------------

Converts a cell reference to row and column.

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

MBS( "XL.Sheet.AddrToRowCol"; BookRef; SheetIndex; Address; Selector ) 

**MBS**( **"XL.Sheet.AddrToRowCol";** /\* Converts a cell reference to row and column. \*/  
**$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 \*/   
**$Address**; /\* The address to convert.e.g. "A1" \*/   
**$Selector**) /\* Which value to return: row, column, rowRelative, colRelative or address.e.g. "row" \*/ 

### 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 |
| Address | The address to convert. | "A1" |
| Selector | Which value to return: row, column, rowRelative, colRelative or address. | "row" |

### Result

Returns value or error.

### Description

Converts a cell reference to row and column.  
### Examples

Query row number:

 MBS ( "XL.Sheet.AddrToRowCol"; $book ; $sheet ; "C10"; "row" )  
<small>  
Example result: 9</small>Query column number:

 MBS ( "XL.Sheet.AddrToRowCol"; $book ; $sheet ; "C10"; "column" )  
<small>  
Example result: 2</small>### See also

- [XL.Book.SheetCount](XLBookSheetCount.md)

### Blog Entries

- [New column names in an Excel document](https://www.mbsplugins.de/archive/2019-05-14/New_column_names_in_an_Excel_d/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 26th May 2026

  
[XL.Sheet.AddTable](XLSheetAddTable.md) - [XL.Sheet.ApplyFilter](XLSheetApplyFilter.md)

[HTML Version](XLSheetAddrToRowCol.shtml)