Calculate cell numbers only not letters

LuckyD

New Member
Joined
Nov 14, 2005
Messages
3
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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Welcome to the Board!

Not advisable, but

=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
 
Upvote 0
Wow more complicated then I figured. In my basic programming class like 5 years ago it was easy to seperate integers from strings.
 
Upvote 0
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.
 
Upvote 0
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.
 
Upvote 0
Thanks for all your help

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

Forum statistics

Threads
1,214,517
Messages
6,119,984
Members
448,935
Latest member
ijat

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top