Hy Guys,
i'm triyng to merge two different Tab of the same Google SpreadSheet.
I'm using this formula in the first cell
={indirect(dynamicRange1);indirect(dynamicRange2)}
where dynamicRange 1 and 2 are:
FirstSheet!2:2606
SecondSheet!2:6598
But shomething does not work fine.
"In ARRAY_LITERAL, an Array Literal was missing values for one or more rows"
If i use just one dynamicRance everything works fine, both something goes wrong.
Number of columns in both sheets must be the same:
Try
={Sheet1!A2:D10;Sheet2!A2:D10}
This error is generated when the number of columns in two array is not the same:
In ARRAY_LITERAL, an array literal was missing values for one or more rows
You need same number of columns in all arrays.
You need same number of columns in all arrays. You should keep the same number of columns in all imported sheets, even if you have empty columns. Deleting empty column in at least one sheet will cause an error.
Related
Sorry for poor formatting ahead of time.
I have a Google Sheet that collects responses from a Form. What I am trying to do is take the URLs that are made from the file upload question on the form and split them into individual URLs in the same row. I had this working without issue previously and now when making a new sheet, the formula I am using is not working and giving me unexpected errors or data. Can't embed photos yet so links below.
Formula
Value Error
The formula will copy data from the reference cell if there is no comma, but if a comma is added to any cell in the column, the entire formula stops working. I am really not sure what the problem is as I said this worked just fine previously. Thanks in advance, I've been at this longer than I care to admit and I assume this is a simple problem that I have overlooked.
The reason why you encountered such issue is because you are trying to create an array with mismatched number of columns.
Based on your sample scenario, when you used ={"File1";arrayformula(iferror(split(Q2:Q,",")))} while your column Q2:Q data doesn't have a comma, arrayformula will return 1 column results. Row1 column count and the array formula result's column count matches.
But if Q2:Q data contains comma, arrayformula will return multiple column results which doesn't match in your row 1 column count
You can use this formula in cell R1:
=arrayformula(iferror(split({"File1,File2,File3,File4,File5,File6";Q2:Q},",")))
Output:
I have a QUERY that seems to be treating AND more like OR. In other words, when the value of Col11=TRUE and the value of Col12=7, the results are displayed as though Col12=8. Am I missing something? I've tried adding quotes around the variables, parentheses around the two criteria. Adding spacing around the =. What else is there?
Col11 is only TRUE or FALSE values and Col12 is only numeric values from 1-8.
=QUERY({$A$3:$AJ},"SELECT Col3,Col10 where Col11=TRUE and Col12=8",0)
Here's a link to my sheet. It's buried in a larger formula in AK2
AK6 is a good example. It shows U U. It should only show U. It is treat X6 as though it's value is 8 when it is actually 7.
I believe I worked out what is happening.
You are getting two 'U's because I think your inner array is returning multiple rows for Col3='R2-D2', one row where Col23=TRUE and Col24=8, and then another row where Col27=TRUE and Col28=8.
I'm not positive, but I think the values in AK don't relate specifically to the values in that specific row, but instead relate to an array queried across all of your data rows. So as the outer ArrayFormula works down the column, the inner array (with multiple VLOOKUP/ArrayFormula/Queries) is still a large subset of the whole data range. That's assuming I've understood your complex formula correctly - my apologies if I've misunderstood something.
I've added a Heroes-TEST sheet to your sheet. It only has ten rows, all of the R2-D2 data from your Heroes tab. The columns are collapsed for visibility. See what happens when you highlight all the row data below Row3 and press delete - and then UNDO. The two 'U's in column AK become one, because there is only one row of data to query through now.
Your original formula is in AK2.
Let me know if this has helped.
While using Query, I kept receiving blanks in some columns while the data was correctly pulled in others.
I realized that the first column of data I was calling were numbers, the second were words, and the third were also numbers.
Columns 1 and 3 worked fine, but 2 kept on showing blanks. When I switched all to be words, then the queries worked out fine.
Here is a sheet demonstrating this problem.
https://docs.google.com/spreadsheets/d/1JhD75CzDJxCiXdcD8pBXzThzzNWgCvv2M46UxA48Xzo/edit?usp=sharing
My goal is to be able to query the 9 values with
=query(A2:D4,"Select B,C,D where A contains 'id'")
What's going wrong? It must have to do with different types of data, right?
QUERY is just a bit confused and auto-assumes the presence of header rows. to fix it just add 3rd QUERY parameter 0 - which defines there are no header rows:
=QUERY(A2:D4, "select B,C,D where A contains 'id'", 0)
I want to combine the resulting rows collected in a form response sheet according to the date of submission (e.g. 29/10/2017) into a single row.
How can I create the result as you can see in row 11 without using concatenate function? The problem is I have thousands of columns and around 40 rows to combine the result. Therefore, if I use concatenate, it will be very inefficient and error-prompt.
Thanks.
sample
Try QUERY
=QUERY(B2:N9,,500)
By using 500 as header argument, We essentially CONCATENATE all the columns.
I've been working on a multi tiered drop down program, and in filtering one of the tables I stumbled upon a problem I can't find any help on.
Basically, I have 2 sheets. Sheet1!A2:A has a set of values. In this example, A2=110, A3=114, A4=162. However, with each use of the program, there could be any number of values and the values could change.
In the second sheet, Sheet2! there is a table. The first row has the headers that I want to return from my search. Under each header is a series of numbers ranging from 3 to well over 50 values. And the number of columns is also unknown...(it will keep getting larger).
So I want to know which columns have all 3 values from Sheet1!A2:A in them.
Column 3 might have 6 numbers (95,110,114,125,150,162) and column 7 might have (80,110,114,125) so I would want to return the header from Column 3 but not from column 7.
Does any of this make sense? Again in simple terms, I want to query all of the columns in Sheet2 to see which contain all of the values from Sheet1!A2:A
Any help would be so greatly appreciated...
-Daniel
I set up an sheet using your example data:
https://docs.google.com/spreadsheets/d/169VrbWkTlRMzhNPe4G8hQL1MdfqQuTvjb87aRD9hiWo/edit#gid=1923440782
I've restricted the formula in cell D2 to 500 rows for the sake of speed but you can remove the references to make it work across the whole sheet:
=FILTER(Sheet2!1:1,ArrayFormula(TRANSPOSE(mmult(TRANSPOSE(COUNTIF(A2:A500,Sheet2!A2:Z500)),TRANSPOSE(split(rept("1,",COLUMNS(TRANSPOSE(COUNTIF(A2:A500,Sheet2!A2:Z500)))),",")))=count(A2:A500))))