Extracting information into fields

emshac

New Member
Joined
Sep 21, 2015
Messages
5
I have just exported some 200 contacts from Word document into Excel sheet and they look somewhat like this:

Title: Mr.
First name: R
Last name: Miles
Email address: rmiles@***
Address 1: 1 Lane
Address 2: Burton
Postcode: E** 8*K
Town: Somewhere
State / Province: UK
Country: United Kingdom
Phone : +44 78504*****

All of this info is in cell A1 - A11, where the fields and the information given aren't separated into different columns.
This is repeated for the other 200 contacts. Meaning to say, the information starts at A1 and ends at A498.


I am trying to create a database that would allow me to extract all this information and allocate them neatly into fields in columns. Does anyone know how to extract this or use a macro that could make the task easier so I don't have to manually fill in 200 contacts into the respective fields?

Thanks!

<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
emshac, Good afternoon.

Suppose your data is at column A, starting A1.

Try to use:

B1 -->
=MID(INDIRECT("A"&COLUMN()-1+((ROW(A1)-1)*11)),FIND(":",INDIRECT("A"&COLUMN()-1+((ROW(A1)-1)*11)))+2,100)

Copy it side till L1

Select B1:L1
Copy it down as necessary

I did an example for you:

21-09-2015_Rebuilding_NEW_Layout-OK.xlsx

Is that what you're looking for?
I hope it helps.
 
Upvote 0
There may be a better way to extract it. But even if there isn't the result it's giving you can easily be manipulated. For example this will copy everything below the first 11 and put it next to the first 11. I am assuming that the labels aren't actually there, but if they are you could make a macro to eliminate those as well.

Code:
Sub Placer()
Dim i As Integer
Dim j As Integer
j = 1


    For i = 11 To 498 Step 11
        Range(Cells(i - 10, 1), Cells(i, 1)).Copy Destination:=Cells(1, j)
        j = j + 1
    Next i


End Sub
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,795
Members
449,468
Latest member
AGreen17

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