Explanation

In this example, we have comma-separated text in column B.

But the problem is that the numbers in columns E, F, and G aren’t reallynumeric values.

How can convert these numbers as text to actual numeric values?

The problem with TEXTSPLIT and numbers

Well, one option is to use the VALUE function.

a number, date, or time format) into a numeric value.

We can do that with the IFERROR function.

The problem with TEXTSPLIT and numbers

The final step is to replace the “x” with the original text value.

We can do that by simply repeating the original TEXTSPLIT formula.

We then usearrayinside the IFERROR and VALUE functions as above.

The problem with TEXTSPLIT and numbers

The key difference is that TEXTSPLIT runsjust one time.

TEXTSPLIT can split text into rows or columns.

VALUE Function

The Excel VALUE function converts text that appears in a recognized format (i.e.

The problem with TEXTSPLIT and numbers

a number, date, or time format) into a numeric value.

Normally, the VALUE function is not needed in Excel, because Excel automatically converts text to numeric values.

IFERROR is an elegant way to trap and manage errors without using more complicated nested IF statements.

The problem with TEXTSPLIT and numbers

LET Function

The Excel LET function lets you define named variables in a formula.

The VALUE function with the TEXTSPLIT function

Adding IFERROR to VALUE and TEXTSPLIT

Final formula - numbers are converted and text is unaffected

Excel formula: Text split to array

Excel TEXTSPLIT function

Excel VALUE function

Excel IFERROR function

Excel LET function

Article image

The problem with TEXTSPLIT and numbers

Final formula - numbers are converted and text is unaffected