I have an order form I'm working on that I would like to be slightly automated. There is an "Part Number" column and an "Item Description" column on the form. I would like to turn all cells under these two columns into drop-down lists. That way, when you click on a cell in the "Part Number" column, you're provided with a list of part numbers to choose from, and the same goes for the description. This is simple enough and is easily accomplished using Data Validation lists.
The problem is that I want to link the two columns so that filling in either cell on a row via drop-down list will populate the other cell with the appropriate information. (i.e. The user fills in the "Part Number" cell and the "Description" cell gets populated. Or, the user fills in the "Description" cell and the "Part Number" cell get populated.)
I know I can get halfway there with VLOOKUP; I can make one of the columns have the drop-down list selection and the other column has the VLOOKUP formula. But I can't have Data Validation on a cell with a formula, so I can't put VLOOKUP in both columns. (This would probably end up creating an endless loop anyway.) Any suggestions on making this work with the cells in both columns?
Related
I have a spreadsheet full of data (simplified example below) that I would like to extract the number in the well underneath of "Gimme the number" and paste it into a new column on a separate sheet (i.e. if "Gimme the number" is in G6, I would like to retrieve the value for G7). I do not have access to Excel VBA and have not used macros in the past. I found some examples linked below, but, from what I understand, they would return "Gimme the number", or "Gimme" not 19, 20, and 21. I am not sure if a pivot table is appropriate, because I only want information from a single column. I will only have up to 11 values to extract at any given time, so I think a formula would do it. I am just having a hard time coming up with one that works. Any help would be greatly appreciated!
Search for a text string and return multiple adjacent values
Return multiple matches with wildcard vlookup
I am not sure I get the question well, but I try.
First add a column right of the column with "Gimme..." values. Name it e.g. "Next_value" in the first row. Put in the formula referencing previous column next row. If "Gimme..." is in the cell (for instance) E6, than your formula in the cell F6 is =E7. Copy that formula into the whole Next_value column.
Than select area of these two columns (Label, Next_value) and apply the filter from the Data toolbar. Use the small buttons with triangles at the top of the column Label to adjust the filter so only "Gimme..." rows are filtered.
Now, copy values of Next_value column where you like. If you want just the references, use Paste special function from the Home toolbar and click Paste link button.
I have the following data:
- Article Excerpts in Column D (D4:D1000)
- Topics in cells AE3:AU3
- Either "Yes" or "No" in every cell under the AC:AS columns (AE4:AU1000), based on whether the Article Excerpt in that row includes a keyword related to the header topic in each column.
I am looking for a way to create a Dropdown from which I could select a Topic and have all the Article Excerpts that are marked as "Yes" (in the relevant Topics column in the AE:AU range) show one under the other in the column next to the Dropdown.
Example:
I select Productivity (Topic) from the Dropdown in cell A4 and B4:B10 returns the 7 Article Excerpts that are marked as "Yes" under the Productivity header (AJ Column).
Hopefully that makes sense and is possible..
P.S. Looking for guidance for this to be used on either Excel or Sheets, doesn't matter which.
Edit: Sharing a link to a Google Sheet sample but again, guidance on either Excel of Sheets would be equally helpful. https://docs.google.com/spreadsheets/d/1tCijce7F7H6zs-8VFzJX4A5Jy8IJ8focadj754XGIIg/edit?usp=sharing
Right so just to not leave this open, I ended up solving this on my own by researching the web and combining a couple of formulas.
I created a new sheet ("Search Tab") with a dropdown menu (data validation) in A2, that is based on the Topics columns headers. All the actual "raw" data is now in a separate sheet named "All Data".
In the Search Tab, in Cell A5, I entered this formula:
=filter('All Data'!D4:D1000,(offset('All Data'!AE3,1,match($A2,'All Data'!$AE$3:AU$3,0)-1,997,1))="yes")
This basically filters the cells in column D that are in the same rows as cells that have the text "yes" in a specific Topics column (range AE4:AU1000) that matches the text selected in the dropdown menu in Cell A2.
It was very confusing to write so I can imagine it must be confusing to read, and not really sure how many people will come across such a need, but didn't want to leave this unresolved.
Hopefully this is an easy one. Basically I have a list of item numbers as well as a list of their descriptions in the adjacent column, (Call it "Item numbers" from A1 to A20 and "Item Description" from B1 to B20). So I have created a drop down for the Descriptions in column B and I want it to automatically fill in the correct Item Number in the adjacent cell in column A. So i have created a separate table with the corresponding Item Numbers and Descriptions next to each other. Yet, I can't seem to get a proper formula to reference the original A and B columns. My research said the Index formula could do it, but I'm not sure. Furthermore, I'm open to a more simpler way as well.
Thank you for any help
I thought you could do this with a VLOOKUP, but it can only be used to search in the first column (A). So you have to combine INDEX and MATCH:
=INDEX($A$1:$A$20, MATCH(E11, $B$1:$B$20, 0))
where E11 is the cell with the dropdown.
I have an issue regarding Google Sheets.
I have a spreadsheet in Google docs that i have copied from an excel spreadsheet that I created. What I need to figure out how to do is make a combo box that that when I select an option in the list it changes the value of another cell from a 1 to 2 or 3 or 4 etc.
I have this working in excel but cant seem to figure out how to do it in sheets.
My question is, does any one know of a way to do this? Is it even possible?
Maybe I am misunderstanding your question, but it seems to me that what you want can be achieved without any scripting (though it IS possible to script the whole thing, too):
For the "combo box" cell, add Data Validation selecting "List
from a range" or "List of items" under 'Criteria' as appropriate,
and "Reject input" option in 'On invalid data' section. This will
make the cell show a drop-down selection of items when you click on
the little arrow now displayed in the cell.
In the other cell (the one that needs to change value), enter a
formula that changes the cell value based on selected "combo box"
cell value. Depending on how big your list of items in the "combo
box" cell is, you can use either a simple IF() formula, or go for
a VLOOKUP() (if data validation items are coming from a range in a
spreadsheet), or a combination of them.
For example, based on the sheet as in the screenshot below, cells C1:C6 have Data Validation rule set to range F1:F6, and cells D1:D6 have the formula =IF(NOT(C1=""), VLOOKUP(C1, $F$1:$G$6, 2, FALSE), "DEFAULT VALUE") (obviously references to C1 changed to corresponding row of column D). When a value is selected from a drop-down in cells C1:C6, corresponding cell in column D changes its value to the one in column G matching selected value from column F. If no value is selected in cells C1:C6, corresponding cell in column D show "Default value" (which can be whatever you need).
I have an excel sheet A in which I clicked on a dropdown icon in a cell and the list of all the people in another data excel sheet B which I referenced to appears. In that data excel sheet B, each row is unique to each person with attributes of that particular person like identification number.
So when I clicked on the cell and selected a name from the dropdown list, I want the next cell to show the identification number of selected name. How do I go about doing that? I have no idea how to start.
Try combining Index and Match to achieve the reults you're looking for.
This way you dont hit the vlookup limitation of only being able to return values to the right of the lookup.
=Index(SheetB!A:A,Match(SheetA!A1,SheetB!B:B,0))
Assumed:
Sheet A's dropdown is in cell A1
Dropdown's Value needs to be looked up in column B of 'Sheet B'
We want the corresponding value from column A of the lookup in Sheet B to be returned.
Update the formula references, and this should get you on the right track.