Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# convert excel column index to letter

private string GetExcelColumnName(int columnNumber)
{
    int dividend = columnNumber;
    string columnName = String.Empty;
    int modulo;

    while (dividend > 0)
    {
        modulo = (dividend - 1) % 26;
        columnName = Convert.ToChar(65 + modulo).ToString() + columnName;
        dividend = (int)((dividend - modulo) / 26);
    } 

    return columnName;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to make a system to check if i see certain object in unity 
Csharp :: unity sprite disappears when using transform.lookat 
Csharp :: convert word files to plain text c# 
Csharp :: c# convert string to array 
Csharp :: c# recorrer una lista 
Csharp :: c# guid from string 
Csharp :: caesar cipher in C# 
Csharp :: how to set the current user httpcontext.current.user asp.net -mvc 
Csharp :: c# system cryptography hash string 
Csharp :: c# byte + byte is int 
Csharp :: double quotes in a string c# 
Csharp :: How to get selected item from Dropdown in GridView 
Csharp :: play sound in sequence unity 
Csharp :: subtract to time c# 
Csharp :: How to set default page asp.net MVC 
Csharp :: c# faker 
Csharp :: except method c# 
Csharp :: linq select 
Csharp :: c# template strings 
Csharp :: get list of months and year between two dates c# 
Csharp :: animation not playing unity 
Csharp :: or operator in c# 
Csharp :: c# get enum name from value 
Csharp :: This page contains six pages, created with MigraDoc and scaled down to fit on one page 
Csharp :: c# driver.findelement to look for declared variable 
Csharp :: lock a cache in asp.net 
Csharp :: Code snipet for jump script unity 2d 
Csharp :: transform.lookat 2d 
Csharp :: Working with null values 
Csharp :: what is implicit keyword c# 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =