Find email

kleanthis1

New Member
Joined
Feb 15, 2017
Messages
3
Hello,

I have 2 different excel files. The first file students.xls, has many names, surnames and the emails of my students. In D column I use the CONCATENATE to join the two columns to one. I have a second file info.xls in excel that I store some notes about some of the students about their attendance. Most of the sheets are named by a student's name (not all of them). What I want is a macro, that takes the name of a sheet in the second file lets say that a sheet is called James Peter, opens the first file that has all the names and emails, finds that name, and copies only his email in the a1 cell of the second file automatically. Can anyone help me?

students.xls

NameSurnameEMAILFull name
PeterJamestest1@test.comJames Peter (=CONCATENATE(B2;" ";A2))
JohnPapastest2@test.comPapas John
NickJonestest3@test.comJones Nick
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

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