Extract Data Between Spaces

Celticshadow

Active Member
Joined
Aug 16, 2010
Messages
414
Office Version
  1. 365
Platform
  1. Windows
Hi All

May I ask the board if they could help me with some formula to extract the data below "Data Source" and put in the the corresponding cells as shown below. I think it is by way of breaking down the data between the spaces but I am unable to work it out myself. The data is consistent in that it appears in three blocks separated by two spaces if that is of any assistance.Many thanks in advance.

Kind Regards


Code:
[TABLE="width: 666"]
<tbody>[TR]
[TD]DATA SOURCE[/TD]
[TD="colspan: 7, align: center"]REQUIRED DATA
[/TD]
[/TR]
[TR]
[TD]7GF C5Hc 4K[/TD]
[TD="align: center"]7
[/TD]
[TD="align: center"]GF[/TD]
[TD="align: center"]C5[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Hc[/TD]
[TD="align: center"][/TD]
[TD="align: center"]6[/TD]
[/TR]
[TR]
[TD]7Gd C43yHc 6K[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]GD[/TD]
[TD="align: center"]C4[/TD]
[TD="align: center"]3y[/TD]
[TD="align: center"]Hc[/TD]
[TD="align: center"][/TD]
[TD="align: center"]6[/TD]
[/TR]
[TR]
[TD]9St C5Md 21K[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]ST[/TD]
[TD="align: center"]C5[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Md[/TD]
[TD="align: center"][/TD]
[TD="align: center"]21[/TD]
[/TR]
[TR]
[TD]7St/Slw C43yHc 4K[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]St/Slw[/TD]
[TD="align: center"]C4[/TD]
[TD="align: center"]3y[/TD]
[TD="align: center"]Hc[/TD]
[TD="align: center"][/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD]12St/Fs C5Md 2K[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]St/Fs[/TD]
[TD="align: center"]C5[/TD]
[TD="align: center"][/TD]
[TD="align: center"]Md[/TD]
[TD="align: center"][/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD]16Y/Sft HcH 815K[/TD]
[TD="align: center"]16[/TD]
[TD="align: center"]Y/Sft[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]HcH[/TD]
[TD="align: center"][/TD]
[TD="align: center"]815[/TD]
[/TR]
[TR]
[TD]17Sft Ch 4K[/TD]
[TD="align: center"]17[/TD]
[TD="align: center"]Sft[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]Ch[/TD]
[TD="align: center"][/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD]24Gd HcCh 5K[/TD]
[TD="align: center"]24[/TD]
[TD="align: center"]Gd[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]HcCh[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD]22Hy NvChG3 23K[/TD]
[TD="align: center"]22[/TD]
[TD="align: center"]Hy[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]NvCh[/TD]
[TD="align: center"]G3[/TD]
[TD="align: center"]23[/TD]
[/TR]
[TR]
[TD]7GS C12yG3 22K[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]GS[/TD]
[TD="align: center"]C1[/TD]
[TD="align: center"]2Y[/TD]
[TD="align: center"][/TD]
[TD="align: center"]G3[/TD]
[TD="align: center"]22
[/TD]
[/TR]
</tbody>[/TABLE]
 
Formula for this type of problem is usually long winded

Option 1 uses Helpers
If you are feeling particularly masochistic you could do without the helpers, Option 2

Excel Workbook
ABCDEFGHIJ
1DATA SOURCEREQUIRED DATAHelper1Helper2
27GF C5Hc 4K7GFC5Hc 4KC5 Hc 4KHc 4
37Gd C43yHc 6K7GdC43yHc 6KC43yHc 6KHc6
49St C5Md 21K9StC5Md 21KC5Md 21KMd21
57St/Slw C43yHc 4K7St/SlwC43yHc 4KC43yHc 4KHc4
612St/Fs C5Md 2K12St/FsC5Md 2KC5Md 2KMd2
716Y/Sft HcH 815K16Y/SftHcH 815KHcH 815KHcH815
817Sft Ch 4K17SftCh 4KCh 4KCh4
924Gd HcCh 5K24GdHcCh 5KHcCh 5KHcCh5
1022Hy NvChG3 23K22HyNvChG3 23KNvChG3 23KNvChG323
117GS C12yG3 22K7GSC12yG3 22KC12yG3 22KG322
Sheet1 (1)


Excel Workbook
ABCDEFGH
1DATA SOURCEREQUIRED DATA
27GF C5Hc 4K7GFC5 Hc 4
37Gd C43yHc 6K7GdC43yHc6
49St C5Md 21K9StC5Md21
57St/Slw C43yHc 4K7St/SlwC43yHc4
612St/Fs C5Md 2K12St/FsC5Md2
716Y/Sft HcH 815K16Y/SftHcH815
817Sft Ch 4K17SftCh4
924Gd HcCh 5K24GdHcCh5
1022Hy NvChG3 23K22HyNvChG323
117GS C12yG3 22K7GSC12yG322
Sheet1 (2)
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi Marcol

Many many thanks your above formula works an absolute treat and I am extremely grateful for your input. I can only echo again my previous praise for other posts that have been solved by forum members, this forum is worth its weight in gold with such members as Marcol and p45cal and their personal font of knowledge. Marcol take a bow son and many thanks, I really appreciate your help.

p45cal has also been extremely helpful and if I was more savvy with code I have no doubt that his solution would have worked also and I am also very grateful for the patience and knowledge shown by said member. Thanks again p45cal.

This forum never fails to amaze me and I encourage all members whom have been helped to leave positive feedback and be grateful such generous persons are available to lend their time and knowledge.

Kind Regards
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,899
Messages
6,122,155
Members
449,068
Latest member
shiz11713

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