Hi Team,
I have an output of as follows in this excel,
But I need to get in the following format,
Can anyone let me know, what logic can I use here.
Hi Team,
I have an output of as follows in this excel,
But I need to get in the following format,
Can anyone let me know, what logic can I use here.
Simple solution steps are
and the code to convert number to alphabet (Column to write data)
For c As Integer = 1 To CapcUsedColumnsRange
Dim str As String = Nothing
If c <= 26 Then
str = Convert.ToChar(64 + c)
ElseIf c > 26 And c <= 52 Then
str = Convert.ToChar(65) + Convert.ToChar(64 + c - 26)
ElseIf c > 52 Then
str = Convert.ToChar(66) + Convert.ToChar(64 + c - 52)
End If