MACRO Help: FIND and COPY Specific contact information from another sheet?

jeffcoleky

Active Member
Joined
May 24, 2011
Messages
274
I'm trying to grab the data from the "Results" tab, which contains data in rows, and put it in Sheet1 in columns. The data will ALWAYS be in [Results] Column A, but the catch is that the row number that contains the data isn't always the same.Data goes from here:
AAA
1preferred contact method:preferred contact method:preferred contact method:
2
3emailtextphone
4phone
5textcontact name:
6contact name:
7contact name:Valentina
8contact by phone:
9Valentinacontact by phone:
10
☎​
8885055050
11contact by phone:
☎​
8885055050
12User's Email Address
13
☎​
8885055050
User's Email Address
14bob@smith.com
15User's Email AddressOur other sites
16Our other sites
17bob@smith.comsite1
18site2site1
19Our other sitessite3site2
20site3
21site1
22site2Email to copy and paste:
23site3Email to copy and paste:
24bob@smith.com
25
26Email to copy and paste:
27
28bob@smith.com
29
30Example 1Example 2Example 3

<tbody>
</tbody>
Results

TO HERE:

Excel 2010
ABC
1NamePreferred Contact Method(s)Email Address
2Bob Smithemail, phone, textbob@smith.com
Sheet1



---------

I'd like to run a macro to pull the data from Results:A:A into the Currently selected Row on Sheet 1, (as it is above).

Some things are always true:
1) Phone number always has a "☎ " symbol in front of it and is always two rows below "contact by phone:"
2) Contact name is always two rows below the "Contact Name" text, IF it is present.
3) User's Email Address is always two rows below the "User's Email Address" text, IF it is present.
4) the order in which they are displayed doesn't change.
5) There will always only be one email, phone, or name associated with each record.

Here is a sample file

Is this enough info for someone to help me create such a macro? Any help or suggestions offered shall be MUCH appreciated.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Would it help facilitate an answer if I simplified the question?

Using a script, how do I copy and paste an email address from another sheet if I don't know which row it is on? (but do know which column)
 
Upvote 0

Forum statistics

Threads
1,215,635
Messages
6,125,945
Members
449,275
Latest member
jacob_mcbride

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