# Calculate cell numbers only not letters

#### LuckyD

##### New Member
In cell K17 I have 2

In cell L16 I have Volume x5

In cell L17 I have =K17*L16

In cell L17 I get #VALUE!
I want L17 to read 10.
I have tried =K17*INT(L16) which didn't work.
I just want it to calculate only the numbers in cell L16.

Thanks

### Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Welcome to the Board!

=K17*RIGHT(L16,LEN(L16)-FIND("x",L16))

should work (privoded the number is always prefaced by an "x").

If you can swing it, keep the Volumn Amount in a separate cell. It greatly simplifies things.

Hope that helps,

Smitty

Wow more complicated then I figured. In my basic programming class like 5 years ago it was easy to seperate integers from strings.

Hi Lucky:

For your entries in cells K17 and L16 as you have posted ...

in cell L17, you can use the formula ...

=K17*RIGHT(L16)
or
=K17*SUBSTITUTE(L16,"x","")

If you need a more general solution you have to provide better specification for possible entries in cell L16.

LuckyD
Another method would be to Custom format cell L16 with the format x#
When you put the number 5 in the cell the view you be x5. Doing this way will allow you to use your original formula.

This will greatly improve my ability to quick change my volumes and concentrations.

Replies
7
Views
325
Replies
4
Views
267
Replies
5
Views
568
Replies
5
Views
61
Replies
1
Views
147

1,217,763
Messages
6,138,459
Members
450,139
Latest member
myexcel202424

### 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