+ Reply to Thread
Results 1 to 5 of 5

how to get a cell to have a data value depending on what is selected from a drop down

  1. #1
    Registered User
    Join Date
    09-29-2010
    Location
    northumberland
    MS-Off Ver
    Excel 2003
    Posts
    14

    how to get a cell to have a data value depending on what is selected from a drop down

    ok ladies and gentlemen total novice here.

    im trying to speed up my mileage document, i only travel to a few different offices and so would like to be able to choose the place i visited from a drop down menu and then the milage to that place to automatically appear in the next cell.

    i have attached a what i have been playing with.

    any help on this would be much appriciated.

    many thanks
    Attached Files Attached Files
    Last edited by adam.dixon; 09-29-2010 at 08:04 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: how to get a cell to have a data value depending on what is selected from a drop

    try vlookup in B4 and copy down

    =VLOOKUP(A4,$E$4:$F$7,2,FALSE)

    wrapped in an IF statement to trap error messages for blank cells

    =IF(A4<>"",VLOOKUP(A4,$E$4:$F$7,2,FALSE),"")

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: how to get a cell to have a data value depending on what is selected from a drop

    Hi adam.dixon,
    welcome to the forum
    try.. this in B4 and fill down =IF(ISNUMBER(MATCH(A4,E$4:E$7)),INDEX(F$4:F$7,MATCH(A4,E$4:E$7)),"")
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  4. #4
    Registered User
    Join Date
    09-29-2010
    Location
    northumberland
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: how to get a cell to have a data value depending on what is selected from a drop

    i am a very happy man

    many thanks

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: how to get a cell to have a data value depending on what is selected from a drop

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1