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.
Related
I have two columns Product 1 and Product 2, both of which lets user select from a dropdown list. But I don't want to show the same value in Product 2 if the user selected it for Product 1 in the same row.
The formula I am using for the drop down list is:
='Details'!$C$2:$C$500
If helper columns are allowed drop this formula into D2 and drag down:
=IF(C2=PRODUCT1,"",C2)
I don't know what cell the first dropdown is, just plug that cell ref in where I said PRODUCT1
, make sure to use $ to lock the cell ref. (ex. A1 become $A$1)
Then select your second drop down and set its data validation to ='Details'!$D$2:$D$500
It will leave a blank where the value used to be.
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.
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.
I want to add text to cells in Column C based on what is entered in Column B. Column B AND Column C are both drop down lists. So, if in Column B I have chosen Coach Substitution from the drop down list, I need the word 'SUBSTITUTION' to appear in Column C (it is in the drop down list for Column C), if any other choice is made in Column B from that drop down list, Column C remains blank and ready to accept a choice from THAT drop down list. I keep getting error messages about "You may not use reference operators (such as unions, intersections, and ranges) or array constants for Conditional Formatting criteria.", OR it won't alter anything at all. YIKES! Help!!??
The below requires the C cell or cells to be populated (won't switch from a validation entry of blank to SUBSTITUTION).
Perhaps what you want is to select the relevant ColumnC cells (say C1 or starting at C1) and Format - Conditional formatting..., Custom formula is and:
=B1="Coach Substitution"
with formatting of Custom:
"SUBSTITUTION"
Done.
I've a first table (let's call it A) with a column URL which contains some values which are not unique.
There is a second table (let's call it B) which is similar to A.
I want to evidence the records of A which have an URL that is not on B.
Say, your columns A:A and B:B have URL lists you want to compare. Add column headers in top row, if you have none. Then write this formula in C2 and drag it down:
=COUNTIF($B:$B,$A1)=0
Then select the whole column C:C by clicking on gray C header above topmost cell and apply filter by pressing CTRL+SHIFT+L. Filter by TRUE - these are the values you need.