Flip table in Google Sheet - google-sheets

I'm looking to flip a table and can't seem to make it work with a combination of array formula and transpose. I'm looking for a formulae that can do this for larger data set
Please see the picture below for details.
enter image description here
Tried array formulas, transpose, pivot table but with no success

use:
=ARRAYFORMULA(QUERY(SPLIT(FLATTEN(A1:C1&"×"&A2:C10); "×");
"where Col2 is not null"; ))

Related

Google sheets splitting text to rows

I am trying to create an inventory system where I input the items of a drawer as a list separated by commas along with the drawer number and google sheets returns that list as separate cells, but with the same drawer number.
This is what I have
This is what I have
and this is what I want it to return, ideally on a separate sheet. I split the text into the rows using =transpose(SPLIT(Sheet1!C3, ",")), but what I'm stuck on is filling the column to the left (the drawer number A1, A2,...) I did it manually but it would be a pain to do so for all of the drawers. Is there any way to do this using a formula?
There won't be the same number of items in each drawer.
Here's my workbook if that's helpful. https://docs.google.com/spreadsheets/d/1ayXmwtJ1V4LB2ANgIYXscP-_KcuTWUTzMOHOYwPM_z0/edit?usp=sharing
use:
=ARRAYFORMULA(TRIM(QUERY(SPLIT(FLATTEN(
IF(Sheet1!C2:C="",,Sheet1!B2:B&"×"&SPLIT(Sheet1!C2:C, ","))), "×"),
"where Col2 is not null")))

Arrayformula is expanding on the whole column besides the the referenced cell being blank through not(isblank)

What i want is that if someone fills in the google form with dog boarding, google sheets should find the value for that particular service and display. I am using the array formula, with a condition that if the row doesn't have any answer then keep it blank.
Besides that it is expanding to the whole column.
=arrayformula(if(not(isblank(I3:I)),index(Sheet2!$B$2:$E$5,match($I$3:$I,Sheet2!$A$2:$A$5,0),match($D$3:$D,Sheet2!$B$1:$E$1,0)),""))
try:
=ARRAYFORMULA(IF(I3:I="",,IF(NOT(ISBLANK(I3:I)), INDEX(Sheet2!B2:E5,
MATCH(I3:I, Sheet2!A2:A5, 0),
MATCH(D3:D, Sheet2!B1:E1, 0)), )))

Dynamically merge N rows into one row

I am using google sheets and have the following format,
I want to get Col3 from Col1 and Col2. As you can see the spaces after Col1 elements are dynamic and that is why its hard to keep track of how many rows to append.
I would have added some code, but I have no idea where to begin. Kindly give me some direction.
This is difficult to do without a sample spreadsheet but there is a chance that this works if you put it in cell C2 and drag it down column C
=IF(A2="",,TEXTJOIN(", ",TRUE,FILTER(B:B,LOOKUP(ROW(A:A),FILTER(ROW(A:A),A:A<>""))=LOOKUP(ROW(A2),FILTER(ROW(A:A),A:A<>"")))))
Formulas used:
FILTER()
ROW()
TEXTJOIN()
LOOKUP()

Apply VlLOOKUP till last non-empty row in google sheets

I have an automatically expanding google in which I am applying a Vlookup formula to extract values from another sheet matching the values from the main sheet.
This is the Vlookup formula-
=VLOOKUP(A2, IMPORTRANGE("1MNRMKGkC-c0COugUWpXOe5OxJXfmdXGboxAPhf5SaLA", "Sheet1!B3:E420"),4,0)
I want the formula to be auto applied to the new entries which get auto added in the main sheet. I used this formula I found on a website to apply this formula to the whole column also taking care of any empty cells in between.
=ArrayFormula(IF(ISBLANK(A2:A), "", VLOOKUP(A2:A, IMPORTRANGE("1MNRMKGkC-c0COugUWpXOe5OxJXfmdXGboxAPhf5SaLA", "Sheet1!B3:E420"),4,0)))
My problem is that after using this formula when a new entry is auto added to column A in the sheet, it gets added to 1001th row instead of the next non-empty row, because this formula is being applied to whole column.
Is there some way to apply the Vlookup to just be applied till last non-empty row, so that my next automatic entry gets added in the next empty row? Or any other alternative solution?
Thanks for the help!
try:
=ARRAYFORMULA(QUERY(IF(ISBLANK(A2:A),,VLOOKUP(A2:A,
IMPORTRANGE("1MNRMKGkC-c0COugUWpXOe5OxJXfmdXGboxAPhf5SaLA", "Sheet1!B3:E420"), 4, 0)),
"where Col1 is not null", 0))
Since we don't have sheet for reference assuming new data is added to new column.
Try this fromula =ARRAYFORMULA(If(A2:A="","",VLOOKUP(A2:A, IMPORTRANGE("1MNRMKGkC-c0COugUWpXOe5OxJXfmdXGboxAPhf5SaLA", "Sheet1!B3:E420"),4,0)))
This will do vlookup once there is new data in Column 'A'

Transpose column of values skipping blank cells in Google Sheets

https://i.stack.imgur.com/f2Ztx.png
I need help, for example, I have a condition of thousands of data like in red border and want to form it like in result border
What kind of transpose formula do I have to use?
try to figure it out with this formula
=ARRAYFORMULA(QUERY(A3:A&",",,55000))
but still don't find a suitable result
try:
=ARRAYFORMULA(SPLIT(QUERY(A3:A,,99^99), " "))
or:
=TRANSPOSE(FILTER(A3:A, A3:A<>""))

Resources