Trying to extract variable length text from cells.

Davebro

Board Regular
Joined
Feb 22, 2018
Messages
122
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
Trying to extract the two text names to columns B & C

2.00 Space Tourist 4.50 Cash The Cheque
2.38 Arctic Ambition 4.00 Sheephaven Flyer
2.50 Ocean Baroque 4.20 King Cuan
3.00 Snowcapped 4.33 Impact Warrior
3.50 Rathnaleen Kal 6.00 Atimetodream
2.10 Mashadi 4.50 Succession
2.88 Veil Of Shadows 5.50 Araminta
2.00 Dream Composer 5.00 Lihou
 
If the numbers are 1 integer and 2 decimals.
Try:
Dante Amor
ABC
12.00 Space Tourist 4.50 Cash The ChequeSpace TouristCash The Cheque
22.38 Arctic Ambition 4.00 Sheephaven FlyerArctic AmbitionSheephaven Flyer
32.50 Ocean Baroque 4.20 King CuanOcean BaroqueKing Cuan
43.00 Snowcapped 4.33 Impact WarriorSnowcappedImpact Warrior
53.50 Rathnaleen Kal 6.00 AtimetodreamRathnaleen KalAtimetodream
62.10 Mashadi 4.50 SuccessionMashadiSuccession
72.88 Veil Of Shadows 5.50 AramintaVeil Of ShadowsAraminta
82.00 Dream Composer 5.00 LihouDream ComposerLihou
Hoja3
Cell Formulas
RangeFormula
B1:B8B1=MID(A1,6,SEARCH(" ?.",A1,6)-6)
C1:C8C1=MID(A1,SEARCH(".",A1,5)+4,99)
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Just using Excel formulae, if your text is in A1:-

In B1: =MID(A1,6,FIND(".",MID(A1,6,255))-2)
In C1: =MID(A1,FIND(".",MID(A1,6,255))+9,255)

Then copy down.

Does that work for you?

It assumes all the numbers are in the format n.nn and there are no superfluous spaces.

Let me know?
 
Upvote 0

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

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