Column index number

  • Thread starter Thread starter helpwanted
  • Start date Start date
H

helpwanted

I am using the following formula:

=VLOOKUP($C$2,PKG!A2:BN2000,34,FALSE)

This formula works for columns 1-12. After that, it doesn't give me the
correct information. Is there a way to see the column number to be certain I
am putting the right column number in?
 
In general
=COLUMN(AB1)-COLUMN(D1)+1
will give you the index number of Column AB when your data ranges starts at
col D.

If it starts at Col A then you can simply use
=Column(AB1)
since Column(A1) is one
 
One way:

In the column you're targeting, enter

=COLUMN()

(Alternatively, you could check the R1C1 Reference style checkbox in
Tools/Options/General).


Since the A1-style designations recycle every 26 letters, column 34 (=26
+ 8) would be column AH.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top