Having a Cell Display text related to a text value in another

Lazy_T

New Member
Joined
Jul 9, 2012
Messages
18
Hi Guys,

Apologies for the horrendously worded title - I have list of about 40 names, and i'd like to use data validation to create multiple cells with a dropdown list with the ability to choose from all of the names. I'd then like the adjacent cell to automatically display the email address for that person next to it.

How do I do this, please?

Given the amount of info, an IF function isn't powerful enough I don think? (I could be wrong here).

What are my options, if so? Something in VBA?

e.g.

Lazy_Tlazy_t@lazyt.com
XXXXX......

<tbody>
</tbody>

Appreciate this is a big ask, but I am struggling!
 
Last edited:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Sounds like you need to look at VLOOKUP.

Create a table of all your names / email addresses, say in Sheet 2, Columns A and B.

Assuming your drop down box is in cell A1 you'd then use something like;

Code:
=VLOOKUP(A1,Sheet1!A:B,2,false)

The "2" is the column number from the original value, you're basically saying

"Look for this name, in this column and then pull in the value next to it"

Make sense?
 
Upvote 0
Sounds sensible to me; never been very good with VLOOKUP.

I will have a crack - and report back!

Thank you, much obliged!
 
Upvote 0
It's easy when you get the hang of it, probably better if I gave you a better start though...

Code:
=VLOOKUP(A1,Sheet[COLOR=#ff0000]2[/COLOR]!A:B,2,false)

Sorry about that!
 
Upvote 0
Thank you so much - this has worked perfectly - I've even managed to crudely adjust this account for phone numbers too.

I'm sure there it a better way than I have just used, but it works very, very well.

Thank you again!
 
Upvote 0

Forum statistics

Threads
1,215,001
Messages
6,122,648
Members
449,092
Latest member
peppernaut

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