I have a table in google sheets with 4 sheets in the same table. the details table contains the student ID, first name and second name but I would like to lookup the scanned number from the attendance table however the student number needs to match the scanned number.
the student number and the scanned number are both in the attendance table but I would like the scanned number to go into the details table according to the matched student number.
I have tried the following VLOOKUP but I am just getting errors.
=ArrayFormula(IF(LEN(B2:B), VLOOKUP(B2:B,'Student Attendance'!A:F,2,FALSE),))
so in sheet 1 I have scanned number in column B and Student number in column D which is entered through an app. on sheet 2 i have already got the student ID but i would like to lookup the scanned number from sheet 1 and enter accordingly against the correct student ID
I have tried using:
=IFERROR(VLOOKUP(B3:B,'Student Attendance'!A:F,2,TRUE),)
however this is only printing the same scanned number for every unique student number entered.
example data:
attendance sheet:
timestamp, scanned number, class, student number
time/date BARCODE-SCANNED Subject 123456
time/date BARCODE-SCANNED1 Subject 621314
this is all entered through an app so nothing manual here.
details sheet:
scanned number, student number, name
BARCODE-SCANNED 123456 Student name
BARCODE-SCANNED1 621314 Student name
on this sheet the student number and the name is already inputted manually but i would like to get the scanned number from the first sheet according to the student number. at the moment i have only got student number and name in this sheet.
Try
=ARRAYFORMULA (IFERROR(VLOOKUP(B3:B,{'Student Attendance'!D:D, 'Student Attendance'!B:B},2,TRUE),))
The vlookup value should always be in the first column of the lookup range.
Related
I have 2 spreadsheets in Google Sheets.
In spreadsheet 1 - Column A has the User ID (including duplicate ID) and Column B has Names.
In Sheet 2 - Column A has a Unique ID.
I want names to be shown in Column B in spreadsheet 2 (if in 1 User ID there are multiple names and it should show all the names in the unique ID.
I tried the below formula but it is showing the wrong names (names are not matching with the corresponding User ID).
In another sheet I got Unique IDs through: =UNIQUE(Sheet2!A:A) and names through =JOIN(",",FILTER(Sheet2!B:B,Sheet2!A:A = Sheet2!A1))
Attaching screenshots for reference.
Spreadsheet 1
Spreadsheet 2
Thank you
Try below lambda formula-
=LAMBDA(lm,{lm,MAP(lm,LAMBDA(x,JOIN(", ",FILTER(B2:B,A2:A=x))))})(UNIQUE(A2:INDEX(A2:A,COUNTA(A2:A))))
Spreadsheets:
Full Employee List
Offer Tracker List
Look at a list of names in the Full Employee List and see if there is a match in the Offer Tracker List.
If there is a match, I want to pull the value that is in column C (employee number) and write it as a comment in the Full Employee List Column R.
In the Offer Tracker Sheet the Name is in Column F, and the employee number is in Column C
In the Full Employee List sheet the Name is in Column D and I would need to write the employee number in column R, in the same row the name is listed.
I do not have edit access in the Full Employee sheet, so I basically need to put a comment of the employee number so that someone else can write it in officially (facepalm). Therefore, if I can do this via a script that would be great -- or if that sounds like over-engineering I can try to lobby for edit access and maybe there is a much simpler way of doing this via a formula ?
I have 3 tables in 3 sheets. The email column is where the data is identified. Which means the emails will be unique in the expected results sheet after joining
To make a copy of the sheet click here
To view the sheet click here
First Sheet
First Name
Last Name
Email
Phone
Childs First Name
Child Last Name
DOB
Photo Permission
Allergies
Additional Info
Additional Contact
Teacher Name(s)
Sibling First Name
Sibling Last Name
DOB2
Allergies 2
Additional Info 2
Photo Permission 2
How did hear?
Second
Second-First Name
Second-Last Name
Second-Phone
Email
Second-Message
Third
Third-First Name
Third-Last Name
Email
I have tried with
=FILTER({First!A2:B,
VLOOKUP(First!C2:C, {Second!A2:A, Second!B2:D}, {2,3,4}, false)},
First!C2:C<>"")
But I need to ensure all 3 sheets are joined and the expected result look like
Expected
First
Second
Third
There are three formulas in cyan on the tab called MK.Help in this editable copy of your sheet:
This is the one for the second set of names:
=ARRAYFORMULA({Second!A1:E1;ARRAY_CONSTRAIN(IFERROR(VLOOKUP(C2:C,{Second!D:D,Second!A:E},{2,3,4,5,6},0)),COUNTA(C2:C),5);FILTER(Second!A2:E,Second!D2:D<>"",ISNA(MATCH(Second!D2:D,C2:C,0)))})
That do what you're hoping?
I have a Google Sheet file called Shipments that contains shipments delivered to different warehouses, with fields Delivery Date - Company Name - Shipment Type, and I have a sheet called Companies which has a columns Company Name - Membership Status - Rating. All of these values are pulled automatically from a different GSheet, they are not entered manually, so row orders change.
I want to pull the last shipment delivered for a company in the Shipments sheet into a "Last Delivery Date" field in the Companies sheet, so the Companies sheet has the following columns:
Company Name - Membership Status - Rating - Last Delivery
I think I have to do a query or a named range that is something along the lines of SELECT ONE Delivery Date WHERE B (column for company name in Shipments) === A (column for company name in Companies) ORDER BY (last delivery date column) DESCENDING
Not sure how to accomplish this in GSheets, am exploring queries now. Any help greatly appreciated!
You can use this in Companies!D1:
={
"Last Delivery";
ARRAYFORMULA(
IFNA(VLOOKUP(
Companies!A2:A,
SORT({Shipments!B2:B, Shipments!A2:A}, 2, FALSE),
2,
0
))
)
}
Assuming Company Name is in Companies!A:A and in Shipments!B:B, Delivery Date is in Shipments!A:A.
Maybe there is a more elegant solution that uses QUERY. Could not come up with one on the spot.
I have a spreadsheet with 2 main columns.
Column A is the student's name.
Column B is the student's grade.
Other columns (not shown) list various information about the student that the end users input.
End users click on the Data Validation Arrow to select the student in Column A, and the student's grade is auto populated in Column B.
The formula in Column B is:
=IF(A2="","",Index(All!$B:$B,Match(A2,All!$A:$A,0)))
The All sheet contains a master directory of the Students and their Grade level assignment.
The Problem:
When users attempt to re-sort the data using the Sort A-Z menu option in B1, it includes the blank cells in the sort - The blank cells come first, moving all the relevant data to the bottom of the sheet.
I understand that G-Sheets considers "" to be text. Is there another method to write my formula that would keep the Grade column blank, but allow for the sorting feature to function as end users would expect?
You can implement two additional comments where you filter the results before sorting them:
=SORT(FILTER(A2:B,not(B2:B="")),2, true)