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
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
63,302
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,001
Messages
5,834,820
Members
430,324
Latest member
bosphoruskid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top