Excel Lenovo Dropdown without VBA - excel

Are there any ways to add lenovo dropdown in one cell based on what user put in this cell without VBA?
For example, dropdown options: {"abc","bcd","cde"}, if user input "a", then dropdown will be "abc" only.

You mean you want a searchable drop down list and that without VBA. There can be two ways your search will take place
either
it will filter all data having a which I feel is a better option
OR
you just want to check if the fist character of ur data starts with a which is very simple by checking =left(text,1)="a" test.
But that is just the logical test involve. The real challenge is to should know how u can create a named dynamic range which only will pave ur way to searchable drop down. U said to avoid VBA. The video m referring to is without VBA.
https://www.youtube.com/watch?v=8z1g1mqXyrk

Related

Excel: Data Analyzing and Drop Down Options

Trying to create an excel spreadsheet which will allow me to select an option at the top of the page (a dropdown) which will be a list of names. I then want a grid below to be able to show (as an example) an individuals results over a month. This is a preference as I didn't want to have to go through multiple pages to view individual information and rather see it all in one location.
Thank you ! :)
Use a data validation linked to the range of student names on another sheet and then an INDEX, MATCH or VLOOKUP formulas to populate the table from the other sheets..

Is it possible to base data validation on a string in a single cell in excel 2010

I am building a multilevel dependent dropdown structure in Excel based on a parent-child structure. Building this with vba is not a problem but the problem is reopening the file. It removes the validation because they have too many characters (more than 255?)
The generated validation strings are too long for Excel to store so they are removed after reopening.
A solution could be to write the validation string in a cell and base the validation on this cell value. Only problem is when i link the data validation to this cell its only one option.
the value in the cell is something like A,B,C,D (already tried with or without "")
Does anyone have a suggestion for an excel formula to use in the data validation to generate multiple options from a string like A,B,C,D located in one single cell.
TNX for the support.
The solution was a bit more difficult.
I was able to make it work but only by combining VBA and Excel Formulas. Also i added a value to the dataSource with both the id and optionid in it.
Excel:
For The data validation i use an fuction who utilizes an offset which is dynamic and based on 2 values. This way i dont get the error that a validation is more than 255 characters.
data validation formula:
=OFFSET(List!$A$2;MATCH(CONCATENATE(V18;"|";E18);List!$F:$F;0)-2;1;COUNTIF(List!$F:$F;CONCATENATE(V18;"|";E18)))
One is for the id and one is the optionid.
VBA:
I now use the on change event to produce the values needed for the dropdowns(data validation) but not letting vba insert the values for the data validation. It gets these values via a pre-loaded array which is started with a workbook_open event. (if this isnt loaded it will load it again).
When i select an item it writes the id and optionid to a different cell. I then use these to produce the next dropdowns etc with the offset function. (one dropdown can result in multiple rows of new dropdowns)
Also added some functionality for delete and change (in the middle) events.
Also the onChange event now triggers the next dropdown and write its value if there is only one option. This will of course trigger the next.

Create Drop-Down List Using a Formula (Without Data Validation)

One can create a list using the data validation tool. However is it possible to do the same using only a formula (not VBA)?
If I have a named range consisting of several cells (Names), I can reference this in another cell (=Names). However only the contents of the first of these cells will appear, and no drop-down menu presenting all options will be created.
Is there a way to do so without VBA and without data validation?
Thanks
As I know it is not possible to create a drop down list with formula instead of data validation but below method may be used to achieve your goal (Method already also mentioned by #PermaNoob in the comment section.)
A page layout like this:
Data validation formula as following:
=IF($A$2="List",$C$2:$C$8,$D$2:$D$8)
And also alert option will be disabled ( to be able to add custom data):
When you write "List" in the cell "A2" you will get the Column C in the drop down list and if you do not write anything in cell "A2" you will get D column in the drop down list.

How to add data to auto complete function in Excel or create a similar VBA that does not clear the undo/redo

I work with a lot of data entry - most of them are repeated that why Auto Complete helps a lot but - it has very limitation.
I would like to ask if there is code that I can add more data into Auto Complete - the data is taken from a range of table - let say Sheets("DATA")range("A1:D100")?
You're in need of a data validation:
Open data tools > data validation
Change the allow option to list
Enter your data either:
As a list with a comma separation e.g. Yes,No,Maybe
Or enter the list / range from excel e.g =Data!$A$1:$A$100
Check the in-cell drop down option.
Data entry is best when done with a Userform.
With dropdown (comboboxes), you can fill them with anything you want and as you type, it autocompletes with anything in the list that's the best match.
This can then type onto your worksheet or wherever.

Hide columns in excel based on drop down list selection

I am wondering if it is possible to hide columns based on the selection of a drop down list using excel.
For example say i have 3 columns( C1,C2,C3) and i have a drop-down list with 2 values(drop1 and drop2). When drop1 is selected from the dropdown list then show C1,C2 and hide C3. When drop2 is selected show all Columns C1,C2,C3 . Does anyone know if this is possible in excel ?
Here's an example of hiding columns via VBA. You'd need to write code much like that.
Mind you, I'm assuming that when you say "excel" you actually mean within the excel application. If you're generating the Excel file programmatically, you could easily use similar code via the OpenXML API.
Yes this is possible (very short answer).
Use VBA for it in which case you will have to link the drop down value to either a cell (and use Worksheet_Change to see if the particular cell has taken the required value for hiding the column or not (in which case hiding should be undone).

Resources