c# convert column name to number
public static int ExcelColumnNameToNumber(string columnName)
{
if (string.IsNullOrEmpty(columnName)) throw new ArgumentNullException("columnName");
columnName = columnName.ToUpperInvariant();
int sum = 0;
for (int i = 0; i < columnName.Length; i++)
{
sum *= 26;
sum += (columnName[i] - 'A' + 1);
}
return sum;
}
Also in C#:
- @Html.ActionLink
- iphone
- usermanager change password without current password
- SETTING UP ARRAY FOR TEST SCORES IN C#
- visual studio clear text script
- how do loops on C#
- unity indestructible
- c# max sequence contains no elements
- variables
- webutility.urlencode space
- converting letter to ascii
- snippet to create constructor in asp.net c#
- How can you learn C# on your own
- c# implement a superclass in subclass
- add variable to the beginning of a list c#
- c# prime factorization
- unity instantiate an object
- switch case c# range
- C# array to label
- unity3d quaternion add 90 degrees
- c# fileupload example
- .net core get image from url
- check distance to gameobject
- why is c# say ; expected