Separate/delimited cells based on numeric characters

mlarson

Well-known Member
Joined
Aug 25, 2011
Messages
509
Office Version
  1. 2010
Platform
  1. Windows
Hi all, hope you guys and gals are doing well! Question for you that I'm hoping you can help me with. Thanks in advance for anybody that tries to help.

I would like all cells separated/delimited whenever one of the following two instances occur, and I'd like those numeric characters included (so delimited/separator should be before the number occurs, I think):
" #.#)" or "#. " (where # means an actual number).
So, some examples:
" 1.2)"
" 3.7)"
" 4.1)"
"1. "
"6. "
"7. "

I have things like the following all in one cell...
Questions: 1. Why did the cat run up the tree? 2. Is the sky blue? 3. Is the planet Mars made out of the same stuff as the candy bar by the same name?
(not real question, of course, just giving examples) :-)

The output would be (and I don't care the output cell locations/addresses, they can be anywhere).
In a cell: 1. Why did the cat run up the tree?
In a different cell: 2. Is the sky blue?
In yet another different cell: 3. Is the planet Mars made out of the same stuff as the candy bar by the same name?

Same idea with " 1.2)", " 3.7)", " 4.1)", etc.

Thank you! And please let me know if I need to include more info. Hopefully I explained this clearly.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Excel 2010? Hm, I think all these functions should be available:

Book1
ABCD
1Questions: 1. Why did the cat run up the tree? 2. Is the sky blue? 3. Is the planet Mars made out of the same stuff as the candy bar by the same name?1. Why did the cat run up the tree? 2. Is the sky blue? 3. Is the planet Mars made out of the same stuff as the candy bar by the same name?
Sheet5
Cell Formulas
RangeFormula
B1:D1B1=MID($A1,SMALL(IF({1,0},IFERROR(FIND(ROW($1:$99)&". ",$A1&"4. "),""),IFERROR(FIND("."&ROW($1:$99)&")",$A1&"4. "),"")),COLUMN(A1)),SMALL(IF({1,0},IFERROR(FIND(ROW($1:$99)&". ",$A1&"4. "),""),IFERROR(FIND("."&ROW($1:$99)&")",$A1&"4. "),"")),COLUMN(B1))-SMALL(IF({1,0},IFERROR(FIND(ROW($1:$99)&". ",$A1&"4. "),""),IFERROR(FIND("."&ROW($1:$99)&")",$A1&"4. "),"")),COLUMN(A1)))
Press CTRL+SHIFT+ENTER to enter array formulas.


I dragged the formula right.
 
Upvote 0
Solution
That seemed to work, thank you! I'll let you know if I run into any problems.

Yeah, 2010. I should probably update that at some point :-)
 
Upvote 0

Forum statistics

Threads
1,223,721
Messages
6,174,097
Members
452,542
Latest member
Bricklin

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