I have data on a Google sheet. my importhtml formula get data in my sheet like this
Sheet one
Column A | | Column B
=================================
Name 1 | | Tom
Name 2 | | Dim
Want to data in this format
Column A | Column B | Column C | Column D
===========================================
Name 1 | Tom | Name 2 |Dim
| | |
Or in this format
Column A | Column B | Column C | Column D
===========================================
Name 1 | Name 2 | Tom |Dim
| | |
Please help me to archive data in a format in anyone from above
I try this but don't get format as I want
=TRANSPOSE(Importhtml(E1, "table",1))
or:
=SPLIT(TEXTJOIN("♦", 1, A:B), "♦")
and that would be:
=SPLIT(TEXTJOIN("♦", 1, IMPORTHTML(E1, "table", 1)), "♦")
try:
={TRANSPOSE(A2:A3), TRANSPOSE(B2:B3)}
and that would be:
={TRANSPOSE(INDEX(IMPORTHTML(E1, "table", 1),,1)),
TRANSPOSE(INDEX(IMPORTHTML(E1, "table", 1),,2))}
Related
I have this table named student_classes:
| id | name | class_ids |
| ----| ---------| -----------|
| 1 | Rebecca | {1,2,3} |
| 2 | Roy | {1,3,4} |
| 3 | Ted | {2,4,5} |
name is type text / string
class_ids is type integer[]
I created a datastream from PostgreSQL to BigQuery (following these instructions), but when I looked at the table's schema in BigQuery the class_ids field was gone and I am not sure why.
I was expecting class_ids would get ingested into BigQuery instead of getting dropped.
I am wondering if there is an issue with my formula because its not filling the entire column like an array should.
Currently my formula is working perfectly with B2, but its not working for the entire range B2:B.
Here is my formula:
=ARRAYFORMULA(QUERY({
{IMPORTRANGE("URL TO PRIVATE SHEET","$L2:$O")}
},"select Col4 WHERE Col1 CONTAINS " & $A2:A))
The IMPORTRANGE sheet looks like...
https://docs.google.com/spreadsheets/d/1GFnkuE3Dx-rTuvEV6wj1mCEq3P6cOxbzYco4aFVNw-I/edit?usp=sharing
| L |M|N| O |
| 000001 |*|*|JohnDoe#email.com |
| 000002 |*|*|JaneDoe#email.com |
| 000003 |*|*|BobDoe#email.com |
The ARRAYFORMULA is in B2
https://docs.google.com/spreadsheets/d/1JaWUWS3xKOwSX9y7uWUqEU5_Knp8nRgnhlVa1kRNlTo/edit?usp=sharing
| A | B |
| 000003 | BobDoe#email.com | <- Contains the formula above and works.
| 000001 | * | <- No data: should say "JohnDoe#email.com"
| 000002 | * | <- No data: "JaneDoe#email.com"
Is this a limitation in Google Sheets? Thanks!
you cant have array in 2nd argument of query like that. try perhaps:
=ARRAYFORMULA(QUERY({{IMPORTRANGE("URL TO PRIVATE SHEET", "L2:O")}},
"select Col4
where Col1 matches '"&TEXTJOIN("|", 1, A2:A)&"'"))
update:
=ARRAYFORMULA(IFNA(VLOOKUP(A2:A, QUERY({
{IMPORTRANGE("1GFnkuE3Dx-rTuvEV6wj1mCEq3P6cOxbzYco4aFVNw-I", "L2:O")}},
"select Col1,Col4
where Col1 is not null", 0), 2, 0)))
I have google sheet which have some data. like bellow
Sheet one
Column A | | Column B
=================================
Hello | | *1*
World! | | p
Foo | | *3*
Bar | | L
Bar1 | | *0*
Want data in sheet 2 only which have nubmers
Sheet two
Column A | | Column B
=================================
Hello | | *1*
Foo | | *3*
Bar1 | | *0*
Hope you understand what I want.
try:
=FILTER(Sheet1!A1:B, ISNUMBER(Sheet1!B1:B*1))
or maybe:
=FILTER(Sheet1!A1:B, ISNUMBER(REGEXEXTRACT(Sheet1!B1:B, "\*(\d+)\*")*1))
Right now I have dynamic columns based off of a query, and then I have data attached to those columns that I want to populate in rows. They associate just fine, but the problem is that the rows hold whatever place they were in, instead of ascending to the top again, like so:
|column|column2|column3|
| row1 | | |
| | row2 | |
| | | row3 |
And the goal is:
|column|column2|column3|
| row1 | row2 | row3 |
| | | |
| | | |
I know that I could do this in the query, combining the headers with a dynamic query, but is there any SSRS magic that can achieve this without that?
EDIT 1
I am using a matrix, sorry about not specifying, I heard that the only way to do dynamic columns are matrices, so I thought it was implied.
EDIT 2
The rows come in like
Wanted_Column | Wanted Row
Column | data
Column2 | data
Column | data
and I want it so that the table will look like
|column|column2|
| data | data |
| data | |
| | |
for any number of columns/rows
I'm assuming you are using a matrix to do this. It's not clear from your question... Anyway, you'll need to add row grouping. If you don't have data that can be grouped by an actual column value then set the group expression to 1 and that should do it.
If this is not correct then please show you data as it comes from the dataset and the expected output.
I would like to import a txt file that contains an defined structure. I need to create an identity for every record type and also a parent-child id that will make easy to join specific record types.
I also have a lookup table that says which is the parent record type:
LOOKUP TABLE
TYPE | STRUCTURE LEVEL | PARENT
A | 1 |
B | 2 | A
C | 3 | B
D | 3 | B
E | 2 | A
F | 3 | E
And my data looks similar to:
TYPE | INFO
A | dummy
B | dummy2
C | dummy3
C | dummy4
D | dummy5
B | dummy6
B | dummy7
C | dummy8
B | dummy9
D | dummy10
E | dummy11
F | dummy12
If you look at table data, there are some situations that I need to cover:
First "B" record has 3 children (two "C" type and one "D")
Second "B" record has no child
Third "B" record has no "D" child
Fourth "B" record has no "C" child
"B" and "E" records are siblings and the same for "C" and "D"
I would like to get the following result (does not matther whether result is in a single table or not):
Table A
ID | PARENT_ID | TYPE | INFO
1 | | A | dummy
Table B
ID | PARENT_ID | TYPE | INFO
1 | 1 | B | dummy2
2 | 1 | B | dummy6
3 | 1 | B | dummy7
Table C
ID | PARENT_ID | TYPE | INFO
1 | 1 | C | dummy3
2 | 1 | C | dummy4
3 | 3 | C | dummy8
Table D
ID | PARENT_ID | TYPE | INFO
1 | 1 | D | dummy5
2 | 4 | D | dummy10
Table E
ID | PARENT_ID | TYPE | INFO
1 | 1 | E | dummy11
Table F
ID | PARENT_ID | TYPE | INFO
1 | 1 | F | dummy12
Sorry for the long explanation and thanks in advance for any help.
Solved. My workaround was develop my own C# program for importing data into SQL server.