how to limit excel column to limited number of words - excel

I'm working with VBA, Excel. I have some set of words, say 10.
When I choose a particular column, then what ever I enter in that coulmn must be from those selected set of words.
It's like dropdown list but I really donot want to use dropdown list. This must be done to a column(or set of cells).

Hey you should be able to do it just like dropdown list but without in-cell dropdown option marked. Its an option that is automaticly marked when you validate column by list in validation form.

Related

How to disable fill handle only for a specific column in Excel spreadsheet?

I have a spreadsheet with multiple columns, some containing cells with dropdown lists.
I want to disable the fill handle functionality where you can multiply cell data by dragging down the "+" sign from the corner of a cell.
I want to do this because my dropdowns in that specific column are populated differently by an id in that row and I want to avoid wrong data insert.
I've found how to do that to the whole spreadsheet but I can't find a way to apply this to a single column.
Simple answer you can't. It is not possible to disable this for only specific cells.
And actually if you disable it in the Excel Options
Application.CellDragAndDrop = False
It will be disabled for the whole Excel application.

ms excel - data validation for 2 drop down list

I'm looking for the solution in excel data validation for 2 drop down list.
When I choose 1st drop down list 2nd drop down list will auto populate the correct value from table. If user choose 2nd drop down list 1st drop down list will auto populate the value also.
Can someone help me on this issue ?
I attach the sample file for my problem.
enter image description here
enter image description here
thanks!
Sample File
Trying to do a two way I don't think is going to work in the way you are trying so I am not surprised the examples you found were for one-way. I am open to being corrected.
You could hack around it for example using two form control listboxes linked to the same cell so a selection in one updates the other.
Then because an item might be out of view listbox underneath have two cells which use the linked cell to index back into the source lists.
In the example above, there are two list boxes from form controls in developer tab (customize ribbon > add developer tab.
Developer tab form control - 2nd from the right
You add two of these in to the sheet.
Right click format control on each one
Set the input range to the range containing your list of values for that listbox and set the linked cell e.g. G1
Ensure that whilst you select different input ranges for each list box, they should have the same linked cell e.g. G1.
Underneath the listboxes put a formula which uses the linked cell G1 to index back into the source lists for each listbox so you can retrieve the selected value and have it visible, in case not visible within listbox.
Example testing:

Excel "true-false" to checked boxes

I have an Excel spreadsheet that I'm generating from a SharePoint dashboard. It's turning my checkboxes in the SharePoint table to "true" or "false" values in the Excel spreadsheet. I wanted to know if it is possible to turn those "true" or "false" values back into checked boxes, with the appropriate check or uncheck option selected.
Any help at all is appreciated!
I strongly advise against using check boxes in Excel if you already have the data as TRUE/FALSE in a cell. Check box controls are meant to be for user forms, and even though they can be placed in the spreadsheet grid, they live in a layer on top of the spreadsheet. Yes, they can be linked to a spreadsheet cell, but this is cumbersome.
Instead of using a macro that inserts a check box for each data row you could use a helper column with a formula along the lines of
=IF([#checkBoxField],"a","r")
Then format the helper column with the Marlett font, which will show the letter "a" as a tick and the letter "r" as a cross.
Applying a formula like this will be much faster than inserting check box controls into each row and linking them to the field cells.
You can add a checkbox over a given cell, then edit its properties (Format Control --> Control Tab) and set its Cell Link property to the address of the cell; i.e. "B2". If you have too many such boolean cells, the task is tedious so you might need to automate it with VBA.
p.s. I agree with #teylyn that this shouldn't be a good choice if you have a huge column of boolean data; it adds too many shapes which is cumbersome. You should use it if the number of boolean cells is rather limited.

Search - autocomplete in drop down list

I have two sheets in Excel:
Sheet A: Drop down list with source from Sheet B
Sheet B: One column with names:
NAMES
James Gordon
Andrea Michel
Third Name
The list is very long, but unfortunately when I click on the drop down list I can't search in the list.
I need to search in the drop down list, or jump to the character which is pressed.
Any suggestion how to start?
I used an embedded combo box in a worksheet to achieve this. I created a named range with the values that I wanted to include in the combo box, then using the properties window input the named_range into the "ListFillRange" property box. This will allow the drop down box to reference this list, however I never fully figured out how to make the named range dynamically update.
To allow the list to search for included values, you need to set the "MatchEntry" property to 1 - fmMatchEntryComplete. This should achieve your desired goal.

How to hide a column in a list, dynamically in cognos?

Actually I'm working on Cognos 10.1 .
I have three prompts (Value prompt) in my report. All the prompts are optional. Based on the selections I wanna show the results. Each prompt corresponds to a column in the list. If the value is chosen in the prompt, it has to show the column. Else, it has to hide the column. We should not use conditional blocks or style variables. Please help me. Thanks in advance.
Yes - Here is how i did this before. I created a prompt page that allowed the user to pick the columns they wanted on the report via check boxes(true/false). Each check box represented a unique parameter name associated with a column you later want visible or invisible.
On the report page, the default state of the list shows all the possible columns. In order to conditionally hide the columns i created a Conditional Style(one for each column) and associated that with the list column/cell. The conditional style basically says hey if my param was not chosen false then set the "box-type to none which means it will not be rendered at all.
You do have to create a conditional style for each column, but when trying to make something flexible/dynamic and easy for the user its worth it. Mine also allowed dynamic sorting/grouping(up to 3 levels) for the same set of columns)
Thanks,
Tim

Resources