Search
 
SCRIPT & CODE EXAMPLE
 

EXCEL

excel column number

=COLUMN(A1)

The COLUMN function returns the column number of the given cell reference.
=COLUMN(D10) returns 4 because column D is the fourth column.
Comment

how to find column number in excel

Sub acitveCellInfo()
     MsgBox "Active-column: " & ActiveCell.Column & ", Active-Row: " & ActiveCell.Row, vbInformation, "Active Cell"
End Sub


'if you want to see the column Nr's during working in Excel table you can change the reference-style

Sub changeReferenceStyle()
    Application.ReferenceStyle = xlA1 + xlR1C1 - Application.ReferenceStyle
End Sub
Comment

PREVIOUS NEXT
Code Example
Excel :: unhide rows in excel 
Excel :: convert number to date in excel 
Excel :: excel and function 
Excel :: select full column in excel 
Perl :: perl foreach loop 
Perl :: perl add key to hash 
Perl :: unique in perl 
Perl :: perl format decimal 2 places not rounding 
Pascal :: pascal input 
Pascal :: wait in pascal 
Pascal :: pascal special characters 
Powershell :: Saved Windows Credentials 
Gdscript :: godot progrssbar set max value in code 
Clojure :: clojure def 
Lisp :: Doom emacs pdf-tools 
Assembly :: pyplot name axes 
Assembly :: difference between machine language and assembly language 
Assembly :: import pyautogui Traceback (most recent call last): File "<stdin", line 1, in <module ImportError: No module named pyautogui 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: week days array in javascrpt 
Javascript :: jquery redirect 
Javascript :: Javascript run code after page load 
Javascript :: react native reset cache 
Javascript :: moment get today, tomorrow, yesterday 
Javascript :: detect browser javascript 
Javascript :: javascript code to edit webpage 
Javascript :: react native rotate 
Javascript :: javascript loop through class elements 
Javascript :: js find object length 
Javascript :: javascript for loop over dictionary 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =