Pull certain information from another sheet - google-sheets

https://docs.google.com/spreadsheets/d/1tnAtFgxCl2DnyYL0cjzijsqw8WlvC1BxI80hduaPwi0/edit?usp=sharing
=filter(Sheet1!2:39, Loads!D2:D="Elijah Fisher",Loads!Z2:Z=13)
Working on making statement sheets using formulas.
First sheet contains all the information 2nd sheet is the workers statement.
Only want information from cells A, E, F, J, K, O to be pulled that go with the week number.
tried formula =filter(Sheet1!2:39, Loads!D2:D="Elijah Fisher",Loads!Z2:Z=13) but the whole rows of information is being pulled.

You can use QUERY() formula to fetch filtered data from another sheet.
Please see formula below:
=query(Sheet1!A:O, "Select A, E, F, J, K, O where D='Elijah Fisher'", 0)
This formula resulted to this:

Firstly, you need to change the headers on the individual statement sheet to be exactly the same as the headers used in Sheet1 of your example, such as below:
Secondly, in cell A6 on the Elijah Fisher sheet, enter the following formula:
=IFERROR(INDEX(TRANSPOSE(FILTER(TRANSPOSE(Sheet1!$A$1:$Z$39),TRANSPOSE((Sheet1!$D$1:$D$39=$B$1)*(Sheet1!$Z$1:$Z$39=$E$1)))),,MATCH(A$5,Sheet1!$A$1:$Z$1,0)),"")
Drag this across to cell F6.
Below is an example for Elijah Fisher from Week 13:
Below is another example for Justin Wright from Week 13:

Related

Query function not working beyond column Y

I'm using the Query function to pull a list of job names from a different sheet that meet certain criteria. The sheet that has the data that I am pulling the list from has 28 columns. When I try to use Column Z, AA, or AB I get the error saying that Query completed with an empty output. I know this to be false. I've tried playing with the headers and naming the columns like this: Col1,Col2 etc. to no avail. Here is a simplified version of my formula:
=Query('Job Details'!$B$1:$AB,"Select B where AA<95",1)
Why does the query come up with an empty return when I use the above formula when I know that is should not?
This formula works just fine:
=Query('Job Details'!$B$1:$AB,"Select B where I<95",1)
Here's a link:
https://docs.google.com/spreadsheets/d/1C4NSCOHjaaCrn1Cm03DTTNcepmwzQEU4Lz_9bL-Sp5w/edit?usp=sharing
All personal data has been changed. The problem formula is highlighted green in the "Job est" sheet.
Any help is greatly appreciated!!
Aaron

Looking for workaround where Google Sheets QUERY function turns numbers into text . .

I've been researching all morning and haven't been able to find a way to make this work. Example Spreadsheet I have a form (created as a student test) that feeds a spreadsheet with 160+ questions; therefore columns. I'm using a transpose/query function to bring the data into another tab so I can begin the analysis. The problem is, when the data comes into the new tab =query(transpose(query('Form Responses 1'!$A$2:$FF$2,"Select *",1))), it turns all the numeric scores into text. I believe it does this because there are string values as well. I would like to filter those out, but no luck there either. Does anyone know of a work-around for this? Or can recommend a better way? THANK YOU!
I'm not sure what you're trying to do exactly, but if you just want to transpose the 'Form Responses 1' data and convert columns E and F to a numeric, then you could try the following.
Create a new tab called 'Cleaned'.
In cell A1 enter ={'Form Responses 1'!A1:FN1}
or to remove 'Option ' from the headings:
=arrayformula(substitute({'Form Responses 1'!A1:FN1},"Option ",""))
In cell A2 enter =arrayformula({'Form Responses 1'!A2:D,value('Form Responses 1'!E2:F),'Form Responses 1'!G2:FN})
Then on your 'Transpose Data' tab, in cell A1, enter:
=transpose(Cleaned!$A$1:$F$5)
In cell A7, enter:
=transpose(Cleaned!$G$1:$FF$5) * see below
Make sure there are no formulas below cell A7 or in columns B to E.
*If you want unique values in the transposed columns A to E, then in cell A7 use:
unique(transpose(Cleaned!$G$1:$FF$5))
If you only want unique values in column A, then you could create another tab, say 'Transpose Data2':
In cell A1:
=unique('Transpose Data'!A:A)
In cell B1:
=arrayformula(iferror(vlookup(A1:A,{'Transpose Data'!A:E},{2,3,4,5,6},false),""))
It won't keep your G1, G2, G3 rows together, but that will need a sort column creating on the 'Transpose Data' tab.

Arrayformula for Google Sheets doesn't work as before

Some week ago, an array formula I use in Google Sheets stopped working correctly:
=arrayformula(if(row(A:A)=1,"Convert Type",if(len(A:A)=0,iferror(1/0),iferror(vlookup(C:C,'Sheet2'!$A$2:$B,2,FALSE),"Error"))))
This formula is in Sheet1 column B1, in the frozen first row. What it is supposed to do is to take the values from Sheet1 column C, compare the values from Sheet2 column A, and insert the values in Sheet1 column B for those corresponding in Sheet2 column B (from Type1 to Type2). If there is a mismatch between the possibilities in Sheet2 column A and Sheet1 column C, the new value in Sheet1 column B will be 'Error.' The formula stops when there is nothing in Sheet1 column A (Timestamp).
Now, for some reason, all the values in Sheet1 column B are set to 'Error.' Something similar happened before when Google made a back-end update, but this time I can't figure out what I am supposed to change. Any ideas?
Example Sheet
Edit: made the text clearer and added a link with example.
Just adding a extra space in your formula updates the formula to correct values and I'm unable to find the source of the error.
Regardless, the formula was unnecessarily complicated and I simplified it a bit to it's core bone version. Try this instead:
=ARRAYFORMULA({"Convert Type";VLOOKUP(C2:INDEX(C:C,COUNTA(C:C)),Sheet2!A:B,2,0)})

Referencing a cell into a formula

This question pertains to Google Sheets. In column F of one "List" tab of my sheet, I have the name of all the other tabs in my sheet. All the other tabs contain information specific to one single topic. Im trying to get all of column N in "List" to pull up cell G2 of each sheet. So far, ive been using this:
='(sheet name)'!G2 ;in the N column, changing (sheet name) manually and individually
But I'd rather have the content of the F fill the (sheet name) part of the formula. Any way to do so?
With sheet names in column F, in N1 enter:
=INDIRECT("'" & F1 & "'!G2")
and copy down. Please note the single quotes in the formula.
This should work for both Excel and Google Sheets.

Take values from column and put into a row

In google docs I am tryignt to take the values from a column in one sheet and use them as column headings in another sheet without duplicates.
Thus if sheet1 has
a
a
b
f
g
g
Sheet 2 should have it as
a b f g
In Excel I would just use VBA code, how do I do it in a google sheets?
I know the command to get it into a column, but not into a row
=unique(sort('Acumen Lead Tracker'!X3:X64,1,true))
Thanks
Try in Cell A1 of the second sheet:
=transpose(unique(Sheet1!A:A))
where Sheet1 is the sheet where the values you want to use as headers are found in col A.

Resources