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
C_Mababejive
Posts: 11,668 Forumite
in Techie Stuff
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 !
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..
0
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
0 -
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? tnxFeudal 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..0 -
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.0 -
If you're using a named range the substitute the name for E38:F450
-
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..0 -
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..0 -
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 wrote: »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..0 -
WaywardDriver wrote: »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..0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
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