Extracting Fields from String

ManUBlueJay

Active Member
Joined
Aug 30, 2012
Messages
304
Office Version
  1. 2016
Platform
  1. Windows
I am working on a very large genealogy project. I need to be able to extract date, first name of person and parents name. the data will appear like this (Very consistent spaces) in A2:
January 2 Joey Joseph Schmoe (Joe & Josephine).
I would like 3 separate cells. B2:"January 2", C2:"Joey", D2: "Schmoe (Joe & Josephine)"

Thanks
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

Try this : depends of course the consistency of spaces in the sentence...

B2 =LEFT(SUBSTITUTE(A1," ","*",2),FIND("*",SUBSTITUTE(A1," ","*",2))-1)
C2 =MID(A1,FIND("*",SUBSTITUTE(A1," ","*",{2,3}))+1,(FIND("*",SUBSTITUTE(A1," ","*",3))-FIND("*",SUBSTITUTE(A1," ","*",2))))
D2 =MID(A1,FIND("*",SUBSTITUTE(A1," ","*",4))+1,60)


ABCD
1January 2 Joey Joseph Schmoe (Joe & Josephine)DateNameDetails
2January 2Joey Schmoe (Joe & Josephine)

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Last edited:
Upvote 0
Hi,

Try this : depends of course the consistency of spaces in the sentence...

B2 =LEFT(SUBSTITUTE(A1," ","*",2),FIND("*",SUBSTITUTE(A1," ","*",2))-1)
C2 =MID(A1,FIND("*",SUBSTITUTE(A1," ","*",{2,3}))+1,(FIND("*",SUBSTITUTE(A1," ","*",3))-FIND("*",SUBSTITUTE(A1," ","*",2))))
D2 =MID(A1,FIND("*",SUBSTITUTE(A1," ","*",4))+1,60)


ABCD
1January 2 Joey Joseph Schmoe (Joe & Josephine)DateNameDetails
2January 2JoeySchmoe (Joe & Josephine)

<tbody>
</tbody>
Works Perfect
|Thank you
 
Upvote 0

Forum statistics

Threads
1,215,348
Messages
6,124,423
Members
449,157
Latest member
mytux

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