Compare missing rows in sheet2 from sheet1 and show them in sheet3 with condition - google-sheets

Sample test sheet: https://docs.google.com/spreadsheets/d/1B9ESm5JFdHF9U5m2gBKriohS_CUDnt7CvBQwiWbjeAw/edit?usp=sharing
I have 2 sheets: population and contacted which are both manually populated by a user. I want to compare all the missing ID in contacted that are not in population, with a condition that only people with status that contains alive to show up in the 3rd sheet aka "need to contact" sheet. It is assumed that only people who are alive are added to contacted sheet so there is no need to validate if a person is alive if it is present in contacted sheet.
The current formula I am using is =ArrayFormula(FILTER(Population!A2:B,ISERROR(match(IF(REGEXMATCH(Population!C2:C,"Alive"),Population!A2:A,""),Contacted!A2:A,0))))
It is showing all the rows not in contacted but it in the population sheet, the problem I am having is only trying to print out the people alive so for my sample sheet there only needs to be 2 rows present in my needs to contact sheet.

use:
=FILTER(Population!A2:B800, NOT(COUNTIF(Contacted!A2:A800,Population!A2:A800)),
REGEXMATCH(Population!C2:C800, "(?i)alive"))

Related

Display all rows in a Sheet iff cell in a separate Sheet is true - Google Sheets

Situation: I have 2 sheets where I am working in.
Sheet1: Has the point metrics of all the Google Form responses for each person. There are 4 Forms. This sheet has 4 columns with that users' score and one Boolean (True/False) column called "Passed?" that's meant to identify if the user scored higher than 75% (among many other metrics that I'm leaving out). Example below.
Sheet2: Is supposed to only list the names of the highest point scorers, so I can send them a reward or special message. I do this process manually currently.
Question: How might I be able to pull in every row of cells to access just specific cells in that row (ie. "Email" & "Score") of a different Sheet, based on a true or false column? How can I automate this process of identifying the winners and putting them in Sheet2?
Expected Result:
In Sheet 2, I include the email, first name, last name, and score.
I just have a general idea of how I want to do it:
First fill in "Email" based on "Passed?" column in Sheet1, then repeat for "Score".
Then for the "names" columns, I do an index+match to get those based on "Email" from one of the Form responses sheet linked in this Spreadsheet.
Any help would be greatly appreciated.
Based on the layout of your sheets in screenshots; you can try:
=QUERY(IMPORTRANGE("SPREADSHEET ID","Sheet1!A:L"),"SELECT Col2,Col10 Where Col12=TRUE")

Importrange Query Google Sheet Include SheetName

I'm using Query and Importrange to pull details from other tabs on a Google Sheet.
The other tabs are linked to individual Google Forms.
I'd like to include the name of the sheet the data came from in the query but can't figure out a way to do this.
Any ideas?
I did try having a column on each sheet that contained the name of the sheet i.e. a column on sheet1 where all the entries are sheet1. Then with the query have that column included in the selection.
However, when new Google Forms submissions are made, a new row is added (I think) and the column that contains the sheet name now has a empty entry where the new row was added.
I'm not able to share the sheet as it contains student info from school and it's not-shareable outside my organisation.
Most likely you are using a drag-down style formula within the form responses tab which would cause this rows not aligning with your already included formula as & when new responses pop in!
You could just use an arrayformula accommodated in the first row_cell itself as shown in the screenshot and it should fix this thing. Please do test it out and let us know if its solved or aint.
=INDEX(IF(LEN(A:A),"SHEET 1",))

Google Sheets - Grab data from a separate sheet and add it to a master sheet

I have a Google Sheet that has a main master sheet, with a column for users to fill in their Name to show they are "working" on that row, then that row gets populated to their own tab based on a =QUERY(Master!A3:AA,"select * Where L='Name'") for each of the users' tabs, there is 8 total tabs where users are updating information. This is already quite a bit of processing on Googles part, so I am trying to generate a separate Google Sheet that pulls in the information that the users are entering on each of their tabs so the management can monitor that sheet for updates and then both sheets will run a lot faster/smoother.
I have tried using a VLookup with this syntax: =vlookup(A3,importrange("sheetID",{"Name1!$A$3:$N";"Name2!$A$3:$N";"Name3!$A$3:$N";"Name4!$A$3:$N";"Name5!$A$3:$N";"Name6!$A$3:$N";"Name7!$A$3:$N";"Name8!$A$3:$N"}),12,FALSE) which gives me an #N/A Error, cannot find Value '1' in VLOOKUP evaluation.
I have also tried using a =QUERY({importrange("sheetID"x8 with the ranges)}, "Select Col12,Col13,Col14 where Col2 matches '^.\*($" &B3 & ").\*$'")
That only returns headers, I am trying to get the query to basically find the unique key in Column A then spit out what is in Col 12-14, but that doesn't seem to work either. Columns 1-11 are static, but Columns 12-14 are what I am trying to populate for the management, which is the work that the staff is inputting on each of their tabs.
I can get the query working if I keep it on the same worksheet as the one the staff is working on, but then it bogs down the whole sheet so I would like to keep it separate if possible. Any ideas? I can't provide a sample sheet at this time since it has financial info on it, but I can add more details if I know what to look for.
your formula should be:
=VLOOKUP(A3, {
IMPORTRANGE("sheetID1", "Name1!A3:N");
IMPORTRANGE("sheetID2", "Name2!A3:N");
IMPORTRANGE("sheetID3", "Name3!A3:N");
IMPORTRANGE("sheetID4", "Name4!A3:N");
IMPORTRANGE("sheetID5", "Name5!A3:N");
IMPORTRANGE("sheetID6", "Name6!A3:N");
IMPORTRANGE("sheetID7", "Name7!A3:N");
IMPORTRANGE("sheetID8", "Name8!A3:N")}, 12, 0)
keep in mind that every importrange needs to be run as a standalone formula where you connect your sheets by allowing access. only then you can use the above formula

How to automatically add a value to sheet 3 if not found in sheet 1

can anyone tell me how to add a value to sheet number 3 if the value is not found in sheet number 1? Should I use vlookup or something? I set up a very basic google form and corresponding google sheet for a spare bus and truck parts business. I would like to add a row to sheet number 3 for every part number that comes into sheet 1 from the google form, that isn't already in sheet number 3. And if possible have the other columns in the new row update information automatically as well.
Sheet number 1 records stock coming in, and sheet number 2 records stock being used, and sheet number 3 is supposed to update inventory records by adding stock coming in and subtracting stock being used. For this, I used the sumif function but there might be a more efficient way to do this as well? =SUMIF('Parts In'!F:F,"*"&A3&"*",'Parts In'!E:E)-SUMIF('Parts Used'!E:E,"*"&A3&"*",'Parts Used'!C:C)
Thanks
Screenshot of sheet number 3

Is there a way of creating a data/info sorting system across sheets in Google Sheets?

So I am working on a Google Sheets project for a small business that I am going to be starting up. So I have Google sheet with 4 different sheets in it. Let me explain what each sheet is for:
1st sheet named "All Customers": This sheet will have a bunch of information about all the customers who are using our services (Name, Subject, Price, Location, Instructor).
The other 3 sheets are for the 3 instructors who would handle all the customers. The 3 instructors are Sam, Lucy, and Jason, and their Sheets are named Sam's Customers, Lucy's Customers, and Jason's Customers respectively.
I want a sorting system where I can put in the info of the customer in the "All customers" sheet and based on the instructor I assign to them, that customer's info gets sorted and appended into the assigned instructor's Sheet. SO here's an example:
Jordan who wants to learn math needs to pay $200 for tutoring by us. He is located in NY so I assign him to our instructor Lucy who resides in NY and can tutor him.
In this case, this is what the "All Customer" sheet would contain:
A B C D E
1 Name Subject Price Location Instructor
2 Jordan Math $200 NY Lucy
Now Based on the fact that Lucy was assigned as the instructor for Jordan, I want his select information to be added to the "Lucy's Customers" Sheet Like so:
A B C
1 Name Price Location
2Jordan $200 NY
That's what I'm trying to achieve. If Jordan was assigned Sam, the select information of Jordan would be added to the "Sam's Customer" sheet.
So I'd been at this for a while and based on my research I wasn't able to get anywhere. I was messing around with the following Formula: =IF(INDIRECT("All Customers!C1:C")="Lucy",INDIRECT("All Customers!A2:A")," ")
But I know this won't achieve what I'm doing.
Here is a link to the dummy spreadsheet for this project so anyone can mess around with it:
https://docs.google.com/spreadsheets/d/1TGS9thgt77DSLbOUC5V2tRyjrDqE9He5ET17bM7HhZU/edit?usp=sharing
The Query method works but it only mirrors the information. I have pre-made cells in the instructors' sheets where there are cells that record if the customers under that specific instructor has paid or not monthly. The query is basically mirroring the information instead of copy/pasting. So when I get rid of a customer or switch the instructor in the main record, it will disappear from under the respective instructor's sheet. If that's the case then the corresponding cells that record the monthly payments in the instructor's sheet will be messed up.
Any help would be appreciated. Thank You in advance!
I have introduced the queries in the sheet. Please have a look. The data can be retrieved using QUERY function of Google Sheets. example is given below
=QUERY('All Customers'!A:E,"SELECT A,C,D WHERE E CONTAINS 'Sam'",0).
Now, whenever you make new rows in "All Customers" sheet, data would automatically be updated in instructor sheet.
Hope it is clear.

Resources