We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 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-drop down menus/corresponding values

Hi all,

Im using openoffice but its samey

I want to create a drop down list of items in cell A1

Each drop down menu item would have a value attached to it such that when i select the item from the drop down list, its value appears in B1

All clues welcome !
Feudal Britain needs land reform. 70% of the land is "owned" by 1 % of the population and at least 50% is unregistered (inherited by landed gentry). Thats why your slave box costs so much..

Comments

    • enter the lookup items in a convenient column say D, with the corresponding values in the adjacent column
    • in cell A1 click Data on the menu bar then Data Validation
    • select Allow as List and enter Source as =D1.D? replacing ? with the number of items
    • in cell B1 enter the formula =VLOOKUP(A1,D1:E?,2,FALSE) replacing ? as before
    above works for Excel 2007 but should work for other versions - try help search for Data Validation
  • C_Mababejive
    C_Mababejive Posts: 11,668 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Combo Breaker
    Thanks,,ive got my named list of 8 items in a drop down menu in cell A40.

    I also have a duplicate list of those items in E38>E45 and their corresponding values in F38>F45

    What id like to happen is when i select the named item in the menu in cell A40, i would like the corresponding value to appear in C40.

    Have had a play with VLOOKUP but run out of time !

    Is the above possible? tnx
    Feudal Britain needs land reform. 70% of the land is "owned" by 1 % of the population and at least 50% is unregistered (inherited by landed gentry). Thats why your slave box costs so much..
  • rmg1
    rmg1 Posts: 3,159 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    If you mean can you get the corresponding item from column F to appear in cell C40 from the value picked in cell A40 then the answer is yes.
    You would need the following formula:-
    =vlookup(A40,E38:F45,2,false)
    :wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:

    Any posts are my opinion and only that. Please read at your own risk.
  • johnmc
    johnmc Posts: 1,265 Forumite
    If you're using a named range the substitute the name for E38:F45
  • C_Mababejive
    C_Mababejive Posts: 11,668 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Combo Breaker
    Thanks peeps.. the above more or less worked,just needed minor tweaks for openoffice. :)
    Feudal Britain needs land reform. 70% of the land is "owned" by 1 % of the population and at least 50% is unregistered (inherited by landed gentry). Thats why your slave box costs so much..
  • C_Mababejive
    C_Mababejive Posts: 11,668 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Combo Breaker
    PS in the VLOOKUP command line, what does the last bit i,e 2,0 or 2,false do?

    I now understand the command,,very useful. I think im noticing in openoffice that the VLOOKUP command line is not being saved when i close the sheet and re-open it,,i might be wrong,,maybe its an openoffice glitch and it will be retained in office..
    Feudal Britain needs land reform. 70% of the land is "owned" by 1 % of the population and at least 50% is unregistered (inherited by landed gentry). Thats why your slave box costs so much..
  • PS in the VLOOKUP command line, what does the last bit i,e 2,0 or 2,false do?

    I now understand the command,,very useful. I think im noticing in openoffice that the VLOOKUP command line is not being saved when i close the sheet and re-open it,,i might be wrong,,maybe its an openoffice glitch and it will be retained in office..
    In vlookup(A40,E38:F45,2,false) the 2 means to return the value in the 2nd column in the range E:F i.e. column F. The false means that an exact match is required between the value being looked up (A40) and the values in the first column of the lookup range (column E)
  • C_Mababejive
    C_Mababejive Posts: 11,668 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Combo Breaker
    In vlookup(A40,E38:F45,2,false) the 2 means to return the value in the 2nd column in the range E:F i.e. column F. The false means that an exact match is required between the value being looked up (A40) and the values in the first column of the lookup range (column E)

    Fab..thanks again to all contributors..:beer:
    Feudal Britain needs land reform. 70% of the land is "owned" by 1 % of the population and at least 50% is unregistered (inherited by landed gentry). Thats why your slave box costs so much..
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
  • 352.1K Banking & Borrowing
  • 253.6K Reduce Debt & Boost Income
  • 454.2K Spending & Discounts
  • 245.2K Work, Benefits & Business
  • 600.8K Mortgages, Homes & Bills
  • 177.5K Life & Family
  • 259K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K 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.