Extract numbers from a cell keeping the quantities together

luisftv

New Member
Joined
Nov 17, 2018
Messages
13
Office Version
  1. 2010
Thanks you in advanced.

I have a cell (say G11) which contains the following: 2+12+55+1+0+16+555+1=

I need to extract all the numbers (automatically, with a formula or VB) into different cells keeping each quantity in it's own cell, for example:

2 will be in it's own cell
12 will be in it's own cell
55 will be in it's own cell
1 will be in it's own cell
and so on...

Obviously, I do not want the "+" or "=" or any other part of the string... just the quantities.

This has to be in place so that it changes on it's own without user input... the only cell that will have user input is the first one that contains everything.

In other words, is there a formula (or array formula) or VB code that can be added once and be done with it. Remember, the original cell will change it's contents every now and then... therefore, it has to be automatic... no pressing of keys or buttons to make it happen.

I've tried with LEFT, MID, RIGHT, VLOOKUP, etc... but LEFT only does one number starting from the left, RIGHT only get the whole number from the right, and MID only one number in the middle... but as you see, I have more numbers than just 3 quantities.

Thank you so much.
 
Re: Extrat numbers from a cell keeping the quantities together

Thank you Fluff. And again, I do apologize.
Thank you :)

no longer a one-liner:cry:
No one liner! What can I say
omg.gif
 
Last edited:
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Re: Extrat numbers from a cell keeping the quantities together

No one liner! What can I say
omg.gif
:lol: By the way, that is a great smiley!

Just a reminder... don't forget to update your code for the OP to delete cells to the right of G11 before distributing the split apart values.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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