Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Example of COUNTIFS with variable table column in Excel
  • Reverse List in Excel
  • Excel Line Chart
  • Create Scatter Chart in Excel
  • How To Sort One Column or Multiple Columns in Excel

References

  • How to get relative column numbers in a range in Excel
  • Basic INDEX MATCH approximate in Excel
  • How to get address of named range in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • How to get first row number in range in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation specific characters only
  • Data validation must not exist in list
  • Excel Data validation number multiple 100
  • Excel Data validation exists in list

How to translate letters to numbers in Excel

by

To translate letters in a string to numbers, you can use an array formula based on the TEXTJOIN and VLOOKUP functions, with a defined translation table to provide the necessary lookups.

Formula

{=TEXTJOIN("",1,VLOOKUP(T(IF(1,MID(A1,ROW
(INDIRECT("1:"&LEN(A1))),1))),xtable,2,0))}

Explanation

In the example shown, the formula in C5 is:

{=TEXTJOIN("",1,VLOOKUP(T(IF(1,MID(B5,ROW
(INDIRECT("1:"&LEN(B5))),1))),xtable,2,0))}

where “xtable” is the named range E5:F10.

Note: this is an array formula and must be entered with control + shift + enter.

How this formula works

At the core, this formula uses an array operation to generate an array of letters from the input text, translates each letter individually to a number, then joins all numbers together again and returns the output as a string.

To parse the input string into an array or letters, we use MID, ROW, LEN and INDIRECT functions like this:

MID(B5,ROW(INDIRECT("1:"&LEN(B5))),1)

LEN returns the length of the input text, which is concatenated to “1:” and handed off to INDIRECT as text. INDIRECT evaluates the text as a row reference, and the ROW function returns an array of numbers to MID:

MID(B5,{1;2;3},1)

MID then extracts one character for at each starting position and we have:

=TEXTJOIN("",1,VLOOKUP(T(IF(1,{"a";"b";"c"})),xtable,2,0))

Essentially, we are asking VLOOKUP to find a match for “a”, “b”, and “c” at the same time. For obscure reasons, we need to “dereference” this array in a particular way using both the T and IF functions. After VLOOKUP runs, we have:

=TEXTJOIN("",1,{9;4;6})

and TEXTJOIN returns the string “946”. If you need a number as final result, add zero. The math operation will coerce the text into a number.

Note: the TEXTJOIN function was introduced via the Office 365 subscription program in 2018.

Post navigation

Next Post:

Create One-dimensional and Two-dimensional Array

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

Logical Functions

  • OR function Examples in Excel
  • How to use Excel TRUE Function
  • How to return blank in place of #DIV/0! error in Excel
  • How to use Excel XOR Function
  • IF, AND, OR and NOT Functions Examples in Excel

Date Time

  • How to calculate nth day of year in Excel
  • Custom weekday abbreviation in Excel
  • Find Last Day of the Month in Excel
  • EDATE function: Description, Usage, Syntax, Examples and Explanation
  • Basic timesheet formula with breaks in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • If cell contains one of many things in Excel
  • How to randomly assign data to groups in Excel
  • How to randomly assign people to groups in Excel
  • Group times into unequal buckets in Excel

General

  • Freeze and Unfreeze Panes in Excel
  • Subtotal by invoice number in Excel
  • Subtotal invoices by age in Excel
  • With vs Without Array Formula in Excel
  • Index and match on multiple columns in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning