We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Excel Spreadsheet Question
Options

James240
Posts: 16,391 Forumite


in Techie Stuff
Hiya guys and girls im hoping someone might be able to help me
Ive created a drop down list in an Excel spreadsheet that my staff can use when completing a training return form. What i would like to do is when they select the appropriate option from that list, that the correct email address would appear in another cell that they have to send this information to. Can anyone help me how i can set this up
Thanks James


Savings Total so far for 2023: £8,062.58
0
Comments
-
Using Nested IF function
Imagining your drop down list (e.g. Peter, John, Paul) is in cell A1 ...
In the cell where you want the email address to appear type -
=IF(A1="Peter","peter@gmail.com",IF(A1="John","john@gmail.com",IF(A1="Paul","paul@gmail.com")))
HTH0 -
You'll need a list of the options with the appropriate email next to it. Then in the cell you want to put the email in use a vlookup to lookup the selected dropdown value against the list and return the email address.0
-
If you go HERE you can search for instructions on the vlookup function, which should help.In the beginning, the universe was created. This made a lot of people very angry and was widely regarded as a bad move.The late, great, Douglas Adams.0
-
Yep, I'd say the nested IF statement is the easiest way to do it0
-
Vlookup - That's what it's there for.
Nested IF's stop at 8 and are far to cumbersome for something like this
Create a list of your original value and the lookup value you wish to return
If your drop down value is in A1 and your lookup list in D1 to E50 then put the following formula in B1
=VLOOKUP(A1,$D$1:$E$50,2,0)
The relative reference $ will ensure the list still refers to the correct place when you copy the formula.0 -
Thank you very much guys you have helped me out massively
Ill thank you all when i get home as the works computer doesnt allow me to use the buttonSavings Total so far for 2023: £8,062.580 -
VLOOKUP is the way to go for sure. The nested IF statements (as been said already) is a cumbersome and long winded way of doing this particular thing
Also with the vlookup, it will be easy to change in the furture, as you will only need to change the list as opposed to every instance if the nested IF functionThere are 10 kinds of people that understand binary
Those that do
Those that dont
:rotfl: :rotfl: :rotfl: :rotfl: :rotfl:0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.9K Banking & Borrowing
- 253.1K Reduce Debt & Boost Income
- 453.5K Spending & Discounts
- 243.9K Work, Benefits & Business
- 598.7K Mortgages, Homes & Bills
- 176.9K Life & Family
- 257.2K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards