Explanation

TheLEFT functionis perfect for extracting characters starting from the left side of a text string.

That’s where the LEN function is used.

Working from the inside out, LEN calculates the total length of each value.

Excel formula: Remove first character

For D6 (736 miles) the total length is 9.

The result is 3, which is fed to LEFT as the number of characters to extract.

LEFT then returns the text “736” as a text value.

Excel formula: Remove last word

For example, =LEFT(“apple”,3) returns “app”.

LEN will also count characters in numbers, but number formatting is not included.

VALUE Function

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

Excel formula: Remove file extension from filename

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.

Excel formula: Split text and numbers

Excel formula: Split numbers from units of measure

Excel LEFT function

Excel LEN function

Excel VALUE function