Excel enter cell value from a list - excel-2010

I have a budget spreadsheet for simple money transactions. One of the columns is the transaction category (e.g. Grocery, Auto Supplies, Insurance, Entertainment, etc.)
Rather than spell out, let's say, Insurance, in a given cell, I would like a list of possible values to appear, so that I can select one of the values (e.g., Insurance) and have Excel put that value in the cell for me. That way I make sure that Insurance is spelled the same each time I use it.
Is there an easy way to set this up in my workbook, preferably without getting into VBA coding?

You can create a dropdown lists in Excel. What I found from this video:
"
Select the cells that you want to contain the lists. On the ribbon, click the DATA tab, and click Data Validation. In the dialog, set Allow to List. Click in Source. In this example, we are using a comma-delimited list. The text or numbers we type in the Source field are separated by commas. And click OK. The cells now have a drop-down list.
"

Related

IMPORTRANGE + extra column does not behave as table

I am creating a sheet for our homebrew RPG.
I'm importing a range of data (spell list) in the character sheet, via IMPORTRANGE.
I'm using a True/False checkbox to add the line to a table in another sheet.
=IFERROR(QUERY(DataSorts!$A$3:$Q$1001;"select " &IF($E$15;"C";"B")& " where (A=TRUE)");"")
I want to use the imported datas as a table WITH the checkboxes column, so my players could filter or classify their data. The checkboxes need not to be on the original spell list so any player could have their own selected ones.
I need to Import the data as the original spell list is expanding and I need to update it regularly.
However, if I update my original sheet comporting the speel list, any add or substract of row will break the checkbox usage (because they wont move where the imported data will, thus the spells selected won't stay the same).
How can I link these 2 parameters ?
Use an index to keep the order in the imported data SS, and then perform the combined VLOOKUP+IMPORTRANGE.

Apply dynamic hyperlink to the values in a dynamic dropdown in excel

I have two worksheets in a Google spreadsheet.
Sheet-A: Treat this like an “order booking” page. Consists of 10 empty line items, where the user can select an item from a dynamically generated dropdown list. The values in the dynamic list come from Sheet-B’s 1st column range
Sheet-B: Treat this like a “menu details” page. It consists of Menu item name, description, ingredients, etc
What I want to do is:
When users try to place an order, they select a menu item from the dropdown in Sheet A.
If they want to know more about an item, they should click on the hyperlink on top of the dropdown value and be navigated to the respective menu item description in Sheet B.
To summarize, the dynamic values coming in the dropdown list should hold a hyperlink within itself which points to where the value is coming from.
This is straightforward, use the HYPERLINK() function and either the CONCATENATE() function or use the concatenate operator "&". Here is an example from one of my projects:
=HYPERLINK(CONCATENATE("https://tracker.telenetwork.com/admin/reports/SCReport/report_emp.asp?emp=",$B$4,"&nt=",$A$4,"&sd=",A7,"&ed=",B7,"&dur=99999&per=15&client=",C4),"Call Recordings")
I built an example for another person asking a similar type question, between that example and the formula above you should be able to figure out how to implement for your specific situation. Feel free to make a copy of this sheet:
https://docs.google.com/spreadsheets/d/1qbLOjTdzISICTKyUp_jK6gZbQCt-OwtDYYy3HNJygeE/edit#gid=795322028

Modify the auto-complete behavior in cell dropdown

I'm building a searching sheet, which take a dropdown cell as input data. User can select from the list, or type in the key word. Searched data will be populated by rows/column with my query formula. The search result itself works just fine.
However, the drop down list doesn't.
Here's a picture of my search.
As you can see in the picture, autocomplete would only populate 6 items, while my search query produce much more, which is exactly what I need. It's clear enough : Autocomplete compare the whole text, not word - by - word.
Is there anyway to change this behavior ?
My sheet is for other people to look for a specific item. I cannot expect them to know what I have entered in my database and force them to search by those exact keywords.
Anything from script to formula is fine with me. I just need at least, a lead..

Delphi Combo Edit from CSV File

I have an application that will load a CSV file containing two columns. At program load I need to have the first column as items in a combo edit control. Once the user selects (or enters a value) I need to populate a label with the value from the second column. My thought was to use an in memory data set, FDMemTable which would be loaded at form create. Then once the user selects, or enters an item, I would run a query to pull the description. I've tried but have been unsuccessful with the simple loading of the combo edit.
Is this the best way to achieve the desired results, and is there samples similar to what I'm looking to do?
Read the file.
Parse it into an array of name/value pairs.
Populate the combo drop down list with the names.
When the combo's selection is changed to a new index, read the value from the array using that index. Update the label.
Database tables and queries seem somewhat over the top for a single simple task like this.

Why would a SharePoint lookup menu require a double-click to select an item?

I have a SharePoint feature which programatically creates 3 lookups in a custom list, one from each of 3 different lists via extremely similar CAML markup.
The only differences in the CAML are the List, ID, Name, DisplayName and StaticName properties yet one of these lookups looks slightly different (has a slightly more "modern" drop-down arrow) than the other two and this same menu requires I double-click in order to select an item instead of single-clicking as I do with the other lookups.
Might anyone have seen this before and have an idea of what I might look into to make this lookup operate as a single-click menu?
The style of dropdown displayed is usually related to the number of items, although it also renders as a standard select element when viewed in firefox.
For any other field type it would make sense to create a custom field control, but due to code that expects things to be named "Lookup", lookup fields are next to impossible to extend.
The best way to customize a specific field is probably with javascript/jquery. When you click on the dropdown arrow, ShowDropdown (in core.js) is called. This creates a select element with options set from the pipe delimited list in the choices attribute of the textbox.
Add some code to the page so that on load EnsureSelect and FilterChoice or similar are called to create the select element. Set properties on the textbox and select elements so that the textbox as hidden and the select element is a visible dropdown. Have SetCtrlFromOpt called on change rather than on blur/double click so that the control that the server will read and save is properly updated.
The same approach could be used to keep the combo box but add a click event to set the value rather than requiring a double click.
How many items has the source list of every lookup field?
Lookup fields shows a "Combo" when the source list has 10 items (I'm not sure if 10 item is the exact limit). When the source list has more than 10 items the lookup field shows a "ListArea" control that works as you said.
I have exactly the same problem. One difference I have noticed is that the one listbox that requires a double-click is a lookup field, whereas the one that doesn't is a choice field with pre-populated choices. Don't know if that helps.

Resources