COLUMNS question - current cell relative to A1

colbymack

Active Member
Joined
Jul 14, 2005
Messages
333
I am trying to find out a way to have Excel tell me either A) the current cell reference for the cell on which the selection is, or b) the number of columns relative to A1 for the current cell. I am somewhat familiar with the columns command, but do not know the formula to get the current address.

i.e. if I am in C2, I would like to have a formula in C2 that results in the value of 3, which represents the relative column number of column C to column A.

Any help would be appreciated.

Thanks in advance,
Colbymack
 

Some videos you may like

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,413
Office Version
  1. 365
Platform
  1. Windows
Take a look at the ROW() and COLUMN() functions.

They will give you the numerical value of the row/column you are in.
 

colbymack

Active Member
Joined
Jul 14, 2005
Messages
333
jmiskey,
That was perfect. I thought I tried Column before and that it was always returning 1. Apparently some operator error, as it now appears to be doing exactly as I want it to.

Thanks much,
Colbymack
 

Watch MrExcel Video

Forum statistics

Threads
1,118,383
Messages
5,571,818
Members
412,420
Latest member
Quintankerus
Top