EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Lookup & Reference Functions in Excel COLUMN Function in Excel
Secondary Sidebar
Excel Functions
  • Lookup and Reference Functions in Excel
    • VLOOKUP Function in EXCEL
    • VLOOKUP True
    • VLOOKUP Error
    • How to Match Data in Excel
    • Excel Match Function
    • Excel Lookup Function
    • ROWS Function in Excel
    • Excel INDEX Function
    • VLOOKUP Table Array
    • Excel OFFSET Formula
    • VLOOKUP For Text
    • IF VLOOKUP Formula in Excel
    • Mixed Reference in Excel
    • CHOOSE Formula in Excel
    • Excel COLUMN to Number
    • Excel Alternatives to VLOOKUP
    • HLOOKUP Examples
    • Excel VLOOKUP From Another Sheet
    • VLOOKUP with Sum
    • Fixing VLOOKUP Errors
    • Compare Two Columns in Excel using VLOOKUP
    • Excel ROW Function
    • HYPERLINK in Excel
    • Address Excel Function
    • Excel COLUMNS Function
    • Excel REPLACE Function
    • OFFSET Excel Function
    • Excel GETPIVOTDATA Function
    • MATCH Function in Excel
    • VLOOKUP Function in Excel
    • HLOOKUP Function in Excel
    • LOOKUP in Excel
    • CHOOSE Function in Excel
    • TRANSPOSE in Excel
    • COLUMN Function in Excel
    • INDIRECT Function in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Excel Tips (220+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • Online EXCEL COURSE
  • Online EXCEL ADVANCED Training

COLUMN Function in Excel

By Manisha SharmaManisha Sharma

COLUMN Function in Excel

COLUMN Function in Excel

Column Function in excel is one of the easiest function to be used, which give returns the column number from the selected references. Which means we select the complete end to end column or any range of cells of any column, we will be able to get the column number. The number will be reflected on will be the first column number if we are selecting the more than one column in the range. And also the sequence will be marked counting from column A as the first number.

COLUMN Formula in Excel

The Formula for the COLUMN function is as follows:

Column formula in Excel

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

The COLUMN function asks for only one argument – that is, the reference. It is the cell or a range of cells for which we want the column number(s). It returns a numeric value as the cell reference is always numeric.

It is important to note at this point:

  1. The cell reference in question can be of a single cell or even a group of cells or range.
  2. This reference argument is optional. If not provided by the user, it simply returns the cell’s reference where the function is called.
  3. Including multiple cell references in a single COLUMN, a function is not allowed.

So, now that the definition is covered let’s see how this function works.

How to Use COLUMN Function in Excel?

This COLUMN is very simple easy to use. Let us now see how to use the COLUMN function with the help of some examples.

You can download this COLUMN Function Excel Template here – COLUMN Function Excel Template

It’s a built-in function that is used as a worksheet function, and the best way to understand its functionality is through an example.

Example #1

Column Function1

In the first case, observe that we did not give a reference to the formula. So, it gave us result 4 with the COLUMN function in cell C11, as shown below.

Column formula 1

Now in the next case, a reference was provided- cell G5. Now column G is the 7th column; hence the result displayed is 7. The formula used is mentioned in cell C12.

Column formula 1.1

The third case shows how even a range reference can be used with this formula. It can return column reference 2 in this case as the B is the second column.

Column formula 1.2

Example #2

This function can be used along with other Excel formulae, and that is where the real usefulness comes out.

Suppose we need to generate a table having the details for a home loan, where the installments are payable at the end of every quarter and the amount payable for this home loan per quarter is 200,000. So, it would become very easy for the user if a formula could be developed which would automatically generate the fixed payment value for every third month.

Column Example 2

So, we have the fixed loan amount mentioned in cell A2. Using this value, we generate the list for payments for each quarter as applicable by the following formula:

Column formula (function)

Here, we see that two functions are used- MOD and COLUMN. Now the calculation, in this case, is dependent on the MOD function. MOD is generally a commonly used function that is well suited for situations required to do a specified act every nth time.

So, let’s break this full formula down to understand its mechanism. The first number is created using the COLUMN, which returns the column number of cell B8, which is the number 2, minus 1, which is hardcoded so that it can force excel to always start counting with the number 1 irrespective of the actual column number.

The divisor is also hardcoded as 3 in the MOD function since the payments are to be made every quarter. By testing for a zero remainder, the expression will return TRUE at the 3rd, 6th, 9th, and 12th months and FALSE for every other month, which satisfies our requirement. Now we put the formula thus far inside an IF and set the TRUE value to pick from cell A2, and the FALSE is set to 0.

Example #3

One of the most commonly used functions is the VLOOKUP. Let’s see how the VLOOKUP can be used along with the COLUMN.

Suppose we a dataset having employee data containing employee ID, Name and Salary information. Now, if we have to find out the name from ID, then we can use the VLOOKUP function combined with COLUMN as shown below:

C example 2.1

C example 2.2

The formula used to get the VLOOKUP NAME is:

=VLOOKUP(A2,A2:C4,COLUMN(B2),FALSE)

C formula 2

The formula used to get the VLOOKUP SALARY is:

=VLOOKUP(A2,A2:C4,COLUMN(C2),FALSE)

C example 2.1

So basically, we are looking for the Employee Name using the Employee ID in VLOOKUP, and the col_index_num in the VLOOKUP function is set using COLUMN. The same thing is done for the VLOOKUP SALARY.

Recommended Articles

This has been a guide to COLUMN. Here we discuss the COLUMN Formula and how to use the COLUMN function along with practical examples and downloadable excel templates. You can also go through our other suggested articles –

  1. Column Header in Excel
  2. Freeze Columns in Excel
  3. Matching Columns in Excel
  4. Moving Columns in Excel
Popular Course in this category
Excel Training (23 Courses, 9+ Projects)
  23 Online Courses |  9 Hands-on Projects |  110+ Hours |  Verifiable Certificate of Completion
4.9
Price

View Course

Related Courses

Excel Advanced Training (16 Courses, 23+ Projects)4.9
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download COLUMN Function Excel Template

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download COLUMN Function Excel Template

EDUCBA

डाउनलोड COLUMN Function Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more