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

Data Analysis

  • How to create Checklist in Excel
  • How to add Trendline to a chart in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • Subtotal function in Excel
  • How to create Gauge Chart in Excel

References

  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel INDIRECT Function
  • Offset in Excel
  • Extract data with helper column in Excel
  • How to use Excel FORMULATEXT function

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation only dates between
  • Excel Data validation allow weekday only
  • Excel Data validation no punctuation
  • Excel Data validation specific characters only

How to convert text string to array in Excel

by

To convert a string to an array that contains one item for each letter, you can use an array formula based on the MID, ROW, LEN and INDIRECT functions. This can sometimes be useful inside other formulas that manipulate text at the character level.

 Formula

{=MID(string,ROW(INDIRECT("1:"&LEN(string))),1)}

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

Explanation

In the example shown, the formula in C5 is:

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

How this formula works

Working from the inside out, the LEN function calculates the length of the string, and this is joined by concatenation to “1:”, creating a text range like this: “1:3”

This text is passed into INDIRECT, which evaluates the text as a reference and returns the result to the ROW function. The ROW function returns the rows contained in the reference in an array of numbers like this:

{1;2;3}

Notice we have one number for each letter in the original text.

This array goes into the MID function, for the start_num argument. The text comes from column B, and the number of characters is hardcoded as 1

Finally, with multiple start numbers, MID returns multiple results in an array like this.

{"R";"e";"d"}

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

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

  • Not Equal To ‘<>‘ operator in Excel
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • How to return blank in place of #DIV/0! error in Excel

Date Time

  • How to calculate nth day of year in Excel
  • How to get same date next month or previous month in Excel
  • Add business days to date in Excel
  • Basic Overtime Calculation Formula in Excel
  • Series of dates by day

Grouping

  • Group numbers with VLOOKUP in Excel
  • Map inputs to arbitrary values in Excel
  • How to randomly assign people to groups in Excel
  • Group times into 3 hour buckets in Excel
  • Running count group by n size in Excel

General

  • Flash Fill in Excel
  • How to calculate profit margin percentage in Excel
  • How to increase by percentage in Excel
  • How to set or clear a print area in Excel Worksheet
  • How to calculate percent of students absent in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning