ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Column index number (https://www.excelbanter.com/excel-discussion-misc-queries/217000-column-index-number.html)

helpwanted

Column index number
 
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?

Sheeloo[_3_]

Column index number
 
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

"helpwanted" wrote:

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?


JE McGimpsey

Column index number
 
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.

In article ,
helpwanted wrote:

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?



All times are GMT +1. The time now is 08:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com