## LEFT function for numbers

The LEFT function allows you to extract a string from a cell with a specific number of characters, however, if you extract a number from a text string the output will also be a text string.

You can see that above, the numbers in column C are aligned to the left indicating that Excel sees them as text strings.

They need to be numbers if you, for example, want to sum the values using the SUM function.

You can easily convert the text string to numbers by multiplying the LEFT function with 1.

The values in column C are now aligned to the right indicating they are now numbers.

### Download Excel *.xlsx file

The array formula in cell C3 extracts the first character from first, middle and last name. The formula works fine [โฆ]

Extract table headers based on a condition

This article demonstrates an array formula that returns the table header based on a condition. For example, in cell C8 [โฆ]

Chirag asks: I want to separate numbers from the following text: Abc123bx45 as a result 123 and 45 should be [โฆ]

The formula in cell C3 grabs the first word in B3 using a blank as the delimiting character. =LEFT(B3,SEARCH(" ",B3)-1) [โฆ]

Extract k-th word in cell value

The formula displayed above in cell range D3:D9 extracts a word based its position in a cell value. For example, [โฆ]

I this article I will show you how to get numerical values from a cell range manually and using an [โฆ]

How to extract numbers from a cell value

The following array formula, demonstrated in cell C3, extracts all numbers from a cell value: =TEXTJOIN(, 1, TEXT(MID(B3, ROW($A$1:INDEX($A$1:$A$1000, LEN(B3))), [โฆ]

The formula demonstrated above in cell range C3:C9 extracts the last word from adjacent cell in column B. =TRIM(RIGHT(SUBSTITUTE(B3, " [โฆ]

The formula in cell C3 grabs the first word in B3 using a blank as the delimiting character. =LEFT(B3,SEARCH(" ",B3)-1) [โฆ]

Sum cells containing numbers and text based on a condition

Question: I want to sum cells that have a "C" and a decimal number. The cells have other numbers and [โฆ]

The LEFT function extracts a specific number of characters always starting from the left. Excel Function Syntax LEFT(text, [num_chars]) Arguments [โฆ]

### 2 Responses to โLEFT function for numbersโ

### Leave a Reply

### How to comment

**How to add a formula to your comment**

<code>Insert your formula here.</code>

**Convert less than and larger than signs**

Use html character entities instead of less than and larger than signs.

< becomes < and > becomes >

**How to add VBA code to your comment**

[vb 1="vbnet" language=","]

Put your VBA code here.

[/vb]

**How to add a picture to your comment:**

Upload picture to postimage.org or imgur

Paste image link to your comment.

**Contact Oscar**

You can contact me through this contact form

this didn't work. multiplying by one only creates a #value! error.

Jeffery

The first three characters are numbers?