Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Lookup entire row in Excel
  • Last row number in range
  • How to use Excel ROWS Function
  • Offset in Excel
  • Two-column Lookup in Excel

Data Analysis Examples

  • What-If Analysis: Scenarios and Goal Seek in Excel
  • How To Sort One Column or Multiple Columns in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • Reverse List in Excel
  • Add Outline to Data in Excel

Data Validation Examples

  • Excel Data validation date in specific year
  • How To Create Drop-down List in Excel
  • Excel Data validation require unique number
  • Excel Data validation exists in list
  • Data validation must not exist in list

Convert column letter to number in Excel

by

To convert a column letter to an regular number (e.g. 1, 10, 26, etc.) you can use a formula based on the INDIRECT and COLUMN functions. See example below:

Formula

=COLUMN(INDIRECT(letter&"1"))

Explanation

In the example shown, the formula in C5 is:

=COLUMN(INDIRECT(B5&"1"))

How this formula works

The first step is to construct a standard “A1” style reference using the column letter, by adding a “1” with concatenation:

B5&"1"

This results in a text string like “A1” which is passed into the INDIRECT function.

Worked Example:   Convert feet and inches to inches in Excel

Next, the INDIRECT function transforms the text into a proper Excel reference and hands the result off to the COLUMN function.

Worked Example:   Convert text string to valid reference in Excel using Indirect function

Finally, the COLUMN function evaluates the reference and returns the column number for the reference.

Worked Example:   Get location of value in 2D array in Excel

Post navigation

Previous Post:

Convert column number to letter in Excel

Next Post:

Calculate cap percentage at specific amount in Excel

Leave a Reply Cancel reply

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

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • Get first name from full name — Manipulating NAMES in Excel
  • Split numbers from units of measure in Excel
  • Get last name from name with comma — Manipulating NAMES in Excel
  • Remove text by position in a cell in Excel
  • UNICODE function: Description, Usage, Syntax, Examples and Explanation
  • Convert date to month and year in Excel
  • How to get year from date in Excel
  • Get days, months, and years between dates in Excel
  • Calculate days remaining in Excel
  • How to calculate quarter from date in Excel
  • ISPMT function: Description, Usage, Syntax, Examples and Explanation
  • PRICE function: Description, Usage, Syntax, Examples and Explanation
  • Calculate loan interest in given year in Excel
  • ODDFPRICE function: Description, Usage, Syntax, Examples and Explanation
  • XNPV function: Description, Usage, Syntax, Examples and Explanation
© 2022 xlsoffice . All Right Reserved. | Teal Smiles