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
James240 Posts: 16,391 Forumite
Part of the Furniture 10,000 Posts Name Dropper Photogenic
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

Comments

  • bluboy
    bluboy Posts: 336 Forumite
    Part of the Furniture Combo Breaker
    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")))

    HTH
  • PhilCo_2
    PhilCo_2 Posts: 136 Forumite
    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.
  • 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.
  • Yep, I'd say the nested IF statement is the easiest way to do it
  • michaelro
    michaelro Posts: 211 Forumite
    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.
  • James240
    James240 Posts: 16,391 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    edited 20 May 2010 at 2:11PM
    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 button :)
    Savings Total so far for 2023: £8,062.58
  • althas
    althas Posts: 410 Forumite
    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 function
    There are 10 kinds of people that understand binary
    Those that do
    Those that dont
    :rotfl: :rotfl: :rotfl: :rotfl: :rotfl:
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

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

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.