Data validation in excel, automatic value insert in adjacent cell - excel

is it possible to add data validation dropdown in column A, whereas the adjacent cell in column B would automatically be filled with a set value corresponding to the choice made in the column A dropdown?
I am not looking for another dropdown, but a preset value.

Related

give drop-down list if condition not matched

wanting to use an IF statement (or whatever will do the job) to populate a cell (cell B) based on what was entered in another cell (Cell A), but if Cell A doesn't = x, then I want users to be able to select an answer from a drop-down list
e.g. =IF(B23="Softphone", "Yes", drop-down list)
So if Cell A = Softphone, then Cell B is auto-populated with 'Yes'. If Cell A = anything else, then Cell B becomes a drop-down list
Is this possible?
I may be wrong but I don't think you can do that with IF statements i.e. returning a drop-list if the False condition is returned in your IF statement.
However, you can work around this with a slightly different layout on your worksheet. Try this formula:
=IF(B23="Softphone", "Yes",IF(D23="","Select option in column D",D23))
In column D (using the Excel ribbon, select Data and then Data Validation), create a drop-down list of what you want if it's not "Softphone" in column B.
Then, if the input in column B isn't "Softphone", it'll ask the user to select an option from the drop-down list in column D. And if it's blank - it'll show show as a default of 'Select option in column D' like a prompt to the user.

Excel vba : Synchronize two drop down lists in the same worksheet

I'm starting to use Excel VBA to create drop down lists using data validation but i would like to synchronize two drop down lists in the same worksheet.
I created the first list which is 1, 2, 3, 4, 5 and I created the second list which is A, B, C, D, E
My purpose is when I choose Item number 3 from the first list (which is 3) automatically the Item number 3 (which is C) from the second list will be displayed.
I tried to use the INDEX and MATCH fct but without success could you please help me with that
Thank you for your help
Hichem.
If you have a data validation drop-down in a cell, you shouldn't have a formula in that cell at the same time. As a rule, a cell should either be calculated or used for data entry, not both.
Using a formula, you can put the values you want to calculate in the second cell into the spreadsheet somewhere, if they are not already. Then you can use a simple Vlookup or Index/Match. For example, all drop-down list options are stored on a sheet called Setup. The values for the second data validation list are in the cells C2 to C6. The values for the first data validation list are in cells A2 to A6. You can now use the value selected in the data validation list like this:
=index(Setup!$C$2:$C$6,match(Sheet1!C2,Setup!$A$2:$A$6,0))
In words: in column A of the setup sheet, find the value that is the same as C2 in Sheet1 and return the value from column C of the setup sheet in the same row.

show only values if checkbox value is true

I have data list in column B1:B4 as below
Section_A
Section_B
Section_C
Section_D
in-front of these values in column A1:A4 I have 4 check boxes placed.(form control type not active X).I want generate only clicked values to column C.Example:After first check box and third check box clicked Show Section_A and Section_C.(In column C need this result without blank cell between Section_A and Section_C.
You can use LARGE method for which you would need to add one more column.
1st: link your checkbox with cells in column A so that respective cell will give TRUE or FALSE when the checkbox is ticked or unticked respectively.
2nd: Move your column B data into column C and in front of each cell in column A, Assign weight in column B(You can Hide this column If you don't want this to be visible).
3rd: Use Large Function in column D as shown in Below SS.
change the color of cells in column A to white and Hide Column B, it would look something like this.
and your work is done.

Filter range in a formula

Is it possible to filter a range in a formula ?
E.g., I have cells with data validations (dropdowns). Data validation refers to named ranges. Named ranges are based on 'tables'.
First dropdown is product. If first dropdown has selected a value (e.g., wheels), the second dropdown (dimensions [of wheels]) should show only wheel dimensions and not all dimensions of all products.
(Of course, my dimension table has also the column product.
I'd like to filter a named range in the formula so I can set it in the data validations. Ideally, I don't want to use macros.
You can achieve this with helper table. For each additional hierarchy you will need to add additional helper table. So for instance if have first drop down in cell G1, and helper table in columns A:B, select cell H1, set data validation ==> list, and in formula part enter this formula =OFFSET(B2,MATCH($G$1,$A$2:$A$3000,0)-1,0,COUNTIF($A$2:$A$3000,$G$1),1)
Now drop down in cell H1 id dependent on drop down in cell G1.

onclick copy value to next available cell in column

I have a dropdown list of items which are in a table with corresponding values. Below the dropdown list I have a VLookup to find the value of the item. I need to keep a count of the total value that these are worth. Once the dropdown list is selected I need the value of the VLookup copied and pasted into the next available cell in the column. Complicating this is that each column corresponds to a different person who can have items added to their total in any order.
When column B has an item selected I need to copy the value to the bottom of column B, similarly for column C, etc.
I know I need to do use onclick function but everything I have seen copies onto the next available row without keeping column discipline. Would I need to name each column and onclick function separately or is there a neater solution?

Resources