A slightly different Excel Question..

I have designed a sheet using Excel which includes two drop down menus. For example a registration number is entered from a drop down in one box and then enter a fleet number in another. At the moment I have two drop down menus to do this which works Ok BUT what I want to do is..if I enter a registration number the fleet number is automatically entered into the next box. Can anyone help me out with this at all? Thanks in advance.

Comments

  • KingL
    KingL Posts: 1,713 Forumite
    via a lookup table? vlookup or hlookup (depending whether you want it horizontal or vertical) see under the helptext for each of those....
  • GunJack
    GunJack Posts: 11,800 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    could set up a reference table in another sheet, then have a vlookup in the cell next to your drop-down selection to look up the registration to your reference table to import the fleet number. Advantage of doing this is that you just need to update the reference table as & when :)
    ......Gettin' There, Wherever There is......

    I have a dodgy "i" key, so ignore spelling errors due to "i" issues, ...I blame Apple :D
  • GunJack
    GunJack Posts: 11,800 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    KingL wrote: »
    via a lookup table? vlookup or hlookup (depending whether you want it horizontal or vertical) see under the helptext for each of those....

    snap !! ;):D
    ......Gettin' There, Wherever There is......

    I have a dodgy "i" key, so ignore spelling errors due to "i" issues, ...I blame Apple :D
  • Chr15_2
    Chr15_2 Posts: 301 Forumite
    Part of the Furniture Combo Breaker
    Sorry must admit I'm newish to Excel as far as this goes, what does this mean?
  • Lokolo
    Lokolo Posts: 20,861 Forumite
    Part of the Furniture 10,000 Posts
    edited 29 July 2010 at 11:35PM
    In A coulmn, put all registration. In B column, all fleet numbers in.

    Then in a random cell put =LOOKUP(D2,A1:A20,B1:B20)

    then in D2 enter the reg number.

    I think that works!

    lookup.jpg
  • GunJack
    GunJack Posts: 11,800 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    ^^ that's the basic idea :)

    the final version will include an IF(ISERROR..... so that the not-yet-looked-up cells will remain blank until the corresponding registration cells have been filled in...if I get a minute in work later, I'll post an example
    ......Gettin' There, Wherever There is......

    I have a dodgy "i" key, so ignore spelling errors due to "i" issues, ...I blame Apple :D
  • If you're new to Excel check out https://www.mrexcel.com he has some good tutorials and so does https://www.jargonfreehelp.com/excel.asp both free with short very good video clips, I'd start with Jargon Free for IF and VLOOKUP.

    If you really want to learn Excel in more detail there is lynda.com but there is a subscription..

    LP
    Hi, we’ve had to remove your signature. If you’re not sure why please read the forum rules or email the forum team if you’re still unsure - MSE ForumTeam
  • Chr15_2
    Chr15_2 Posts: 301 Forumite
    Part of the Furniture Combo Breaker
    Hi thanks all for the help,I know what I'm doing this weekend now
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
  • 349.9K Banking & Borrowing
  • 252.7K Reduce Debt & Boost Income
  • 453.1K Spending & Discounts
  • 242.9K Work, Benefits & Business
  • 619.8K Mortgages, Homes & Bills
  • 176.4K Life & Family
  • 255.8K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 15.1K Coronavirus Support 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.