I am using google sheets to do the following.
Sheet 1 : 1 column for each person who needs access to the file. Each column's cell has a dropdown menu so people can select what items they have.
Sheet 2 : A list of every item in column A, columns B through G are the names of the people.
What I am trying to do is to have on sheet 2, the words "YES" or "NO" appear under each person's name if they have selected the item whatever the order.
So if Person 1 picks in the dropdown of sheet 1 that they have Item 1, Item 3, Item 2 in this order, I want sheet 2 to show the "YES" or "NO" mention. I don't want the order of the items in the list to be an issue.
So far, I have tried these 2 methods :
=IF('Sheet1'!A2:A25=A2;"YES";"NO")
=IF(RegExMatch('Sheet1'!A2:A25;A2);"YES";"NO")
These do not work as the items must be selected in the same order as they appear in the second sheet. Is there another function that can validate a list in any order and apply the appropriate value?
Thanks ahead!
Jason
Edit : https://docs.google.com/spreadsheets/d/1cNn7G9x9o56d_9qM18s3AULkhpfOV5Y-b55vycCUyLY/edit?usp=sharing
Sheet2!B2:
=ARRAYFORMULA(IF(ISERROR(MATCH($A$2:$A$100;Sheet1!A2:A25;0));false;true))
MATCH Sheet1A column against Sheet2A column
IF MATCH returns error, FALSE, else TRUE.
Related
I'm trying to create a sheet where it will automatically fill out columns based on their role.
I have here Sheet 1, the dump where players' name will be placed and a dropdown of their roles.
On another sheet (Sheet 2), I have 2 columns, of which I need to sort if they are a player (Rank 1 to Rank 5) or a setter.
I am trying to return the values of 'Name' to its respective column on Sheet 2. I tried using arrayformula with ifs but it just returns false. Is there a way for me to do this?
Here's a sample file: https://docs.google.com/spreadsheets/d/1Qkk9a3r3xJbRgqJfKQKGN8vSrAUz259D5ICuf4bAAaU/edit#gid=1063674487
Filter by Rank or Setter:
=FILTER(Sheet1!A2:A10, Sheet1!B2:B10="Setter")
For rank, try <>Setter
In my sheet I have checkboxes and item names next to them. Once I check a checkbox, the item name is displayed in the main sheet in column C and the belonging icon in column B. Column E and F are for the buyer name and the price.
Issue is, since the items are automatically sorted A-Z, the buyer name and price for alot of items messes up once new items are added.
For example an item that starts with a "G" moves automatically one row down once another item is added that starts with any letter before "G".
Is it possible to sort the list by order of addition of the checked checkboxes?
https://docs.google.com/spreadsheets/d/1yKYFnWgJN823bd6PjDy-Ozi20gF2UckEUK9I3CXgerI/edit?usp=sharing
I created a dropdown list with a range in Sheet2 in Google Spreadsheets.
The dropdown is filled with a bunch of names.
When I select a particular item I want to update another cell next to it with the data that is on Sheet2 from another column.
For example Sheet2 looks like:
id,name,date
1,John,2015-04-29
2,Adam,2015-03-01
I select John in my dropdown list and I want to display the "date" column of John in another cell on Sheet1.
Assuming John is selected in C3 and your name/date data is in a range named NamedRange1 please try:
=vlookup(C3,NamedRange1,2,0)
If you wanted ID VLOOKUP would not be suitable as it does not "look to the left" and the conventional solution would be an INDEX/MATCH combination instead.
I'm trying to keep track of inventory and ordering for some products. Once a product's inventory hits below zero (-1), I want it to add it to an "order list" on another sheet. I've provided a 'dummy' copy of my spread sheet to show what I need.
Dummy Sheet
I have the sheet currently set up to keep up with the inventory. Once a decal is sold, it changes the inventory to the correct number on hand in the INVENTORY page in column E. Right now, if the inventory goes under 0, it flags the decal with ORDER in the next column. What I want the sheet to do now is, once the inventory for a decal reaches -1 in column E, I want it to pick up the decal "name" from column A in the INVENTORY page and add it to the list on the "To Order List" page in column A.
I'm sorry if that's confusing.
Thanks!
You can have formulas on the sheet C for each item of your list which copy that item's name if its quantity is below 0:
=IF(A1 < 0, B1, "")
I need to populate a drop down list in a cell (let's say cell B2) of Spreadsheet A (using data validation) on basis of data located in Spreadsheet B (range - C3:C15).
How do I do that? Googled this for several hours - no luck.
Thank you.
Getting the items from another workbook, as opposed to another sheet in the same workbook is similar. It's a two-step process. First, you need to import the data you want to use for the validation items into the workbook where you want to make use of it, then connect it up as described in #uselink126's answer.
An example: Workbook 2 contains a list of fruit names in no particular order. The list has been assigned a named range Fruits for readability, but this isn't necessary. Workbook 1, Sheet 1 has a column of cells where we want to populate a drop-down with the items from Workbook 2.
Step 1 - Importing the data
Add another sheet to Workbook 1 and insert the following formula into cell A1:
=ImportRange("<key>","Sheet1!Fruits")
where <key> is the unique ID Google docs assigned when you created the spreadsheet. In the example, the items are sorted into alphabetical order as part of the import, and to do this you would enter instead:
=Sort (ImportRange("<key>","Sheet1!Fruits"), 1, true)
The 1, signifies column 1 is what to sort by, true means sort ascending. The cells in column 1 should populate with the sorted fruits.
Step 2 - Point the data validation to the imported list
On Workbook 1, Sheet 1, Select the cells you want to have the fruits as their drop-down data source.
- Right-click the selection and click on Data Validation from the menu. Set Criteria to List from a range and enter Sheet2!A1:A20
That's it. The drop-down chevrons should appear in those cells and when clicked the list of fruits should appear.
Note that this is "live" - adding an item of fruit to Workbook 2's list will also magically add it sorted in the drop-down list.
The format to access cells from another spreadsheet in Google Sheets is:
SheetName!CellAddress
For example, let's say you have a Google Sheet that contains 2 spreadsheets named: Sheet1 and Sheet2 (The names are listed on the tabs at bottom left hand side of each sheet).
In Sheet1 if you wanted to access cell B2 in Sheet2, you reference it by inputting: Sheet2!B2
In Sheet2 if you wanted to access cells C3:C15 in Sheet1 , you reference those cells by inputting: Sheet1!C3:C15
To specifically add cells from another sheet to a dropdown:
1) Select the cell you want the dropdown in
2) Right click on the cell and select Data Validation
3) In the dialog box, click the grid image in the Criteria input box
4) This will bring up the "What Data?" dialog box
5) Click on the tab for the sheet you want to access
6) Hold down shift and click on the cells you want to select (you will see the cell addresses show up in the input box in the "What Data?" dialog)
7) Click OK and you are set. The data will update if you make changes in the source sheet.
More info: https://support.google.com/docs/answer/186103?hl=en
Similar to rossmcm's answer but with a few tweaks because his answer didn't work for me:
=IMPORTRANGE(spreadsheet_url; range_string)
Where spreadsheet_url is The full URL of the spreadsheet from where data will be imported, and range_string a string, of the format "[sheet_name!]range" (e.g. "Sheet1!A2:B6" or "A2:B6") specifying the range to import.
Example:
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/1EwEn_2dSbgAlR7jJ7UT_MyE3h1-Biq3qoovfIGUnVlo/edit#gid=0", "Sheet1!A1:A7")
More info from Google DOCS Help!