Hi,
I'm looking for a formula to copy data from a cell based on what it finds on another cell in the same row.
For example I have 2 sheets. One sheet has names and email addresses. the other sheet has names and their attendance to an event. However, the second sheet has additional names that are not in the first sheet so I can't do a simple sort and copy/paste.
How can I insert the appropriate email address matched with the name in the first sheet? (for ex, it needs to search the second sheet to find the same first name last name fields, then export/copy the email address from the next column into the first sheet in the column or cell i designate)
Please help ASAP!
Thanks!
Hi, I think you need VLOOKUP
=VLOOKUP(<cell where the name is>,<Sheet and area of your table>,<column number of the email address>,FALSE)
so if the name you want to find the email address for is in A2
the table with your other data is on Sheet2 in a table from A1 to D100, with the names in column A
and email addresses are in column D
use
=VLOOKUP(A2,Sheet2!$A$1:$D$100,4,FALSE)
hth
teylyn
Microsoft MVP - Excel
At Excelforum, you can say "Thank you!" by clicking theicon below the post.
Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.
Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
Also, please post in the relevant Forum
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
Check out the free Excel Toolbar
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
Code Tags: Make your code easier for us to read
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks