remove specific content of a cell to a new cell

pkinghan

New Member
Joined
Jan 23, 2019
Messages
6
hi guys

First time here!

I have text data in a cell e.g. "Quantities: 2" or "Quantities: 3" etc. I want to be able to sum the fact that total quantity is 5 and I would normally do this by using text to column feature (fixed width) however is there a way I can extract or move just the number into a new column so i can total that new column?
Thanks

P
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to the Board!

Do you mean that you want to drop the "Quantities:" part altogether?
In using Text to Columns, you can choose "Do Not Import" for the first field. It will then drop that and just leave the number.
 
Upvote 0
you can try the text-to-columns built-in function use : as delimiter
 
Upvote 0
thanks! Yeah bit more complex than that. For example is there a way to edit out text and just left number in a column?
 
Upvote 0
thanks guy! really appreciate your quick responses!

thanks! Yeah bit more complex than that. For example is there a way to edit out text and just left number in a column?
 
Upvote 0
You could sum it as it is

=SUMPRODUCT((REPLACE(A1:A4,1,12,""))*1)

Code:
[COLOR=#000000][FONT=-webkit-standard][TABLE="width: 133"]
<colgroup><col width="133" style="width: 100pt;"></colgroup><tbody>[TR]
[TD="class: xl63, width: 133"]Quantities: 2[/TD]
[/TR]
[TR]
[TD="class: xl63"]Quantities: 3[/TD]
[/TR]
[TR]
[TD="class: xl63"]Quantities: 14[/TD]
[/TR]
[TR]
[TD="class: xl63"]Quantities: 5[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]24[/TD]
[/TR]
</tbody>[/TABLE]
[/FONT][/COLOR]
 
Upvote 0
Sorry I'm not being very clear at all! see below...essentially i have a column with hundreds of these records as text and I want to be able to 'extract' or just count the numbers in there? I'm assuming text to columns is the way to go and the quickest way but not sure.

[TABLE="width: 203"]
<colgroup><col></colgroup><tbody>[TR]
[TD]
l5ejf3RTDpsAAAAASUVORK5CYII=
[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hi Gaz - I used this formula
=SUMPRODUCT((REPLACE(G5:G15,1,44,""))*1) as I assume the 1,44 is the amount of characters and spaces before the number? However I am getting error
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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