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

Data Analysis

  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • How to Use Solver Tool in Excel
  • Filter Data Based on Date in Excel
  • How To Create Pareto Chart in Excel
  • How to add Trendline to a chart in Excel

References

  • Approximate match with multiple criteria in Excel
  • How to get last column number in range in Excel
  • How to use Excel ROWS Function
  • How to get address of first cell in range in Excel
  • How to get relative column numbers in a range in Excel

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation whole percentage only
  • Excel Data validation specific characters only
  • Excel Data validation allow weekday only
  • Prevent invalid data entering in specific cells

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.

Worked Example:   How to reference named range different sheet in Excel

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”

Worked Example:   Sum bottom n values in Excel

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.

Worked Example:   Extract middle name from full name -- Manipulating NAMES in Excel

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:

Get day from date in Excel

Next Post:

Calculate loan interest in given year 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

Logical Functions

  • IF with wildcards in Excel
  • Not Equal To ‘<>‘ operator in Excel
  • Extract multiple matches into separate rows in Excel
  • How to use Excel FALSE Function
  • OR function Examples in Excel

Date Time

  • List holidays between two dates in Excel
  • Count holidays between two dates in Excel
  • How to calculate working days left in month in Excel
  • Excel Date & Time Functions Example
  • DATEVALUE function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group times into unequal buckets in Excel
  • If cell contains one of many things in Excel
  • Running count group by n size in Excel
  • Map inputs to arbitrary values in Excel
  • How to randomly assign data to groups in Excel

General

  • How to fill cell ranges with random number from fixed set of options in Excel
  • Sum by group in Excel
  • How to Insert Cells, Row and Rows in Excel
  • Find, Select, Replace and Go To Special in Excel
  • Check if multiple cells have same value in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning