Thanks in advance My question is detailed described below
I have two columns named as User Name and User Id in sheet A and Sheet B
Sheet A User Name Column is dropdown which I am referring from SheetB, if the user select any user name from SheetA dropdown, the associated User Id from Sheet B will be displayed in SheetA user Id column
This is sheet A:
This is my sheet B:
On the SheetA, cell G2, you can use the following formula:
=ArrayFormula(if(len(F2:F),vlookup(F2:F,'Sheet B'!A2:B,2,false),))
It will automatically update for the cells below in that column
For more information, see VLOOKUP
Related
To describe my problem here is my sheet
Master sheet
Here, From Column E onwards there are different attributes for each of the items in column A.
Now, I have a subsheet based on the type of the items as listed in column B, here
Subsheet
Here we can see from Column C onwards attributes of the items in column A. In this case, the other attributes from the master sheet above that are not mentioned do not apply to these items and therefore will be blank in the master sheet.
My problem is to populate the attributes of the corresponding items from the subsheet that are in column C to F, in the master sheet where all the attributes are listed. I only want to add those values that exist in the sub sheet and leave the rest blank.
Here is a sample sheet with the desired output. There is a Master sheet and an Subsheet named DEF. The Master sheet has to lookup the values from the Subsheet and filled the appropriate cells based on the reference from column A and B of the Master sheet.
https://docs.google.com/spreadsheets/d/1lNPPhTr7_N0N8CA7BLyO9JhYGd1Hx0c6Q0Uq4Wdt_GY/edit?usp=sharing
try in D2:
=INDEX(IF(A2:A="",,IFERROR(VLOOKUP(A2:A&B2:B, {DEF!A:A&DEF!B:B, DEF!C:Z},
IFERROR(MATCH(D1:P1, DEF!A1:Z1, 0)-1, 100), 0))))
I have a google sheet with all current staff information. I have a second sheet for when some piece of data needs changed. Last name, Location, job ect.
on second sheet I am looking to have someone:
Enter the user's first name in column B,
and or Last name in Column C,
I would like a drop down box generated in column D from the given info to contain all usernames found in the sheet with current information for all staff that have the given first and or last names provided.
Once a username has been selected, I can get all the pertinent data from that user with a vlookup from the sheet containing all staff info. For example if someone typed Scott in column B, I would like a drop down generated in column D with all staff that have a first name of Scott. Likewise if the last name was supplied and of course if both first and last was supplied.
Validation need to be done that's it,
1) Go to Staff Changes'!B2 and Data Validation> List from range & choose range from 'Staff Info'!B2:B
2) Select cell'Staff Changes'!D2 and Data Validation> List from range & range will be filter formula i.e 'Staffing Changes'N2:N.
Result
Few tweaks in vlookup:
I am not sure if you need username column twice if you don't need then change your vlookup formula from =vlookup(D2,'Staff Info'!A:K,10,0) to =VLOOKUP(D2,'Staff Info'!$G$1:$K,2,0)
Please provide access to trix in future so that changes & result can be shown in it.
UPDATE:
Use data validation as before & hide filter colum or use seperate sheet for filter formula & use query function in cell A3 =QUERY('Staff Info'!A:J,"select ' ',A,F,' ',' ',G,' ',I,' 'where A='"&A2&"' AND F = '"&B2&"' LABEL ' ''Date',' ''Current Last Name',' ''New Last Name',' ''New Building',' ''New Classification'",1) result wil be something like this
QUERY
I have 2 Google Sheets. Now in excel 1 The name column in sheet 1 is A and the address column in Sheet 1 is B. Now I have another sheet which already has these data, name and addresses etc. Now, what I want to do is when I write the name(A) in sheet 1, I want the column B(address) in the same sheet to automatically lookup the sheet 2 for the corresponding address to name (A) and show the address in that cell.
Please help.
this is what you need: =ARRAYFORMULA(IF(LEN(A2:A); VLOOKUP(A2:A; 'Tab B'!A2:B; 2; 0); ))
which means that IF ID from Tab B is found in Tab A, formula will return 2 (second) column from range A:B of Tab B in sorted order based on IDs in A column of Tab A - hence that 0
here is demo spreadsheet: https://docs.google.com/spreadsheets/d/
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.
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.