How to use COLUMN function in Microsoft Excel

Let’s learn how to get column number of a cell or range.
So, to get the column number of a cell we use Excel COLUMN function. Its easy to use. Just pass the reference as argument and COLUMN function will return the COLUMN NUMBER of that cell. The argument is optional. If you don’t pass any argument the COLUMN function will return the column in which formula is written.
Syntax

=COLUMN([reference])

[reference]: the cell or range reference. This is optional.

COLUMN Function Example

If you just write the below COLUMN formula without any argument in Cell B2 then it will return 2.

=COLUMN()

If you write the below COLUMN formula without any argument in Cell B3 then it will return 5.

<div=”bbbb”>=COLUMN(E2)

The COLUMN function can be used effectively with VLOOKUP at place of col_index_number
If your table array starts from A2 then you can write this formula to lookup automatically from respective column.

=VLOOKUP(lookup value,$A$2:$C$100, COLUMN(A1),0)

Using this you can retrieve the entire row of a matched value.

So yeah guys, you can use this formula to get the column number. This can help you with many other formulas where you need to calculate cell addresses.

Related Articles:

Excel ROW function

How to use the ROWS function in Excel

How To Switch Rows and Columns in Excel

Popular Articles:

The VLOOKUP Function in Excel

COUNTIF in Excel 2016

How to Use SUMIF Function in Excel

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube