# Calculate only numbers in a cell that has text as well

#### bizpioneer

##### New Member
Hi,

Is there away to calculate the average values from cell E to K and put it in column L
the trick is that the values contain text as well so I need to calculate the average using the numbers only

Also is there some kind of formula that does this and also works on Google documents?

### Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
are you prepared to fake it ?

I can't speak for Google docs, but in Excel perhaps:

=SUMPRODUCT(--LEFT("0"&E2:J2,FIND(" ",E2:J2&" ")))/COUNTA(E2:J2)

I can't speak for Google docs, but in Excel perhaps:

=SUMPRODUCT(--LEFT("0"&E2:J2,FIND(" ",E2:J2&" ")))/COUNTA(E2:J2)

It's not working for me I am getting this "#VALUE!" did I miss anything?

=SUMPRODUCT(--LEFT("0"&E2:K2,FIND(" ",E2:K2&" ")))/COUNTA(E2:K2)

quick test suggests that if the number is touching the letter you get a fail

you did say E to K

also if text is first you will have the error

Replies
8
Views
75
Replies
2
Views
100
Replies
0
Views
449
Replies
0
Views
171
Replies
18
Views
636

1,203,079
Messages
6,053,408
Members
444,662
Latest member
AaronPMH

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back