This is a migrated thread and some comments may be shown as answers.

Cell Indexing with Column Letter Row Number

2 Answers 170 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 15 Apr 2015, 02:03 AM

Is there a built-in way to convert from the "{ColumnLetter}{RowNumber}" notation to the CellIndex format?

Example:

"C5" becomes ColumnIndex=2, RowIndex=4

"AA2" becomes ColumnIndex=26, RowIndex=1

 

It's not the end of the world to write my own conversion, but I was just curious if this is already supported.

 

Thanks!

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Anna
Telerik team
answered on 16 Apr 2015, 10:29 AM
Hi Stephen,

Thank you for your question.

At the moment this functionality is exposed in the methods TryConvertCellNameToIndex and ConvertCellNameToIndex of the NameConverter class.

Please, do not hesitate to let us know if there is anything else we can do for you.

Regards,
Anna
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Stephen
Top achievements
Rank 1
answered on 16 Apr 2015, 06:09 PM
Thanks Anna!
Tags
Spreadsheet
Asked by
Stephen
Top achievements
Rank 1
Answers by
Anna
Telerik team
Stephen
Top achievements
Rank 1
Share this question
or